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: FuzzyOpen with query pre-populated #33

Open
schreifels opened this issue Oct 15, 2017 · 0 comments
Open

Feature request: FuzzyOpen with query pre-populated #33

schreifels opened this issue Oct 15, 2017 · 0 comments

Comments

@schreifels
Copy link

schreifels commented Oct 15, 2017

Thank you for this great plugin! fzy accepts an option to pre-populate a query:

       -q, --query=QUERY
              Use QUERY as the initial search query.

It would be really useful if neovim-fuzzy exposed a function that would pass this value to fzy. My use case, for example, is that I want to write a simple plugin to open FuzzyOpen with a modified version of the current buffer's filename pre-populated (e.g. to quickly jump to a test file or some other similarly named file).

I started on an implementation of this, but I wasn't sure the right public interface to expose. Here's what I have so far: https://github.com/schreifels/neovim-fuzzy/commit/2e98b3351769d6d67b21b55c56075d07b4b9be53

Let me know your thoughts. Thanks!

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