-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
executing vi as an external program #1360
Comments
Have you tried overriding the stdin of the process? fzf --bind 'ctrl-v:execute(vim {} < /dev/tty)' |
@junegunn I was about to post an issue that is really just a generalization of this one. I was wondering if it would be beneficial to add an option to run commands with an attached tty (e.g., some sort of I was certainly tripped up by this when I first started working with |
#1360 (comment) # Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal" ls | fzf --bind "enter:execute(vim {} < /dev/tty)" # With this change, we can omit "< /dev/tty" part ls | fzf --bind "enter:execute(vim {})"
junegunn#1360 (comment) # Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal" ls | fzf --bind "enter:execute(vim {} < /dev/tty)" # With this change, we can omit "< /dev/tty" part ls | fzf --bind "enter:execute(vim {})"
junegunn#1360 (comment) # Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal" ls | fzf --bind "enter:execute(vim {} < /dev/tty)" # With this change, we can omit "< /dev/tty" part ls | fzf --bind "enter:execute(vim {})"
Sorry to rez this thread but thought this would be a good place to add some important info.
set v (ls | fzf --bind "ctrl-v:execute(nvim {} &> /dev/tty)") |
Hi, I read this
https://github.com/junegunn/fzf#executing-external-programs
which seemed to be what I wanted, having list I can execute a command on and then be able to do it again.
my command is: parallel -X --tty ra edit
Where 'ra' is an application that starts vim; that does nothing.
I tried command: ra edit {}
that worked but when I get back in fzf it's frozen and takes all the cpu, had to kill it.
note that shell command "fzf | parallel -X --tty ra edit" works just fine
The text was updated successfully, but these errors were encountered: