Skip to content

Commit

Permalink
enhance: fzf#wrap for :Fd command
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Nov 14, 2024
1 parent d658c6a commit 333c3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/.vim/vimrc.d/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ command! -bang -nargs=? LZt call z#Zt(<q-args>, 'lcd')
command! -bang -nargs=? Zext call z#Zt(<q-args>, 'Ex')

""""""""""""""""" Fd 类""""""""""""""""
command! -nargs=* -bang Fd call fzf#run({'source': 'fd ' . <q-args>, 'sink': 'e'})
command! -nargs=* -bang FdPaste call fzf#run({'source': 'fd ' . <q-args>, 'sink': function("s:paste_word")})
command! -nargs=* -bang Fd call fzf#run(fzf#wrap({'source': 'fd ' . <q-args>, 'sink': 'e', 'options': ['--prompt', 'fd ' . <q-args> . ' > ']}))
command! -nargs=* -bang FdPaste call fzf#run(fzf#wrap({'source': 'fd ' . <q-args>, 'sink': function("s:paste_word"), 'options': ['--prompt', 'fd ' . <q-args> . ' > ']}))
command! -bang -nargs=0 Directories
\ call fzf#run(fzf#wrap({'source': 'fd -i -t d', 'dir': <q-args>, 'sink': 'e'}, <bang>0))
command! -nargs=0 DirectoriesPaste call fzf#run({'source': 'fd -i -t d', 'sink': function("s:paste_word")})
Expand Down

0 comments on commit 333c3ed

Please sign in to comment.