Is there any way to execute a fish shell command to get the command line text? #8475
Replies: 1 comment 1 reply
-
You need to set this up in fish not kitty.
And IIRC this is available out of the box in fish with alt+e
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Dima-369
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My idea is to have a kitty keybinding
cmd + e
which gets the current command line text, opens it in myEDITOR
and then on confirming, replaces the current command line text with it and executes it.But fish shell functions like the one below can not be executed like this:
map cmd+e launch --type=tab --cwd=current edit_command_buffer
(or just executingcommandline
which is from https://fishshell.com/docs/current/cmds/commandline.html). It just fails withFailed to launch child: ...
since it is not a real process.Using this fish shell function from fish-shell/fish-shell#1215 (comment) (I added the
commandline -f execute
) can help, but I can not bind it to any keyboard function.Is here an obvious solution I am missing? Thanks, a lot!
Beta Was this translation helpful? Give feedback.
All reactions