diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-03-07 11:19:32 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-03-07 11:19:32 +0200 |
| commit | 746981e1a3a927e6569eb8cb53b2037fce9480c0 (patch) | |
| tree | cd8546f48bae831dc6c86a9b801cde01a09417ab /.config/zsh/lib/bindings.zsh | |
| parent | 7473b17fc7ee8b0ee048cf1187bd989e8f7740ee (diff) | |
| download | dotfiles-746981e1a3a927e6569eb8cb53b2037fce9480c0.tar.gz dotfiles-746981e1a3a927e6569eb8cb53b2037fce9480c0.zip | |
Changed name
Diffstat (limited to '.config/zsh/lib/bindings.zsh')
| -rw-r--r-- | .config/zsh/lib/bindings.zsh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/.config/zsh/lib/bindings.zsh b/.config/zsh/lib/bindings.zsh deleted file mode 100644 index ce8451b..0000000 --- a/.config/zsh/lib/bindings.zsh +++ /dev/null @@ -1,39 +0,0 @@ -########## Vi mode ########## -bindkey -v -#bindkey -M viins '^?' backward-delete-char -#local WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' -backward-kill-dir () { - local WORDCHARS=${WORDCHARS/\/} - zle backward-kill-word - zle -f kill -} -zle -N backward-kill-dir -bindkey '^[^?' backward-kill-dir -bindkey "^W" backward-kill-dir -bindkey -M viins '^[[3~' delete-char -bindkey -M vicmd '^[[3~' delete-char -bindkey -v '^?' backward-delete-char -bindkey -r '\e/' -bindkey -s jk '\e' -#bindkey "^W" backward-kill-word -bindkey "^H" backward-delete-char # Control-h also deletes the previous char -bindkey "^U" backward-kill-line -bindkey "^[j" history-search-forward # or you can bind it to the down key "^[[B" -bindkey "^[k" history-search-backward # or you can bind it to Up key "^[[A" - -# Define the 'autosuggest-execute' and 'autosuggest-accept' ZLE widgets -autoload -Uz autosuggest-execute autosuggest-accept -zle -N autosuggest-execute -zle -N autosuggest-accept -bindkey '^X' autosuggest-execute -bindkey '^Y' autosuggest-accept - -# Edit line in vim with alt-e -autoload edit-command-line; zle -N edit-command-line -bindkey '^e' edit-command-line -bindkey '^[e' edit-command-line # alt + e - -# Allow CTRL+D to exit zsh with partial command line (non empty line) -exit_zsh() { exit } -zle -N exit_zsh -bindkey '^D' exit_zsh |
