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

:ZettelSearch and :NV search different things #129

Open
folofjc opened this issue Aug 4, 2022 · 1 comment
Open

:ZettelSearch and :NV search different things #129

folofjc opened this issue Aug 4, 2022 · 1 comment

Comments

@folofjc
Copy link

folofjc commented Aug 4, 2022

I have multiple wikis. Only one of them is really a zettelkasten, but I like to use some of the features of vim-zettel in the others. I have let g:nv_search_paths = to the parent directory that contains the directories of each of my wikis. When I do :NV and search, it searches through all the wikis (which is what I want).

However, when I try to link to a file using [[ or :ZettelSearch, it only searches the current directory.

There is a comment in the doc here that looks like this was intentional (however, the issue that it is linked to appears to be something else).

If it is desired that :NV and :ZettelSearch do two different things, that is fine. But how can I insert a link using g:nv_search_paths instead of the current directory?

@folofjc
Copy link
Author

folofjc commented Aug 4, 2022

I did a test. I used :NV to search for a file in another wiki, then I yanked it from Notational-FZF. Then I pasted it into my wiki, and tried to do gZ on it. It made it a link, however it assumed that it was in the current directory, so the link did not work.

So this will not work as a workaround.

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

1 participant