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

Add --query parameter to fzf invocation in vimf function #26

Merged
merged 1 commit into from
Mar 19, 2014

Conversation

wellle
Copy link
Contributor

@wellle wellle commented Mar 19, 2014

I'm using this function myself to edit fuzzy found files, similar to the vimf function in the Readme:

function ze() { FILE=$(fzf --query=$1) && vim "$FILE" }

I added the --query=$1 parameter so I can use ze foobar. That way I can repeat that command with ^P or ^R and won't have to type the pattern again.

I thought this might be useful for others too, so I added it to your vimf function.

Usage:

vimf foobar

junegunn added a commit that referenced this pull request Mar 19, 2014
Add --query parameter to fzf invocation in vimf function
@junegunn junegunn merged commit fa54c5d into junegunn:master Mar 19, 2014
@junegunn
Copy link
Owner

That's nice. Thanks.

@wellle wellle deleted the vimf-query branch March 19, 2014 12:11
junegunn added a commit that referenced this pull request Mar 19, 2014
junegunn pushed a commit that referenced this pull request Jan 16, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants