michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
557 stars 73 forks source link

`E486: Pattern not found: fzf` when creating a new note. #74

Open NeuroWinter opened 3 years ago

NeuroWinter commented 3 years ago

When ever I create a new note, I am getting this error showing up in my messages: E486: Pattern not found: fzf However I do have fzf and fzf.vim plugins installed and fzf on my system.

I am using vim version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 28 2020 13:35:01) Included patches: 1-1767

and fzf version: 0.21.1 (334a4fa)

michal-h21 commented 3 years ago

This is strange, as FZF is not involved in new note process at all. Can you post your .vimrc here, please?

NeuroWinter commented 3 years ago

Sure thing here you go!

https://gist.github.com/NeuroWinter/39756b559d7354b410cd0ca21558b9ff

michal-h21 commented 3 years ago

I've tried your .vimrc with both Vim (my version is VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 20 2020 00:00:00) Included patches: 1-1484) and Neovim. :ZettelNew and the z key in visual mode works correctly. Your FZF binary is a bit old and you can run into this issue that affects FZF features (linking to existing notes, searching).

NeuroWinter commented 3 years ago

Hmmm this is very strange now. I have updated fzf to 0.22.0 (e2ae1b2) and now when I do zn in visual mode nothing happens :( Also if I run :ZettelNew test.md I get the following message: E492: Not an editor command: ZettelNew test.md

All sorts of things are broken now!

michal-h21 commented 2 years ago

Hi, sorry for the late reply! I am now going through old issues. Do you still experience this bug? I've recently fixed lot of stuff, so hopefully everything should work now.