Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: add a fzf#vim#buffer_grep #1497

Open
nkh opened this issue Aug 24, 2023 · 0 comments
Open

Feature Request: add a fzf#vim#buffer_grep #1497

nkh opened this issue Aug 24, 2023 · 0 comments

Comments

@nkh
Copy link

nkh commented Aug 24, 2023

These two functions are available:

  • function! fzf#vim#buffer_lines(...)
  • function! fzf#vim#grep(grep_command, ...)

I Would it be possible to get a function that greps over the contents of a buffer?

Explanation for this FR

I used https://github.com/chengzeyi/fzf-preview.vim but it only shows a preview for buffers backed by a file, Which is fine till one used vim a a man pager. So I wrote a few lines patch here https://github.com/nkh/fzf-preview.vim

Although fuzz matching work well in the man pages, actually a much better flow in the man pages, looking for options is made much simpler with a regular expression which contains the number of space to match thus removing a lot of false positives (examples most often)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant