-
Notifications
You must be signed in to change notification settings - Fork 73
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
Should this work in Neovim? I cannot make it create notes anywhere but current directory #132
Comments
It can create notes only in the root directory of the current wiki, but multiple wikis should work. |
If I configured it right (my config above), it should create new notes in root of |
Ah, that's weird. And normal Vimwiki commands create notes correctly? Try to visually select some words and press enter. This should create a normal Vimwiki note named after the selected text in the current wiki dir. If even this doesn't work, then it may be a possible issue with your configuration. I don't know much about configuring Neovim using Lua, so I cannot tell what can be the problem. |
Yes, Vimwiki in Neovim works fine, been using it for a year already. It creates notes on enter, saves them in correct places etc. |
I am having a similar (same?) problem with Vim 9.0 (Debian testing), Vimwiki (dev branch) and vim-zettel. When I use :ZettelNew or I capture a string, the new note is always created on the current directory, no matter if it is outside my wiki. I have a single wiki configuration:
|
After playing around with the code, notes are created in the vimwiki/zettel path when I comment/uncomment these lines in the function " the following command doesn't work correctly with the vimwiki navigation
call vimwiki#base#open_link(':e ', format, s:vimwiki_dir.path) " add third argument
" call vimwiki#base#open_link(':e ', "./". format, )
" add basic template to the new file I do not use most of the Vimwiki features, so I do not totally understand the consequences of this change (beyond it kind of fix this issue) |
@juanlufont thanks for the pointer. You are right, it is necessary to pass the full path to My solution is to detect if the current file is in wiki, and select the opening method accordingly. This should support the navigation when you create notes from the wiki. |
init.lua
zettel.vim
The text was updated successfully, but these errors were encountered: