-
Notifications
You must be signed in to change notification settings - Fork 180
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
Unexpected current buffer change on new note #30
Comments
Hey @vihu, It's not really necessary that |
I agree with this. Having |
Ah, beat me to it! |
🐛 Describe the bug
I recently started using this plugin and noticed an oddity (which admittedly could be something to do with my setup).
I have the following keybind:
Essentially to make creating a new note with user supplied title.
I notice that for some reason as soon as I press enter, the new note indeed gets created as expected, but something in the currently opened buffer also changes.
Below is a video demonstrating the issue (note the little blue dot in the tabline next to obsidian.lua was not present before I created the note but is present after the creating of the note, indicating that the currrent buffer, obsidian.lua in this case has changed in some way). This causes an error when trying to exit nvim, because it thinks that the currently opened buffer has changed.
obsidian-new-note.mp4
Versions
nvim --headless -c 'lua print(require("obsidian").VERSION)' -c q 1.4.0%
The text was updated successfully, but these errors were encountered: