Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read obsidian configuration from .obsidian directory to configure workspace settings #759

Open
miguelpduarte opened this issue Oct 25, 2024 · 0 comments

Comments

@miguelpduarte
Copy link

🚀 The feature, motivation and pitch

Obsidian uses the .obsidian directory to store configuration values as JSON files.

Many of the configuration options in obsidian.nvim are sourceable from these configuration files. Some examples:

  • daily_notes table can be filled in from .obsidian/daily-notes.json. In my setup I see the folder and template keys at least.
  • new_notes_location is defined by newFileLocation in .obsidian/app.json (value of folder seems to correspond to notes_subdir), as well as notes_subdir which corresponds to newFileFolderPath.
  • templates table can be filled in from .obsidian/templates.json. E.g. the folder key can be set from the folder property in the JSON file.

It would be incredible to be able to fill these in with the configuration that Obsidian uses since then one would not need to redefine these settings twice, once for the plugin and another time for Obsidian itself.
In order to not be too intrusive, this could potentially be an option enabled per-workspace, something such as read_config_from_obsidian = true for each item in workspaces.

Alternatives

The alternative is to duplicate these configurations on both the obsidian settings side as well as obsidian.nvim configurations, which this feature request aims to avoid.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant