linrongbin16 / fzfx.nvim

A Neovim fuzzy finder that updates on every keystroke.
https://linrongbin16.github.io/fzfx.nvim/
MIT License
114 stars 5 forks source link

FeatureRequest: reduce live grep (buffer variant) filename #611

Closed linrongbin16 closed 5 months ago

linrongbin16 commented 6 months ago

https://github.com/linrongbin16/fzfx.nvim/discussions/435

linrongbin16 commented 5 months ago

hi @damanis, sorry for being so late, I submit #620 to improve this feature.

Should be done in several days.

After doing testing, I found there's a technical gap between buffer mode and (un)restrict mode, I think create another command (for example BufLiveGrep) could be more easier to totally remove the filename in provider.

linrongbin16 commented 5 months ago

hi @damanis, I had add FzfxBufLiveGrep command for a No Filename live grep on current buffer in #622 . Please pull main branch and try!

damanis commented 5 months ago

Hi @linrongbin16 This configuration works.

  { '<leader>xs', '<cmd>FzfxBufLiveGrep args<cr>' },
  { '<leader><Leader>xs', '<cmd>FzfxBufLiveGrep cword<cr>' },

P.S. I'm not sure it is right idea use args and cword instead of buf_args and buf_cword. Unification should be more correct.

linrongbin16 commented 5 months ago

Hi @damanis, The command itself has Buf, no need to add it in sub commands.