Key binding changes
This commit is contained in:
parent
7eadc39b28
commit
32842dcd00
2 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,7 @@ key[PageDown]=${terminfo[knp]}
|
||||||
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward
|
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward
|
||||||
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward
|
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward
|
||||||
|
|
||||||
bindkey "^[e" expand-cmd-path # C-e for expanding path of typed command.
|
bindkey "\ee" expand-cmd-path # A-e for expanding path of typed command.
|
||||||
bindkey " " magic-space # Do history expansion on space.
|
bindkey " " magic-space # Do history expansion on space.
|
||||||
bindkey $'\177' backward-delete-char # backspace
|
bindkey $'\177' backward-delete-char # backspace
|
||||||
bindkey $'\10' backward-delete-word # C-backspace
|
bindkey $'\10' backward-delete-word # C-backspace
|
||||||
|
@ -88,3 +88,7 @@ fi
|
||||||
if zle -l tmsu-fzf-change-directory; then
|
if zle -l tmsu-fzf-change-directory; then
|
||||||
bindkey "^t" tmsu-fzf-change-directory
|
bindkey "^t" tmsu-fzf-change-directory
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
zle-venv() { zle push-line; BUFFER="venv -t"; zle accept-line }
|
||||||
|
zle -N zle-venv
|
||||||
|
bindkey "\ev" zle-venv
|
||||||
|
|
1
zshrc
1
zshrc
|
@ -13,6 +13,7 @@ setopt completeinword
|
||||||
setopt chase_links
|
setopt chase_links
|
||||||
setopt short_loops
|
setopt short_loops
|
||||||
setopt cdable_vars
|
setopt cdable_vars
|
||||||
|
WORDCHARS=${WORDCHARS//\/}
|
||||||
|
|
||||||
export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}
|
export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue