Cut Keybinding Does not Work #9832
-
The following keybinding works.
But the following does not work.
What might be the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
From https://fishshell.com/docs/current/cmds/bind.html:
Special input functions cannot be combined with ordinary shell script commands. The commands must be entirely a sequence of special input functions (from bind -f) or all shell script commands (i.e., valid fish script). To run special input functions from regular fish script, use commandline -f (see also commandline). If a script produces output, it should finish by calling commandline -f repaint to tell fish that a repaint is in order.
|
Beta Was this translation helpful? Give feedback.
-
The following works:
|
Beta Was this translation helpful? Give feedback.
From https://fishshell.com/docs/current/cmds/bind.html:
Special input functions cannot be combined with ordinary shell script commands. The commands must be entirely a sequence of special input functions (from bind -f) or all shell script commands (i.e., valid fish script). To run special input functions from regular fish script, use commandline -f (see also commandline). If a script produces output, it should finish by calling commandline -f repaint to tell fish that a repaint is in order.
fish_clipboard_copy
is a normal script function.