From 32842dcd000be04762d22e231e5a5b4d37a83230 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 2 Apr 2020 18:21:55 +0200 Subject: [PATCH] Key binding changes --- bindings.zsh | 6 +++++- zshrc | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bindings.zsh b/bindings.zsh index a61fbc0..4bd7920 100644 --- a/bindings.zsh +++ b/bindings.zsh @@ -26,7 +26,7 @@ key[PageDown]=${terminfo[knp]} [[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward [[ -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 $'\177' backward-delete-char # backspace bindkey $'\10' backward-delete-word # C-backspace @@ -88,3 +88,7 @@ fi if zle -l tmsu-fzf-change-directory; then bindkey "^t" tmsu-fzf-change-directory fi + +zle-venv() { zle push-line; BUFFER="venv -t"; zle accept-line } +zle -N zle-venv +bindkey "\ev" zle-venv diff --git a/zshrc b/zshrc index bd0768f..8f0ebbc 100644 --- a/zshrc +++ b/zshrc @@ -13,6 +13,7 @@ setopt completeinword setopt chase_links setopt short_loops setopt cdable_vars +WORDCHARS=${WORDCHARS//\/} export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}