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

:obcommand does not work when .obsidian.vimrc is not present in $VAULT_ROOT #89

Closed
webdog opened this issue Mar 18, 2022 · 1 comment
Closed

Comments

@webdog
Copy link

webdog commented Mar 18, 2022

👋

Thank you for this plugin!

I noticed that when enabling the plugin, but not creating a vimrc file after installation, :obcommand does not work. An error is returned in the gutter: ":obcommand is not an editor command`

By creating an empty .obsidian.vimrc file, obcommand is expected.

In the Usage section, it's mentioned to create the vimrc to persist mappings, but I didn't understand this as the plugin-specific command wouldn't work unless the rc file was loaded.

From having other obsidian plugins installed, I wasn't expecting to need to create an rc file right away to have functionality. Other plugins seem to work without specifying a config file, in previous experiences.

Again thank you for this plugin, it's very useful 😸

@esm7
Copy link
Owner

esm7 commented Apr 3, 2022

Well, this came as a surprise: the plugin was originally meant to simply persist settings that you could apply either way, but it now contains some more stuff that could be useful either way...
So I untied the registration of the other ex commands from loading the Vimrc file, and as of 0.6.0 the file doesn't need to exist for the other functionality to work.

@esm7 esm7 closed this as completed Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants