michal-h21 / vim-zettel

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

FR: only search wiki files with the right extension #65

Closed linusboyle closed 2 years ago

linusboyle commented 4 years ago

I have some css/js files (and some codes) in the wiki directory because I need to generate a website from it. So when searching for a zettel, these files are also listed.

screenshot

It would be nice if vim-zettel could filter files by the ext field in g:vimwiki_list

michal-h21 commented 4 years ago

Nice idea. I've added this feature, but it doesn't work with the default search method. Ag returns some unspecified error. So you need to use your custom searcher, like:

  let g:zettel_fzf_command = "rg --column --line-number --ignore-case --no-heading --color=always "
linusboyle commented 3 years ago

Great! This works for me. I'll leave this open till ag is supported, though.

michal-h21 commented 2 years ago

Ag should be supported now too.