-
Notifications
You must be signed in to change notification settings - Fork 129
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
Added option "--exec CMD" #158
base: master
Are you sure you want to change the base?
Conversation
src/options.c
Outdated
@@ -20,6 +20,7 @@ static const char *usage_str = | |||
" -0, --read-null Read input delimited by ASCII NUL characters\n" | |||
" -j, --workers NUM Use NUM workers for searching. (default is # of CPUs)\n" | |||
" -i, --show-info Show selection info line\n" | |||
" -x, --exec=PROG Execute prog on selection. Don't exit.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation is different here, than in the surrounding lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, ;) I literally didn't see it. Fixed it, and trying to push it again.
Hi, thanks for your PR. This feature seems relatively unnecessary to me, since I think it could easily be implemented in a wrapper script. |
That would do something different; what I added doesn't exit fzy, instead it spawns the command, waits for the program to exit and returns to exactly the same state before launching the external tool. |
Ah thanks, I understand now |
:-? just for the record, the 'acceptance check' has necessarily to fail, |
For a documentation browser (https://github.com/michael105/libc-manpages)
I added the option to execute commands from within fzy.
imho, would be great to include that mainline.
best wishes,Michael