I want to unmap (unbind) certain keys such as Up, Down, Left, Right, Page Up, Page Down, Home, End specifically in the fish shell.
I guess I have to use the bind
command in the .config/fish/fish.config
file, but I am not sure how.
I want to unmap (unbind) certain keys such as Up, Down, Left, Right, Page Up, Page Down, Home, End specifically in the fish shell.
I guess I have to use the bind
command in the .config/fish/fish.config
file, but I am not sure how.
You will need to define a custom fish_user_key_bindings
function with the appropriate bind --erase
statements, then save that function with funcsave
or by editing ~/.config/fish/functions/fish_user_keybindings.fish
directly.
For example:
function fish_user_key_bindings
bind --erase --key up
bind --erase --key down
# and so on
end
funcsave fish_user_key_bindings
Note that some terminals don't send the terminal codes that their terminal description files say they do - you may need to use fish_key_reader
(introduced in 2.3.1) to confirm the exact binding you need to erase.