mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
slightly improved key-bindings to support (in a first instance) Ctrl+Backspace
This commit is contained in:
parent
73a1184433
commit
c1f68f614a
1 changed files with 19 additions and 4 deletions
|
|
@ -1,9 +1,28 @@
|
|||
# TODO: Explain what some of this does..
|
||||
|
||||
# To reset bindings:
|
||||
# bindkey -d
|
||||
#
|
||||
# To show value for a key combination
|
||||
# Ctrl+V => <Press the combination>
|
||||
#
|
||||
|
||||
bindkey -e
|
||||
|
||||
# Verified keybindings
|
||||
|
||||
bindkey "^[[3~" delete-char # Delete
|
||||
bindkey '^[[3;5~' kill-word # Ctrl+Delete
|
||||
bindkey '^_' backward-delete-word # Ctrl+Backspace
|
||||
bindkey '^[[2~' insert-last-word # Insert
|
||||
|
||||
# I actually don't know what those do
|
||||
|
||||
bindkey '\ew' kill-region
|
||||
bindkey -s '\el' "ls\n"
|
||||
bindkey -s '\e.' "..\n"
|
||||
|
||||
|
||||
bindkey '^r' history-incremental-search-backward
|
||||
bindkey "^[[5~" up-line-or-history
|
||||
bindkey "^[[6~" down-line-or-history
|
||||
|
|
@ -25,11 +44,7 @@ bindkey "^[[1;5D" backward-word
|
|||
|
||||
bindkey '^[[Z' reverse-menu-complete
|
||||
|
||||
# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey "^[[3~" delete-char
|
||||
bindkey "^[3;5~" delete-char
|
||||
bindkey "\e[3~" delete-char
|
||||
|
||||
# consider emacs keybindings:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue