mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 11:51:15 -03:00
Revert "Swap alt-{left,right,backspace,delete} with ctrl-* on macOS"
This reverts commit ebdc3a0393.
Not discussed, includes a new thing that queries the terminal for the client OS
when what is really needed is just a `uname` - which would also work on Terminal.app.
This commit is contained in:
@@ -57,34 +57,10 @@ function fish_default_key_bindings -d "emacs-like key binds"
|
||||
bind --preset $argv alt-u upcase-word
|
||||
|
||||
bind --preset $argv alt-c capitalize-word
|
||||
bind --preset $argv alt-backspace '
|
||||
if test (status client-os) = macos
|
||||
commandline -f backward-kill-word
|
||||
else
|
||||
commandline -f backward-kill-token
|
||||
end
|
||||
'
|
||||
bind --preset $argv ctrl-backspace '
|
||||
if test (status client-os) = macos
|
||||
commandline -f backward-kill-token
|
||||
else
|
||||
commandline -f backward-kill-word
|
||||
end
|
||||
'
|
||||
bind --preset $argv alt-delete '
|
||||
if test (status client-os) = macos
|
||||
commandline -f kill-word
|
||||
else
|
||||
commandline -f kill-token
|
||||
end
|
||||
'
|
||||
bind --preset $argv ctrl-delete '
|
||||
if test (status client-os) = macos
|
||||
commandline -f kill-token
|
||||
else
|
||||
commandline -f kill-word
|
||||
end
|
||||
'
|
||||
bind --preset $argv alt-backspace backward-kill-token
|
||||
bind --preset $argv ctrl-backspace backward-kill-word
|
||||
bind --preset $argv alt-delete kill-token
|
||||
bind --preset $argv ctrl-delete kill-word
|
||||
bind --preset $argv alt-b backward-word
|
||||
bind --preset $argv alt-f forward-word
|
||||
if test "$TERM_PROGRAM" = Apple_Terminal
|
||||
|
||||
Reference in New Issue
Block a user