naps62 / zk

A simple zettelkasten setup using Vim, fzf and ripgrep
29 stars 5 forks source link

Error detected while processing command line: E492: Not an editor command: FzfRg #1

Open jrekier opened 3 years ago

jrekier commented 3 years ago

Hey @naps62,

Been looking for a minimal portable implementation of zettelkasten for a while. And I really like what I'm seeing here.

I have a problem with the search command, though. When I try to use it with zk search, this shows up:

image

Thanks for your help!

naps62 commented 3 years ago

Hi @jrekier I think this is because you might be missing the [fzfvim plugin. It wasn't referenced in the readme. I just pushed an update to fix that

Could you let me know if installing the plugin (along with both fzf and ripgrep) fixes it?

jrekier commented 3 years ago

Hi @naps62 thanks for your reply. The strange thing is I already have that plugin installed. I purged my plugins and reinstalled them but that did not help ... The error is still there.

jrekier commented 3 years ago

fyi, here is a list of the relevant plugins I use

Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'yuki-yano/fzf-preview.vim'
Plug 'BurntSushi/ripgrep'
naps62 commented 3 years ago

@jrekier I tried reproducing your issue (I replaced my plugins to use yours instead), but I couldn't :confused: everything worked for me

What is your output for :verbose command FzfRg?

For reference, this is what I get:

:verbose command FzfRg
    Name              Args Address Complete    Definition
!   FzfRg             *                        call fzf#vim#grep("rg --column --line-number --no-heading --color=always --smart-case -- ".shellescape(<q-args>), 1, fzf#vim#with_preview(), <bang>0)
        Last set from ~/projects/dotfiles/config/nvim/plugged/fzf.vim/plugin/fzf.vim line 42
francklays commented 2 years ago

Hi @jrekier, I get the same error as you, did you find what was causing it ? Thx

My output for :verbose command FzfRg is No user defined command found (translated from French)