dotfiles/.config/zsh/keybinds.zsh
GRMrGecko 8fdb1e4d87 Replace ZDOTDIR with custom ZSH_CONFIG var and fix keybinds
Use ZSH_CONFIG instead of ZDOTDIR to avoid conflicts with zsh internals
(e.g. tmux). Register custom word-movement widgets with zle -N, remove
incorrect TERM="konsole" export, add local.zsh config loading, and add
~/.local/bin to PATH.
2026-02-13 09:05:36 -06:00

13 lines
339 B
Bash

WORDCHARS='~!#$%^&*(){}[]<>?+;'
MOTION_WORDCHARS='~!#$%^&*(){}[]<>?+;'
''{back,for}ward-word() WORDCHARS=$MOTION_WORDCHARS zle .$WIDGET
zle -N backward-word
zle -N forward-word
bindkey '^[[1;3C' forward-word
bindkey '^[[1;3D' backward-word
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
bindkey '^[^?' backward-kill-word