obsidian-alfred
obsidian-alfred copied to clipboard
Add a default vault feature by adding 2 environment variables. Currently usage by on (add new note) command.
Addressing Issue #35
- introduce two new variables - defaultVaultPath and defaultVaultName
- add a new input "oadddefaultvault" to change/add the default vault name and path.
- on addition of first new vault, it is automatically made the default vault as well (it can be changed via above input anytime later)
- current "on" keyword is remapped to "onv" (v=vault)
- "on" is now used to add directly to add to the default vault (Vault name shown in title by showing "Creating {query} in {defaultVaultName})"
- In clearvaults flow, reset default vault value as well
Once we agree on the flow, or I have done any other required changes, I can edit the PR to add documentation and demo as well in README.
Thanks for the PR! I'll take a look in the next few days!