Add terminfo entries for some keybindings
To support the same keybindings under st, use the terminfo entries.
This commit is contained in:
@@ -8,22 +8,28 @@
|
|||||||
|
|
||||||
## History
|
## History
|
||||||
## Alternatives to check out: {up,down}-line-or-search
|
## Alternatives to check out: {up,down}-line-or-search
|
||||||
bindkey '^[[A' history-substring-search-up # up
|
bindkey '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down # down
|
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||||
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
|
||||||
## Navigation
|
## Navigation
|
||||||
bindkey '^[[Z' reverse-menu-complete # shift-tab
|
bindkey '^[[Z' reverse-menu-complete # shift-tab
|
||||||
bindkey '^K' kill-whole-line # ctrl-K
|
bindkey '^K' kill-whole-line # ctrl-K
|
||||||
bindkey '^Q' push-input # ctrl-Q
|
bindkey '^Q' push-input # ctrl-Q
|
||||||
bindkey '\e[H' beginning-of-line # home
|
bindkey '\e[H' beginning-of-line # home
|
||||||
bindkey '\e[F' end-of-line # end
|
bindkey "$terminfo[khome]" beginning-of-line # home
|
||||||
bindkey -v '^?' backward-delete-char # normal delete not vim-bac...
|
bindkey '\e[F' end-of-line # end
|
||||||
bindkey '^[[3~' delete-char # map delete key
|
bindkey "$terminfo[kend]" end-of-line # end
|
||||||
bindkey '^[[1;5D' backward-word # ctrl-left
|
bindkey -v '^?' backward-delete-char # normal delete not vim-bac...
|
||||||
bindkey '^[[1;5C' forward-word # ctrl-right
|
bindkey '^[[P' delete-char # delete
|
||||||
bindkey '^H' backward-kill-word # ctrl-backspace
|
bindkey '^[[3~' delete-char # delete
|
||||||
bindkey '^[[3;5~' kill-word # ctrl-delete
|
bindkey '^[[1;5D' backward-word # ctrl-left
|
||||||
|
bindkey '^[[1;5C' forward-word # ctrl-right
|
||||||
|
bindkey '^H' backward-kill-word # ctrl-backspace
|
||||||
|
bindkey '^[[3;5~' kill-word # ctrl-delete
|
||||||
|
bindkey "$terminfo[kmous]" kill-word # ctrl-delete
|
||||||
|
|
||||||
## From https://github.com/nicoulaj/dotfiles/blob/1c7dd1b621bc8bae895bafc438562482ea245d7e/.config/zsh/functions/widgets/rationalize-dots
|
## From https://github.com/nicoulaj/dotfiles/blob/1c7dd1b621bc8bae895bafc438562482ea245d7e/.config/zsh/functions/widgets/rationalize-dots
|
||||||
function _expandDots {
|
function _expandDots {
|
||||||
|
|||||||
Reference in New Issue
Block a user