fix(cursor): enable alt+delete to work in terminals

This commit is contained in:
Jim Myhrberg
2025-03-05 19:46:12 +00:00
parent 5a33d6e345
commit 53effb7185

5
zshrc
View File

@@ -217,13 +217,16 @@ zinit light-mode wait lucid \
for @zdharma-continuum/fast-syntax-highlighting for @zdharma-continuum/fast-syntax-highlighting
# ============================================================================== # ==============================================================================
# Edit command line # Command line keybindings
# ============================================================================== # ==============================================================================
autoload -z edit-command-line autoload -z edit-command-line
zle -N edit-command-line zle -N edit-command-line
bindkey "^X^E" edit-command-line bindkey "^X^E" edit-command-line
# Support for alt+<forward-delete> in some terminals.
bindkey "\e[3;3~" kill-word
# ============================================================================== # ==============================================================================
# Environment and Tool Managers # Environment and Tool Managers
# ============================================================================== # ==============================================================================