Improve delete word shortcuts for fish and micro

I had no idea that it's so complicated to do this with terminals!
This commit is contained in:
Anthony Wang 2024-10-16 00:16:01 -04:00
parent 090e196cd5
commit 4be8319c4a
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ
2 changed files with 14 additions and 0 deletions

View file

@ -13,3 +13,9 @@ abbr -a -- p 'git push'
abbr -a -- q 'git pull'
abbr -a -- s 'git status'
abbr -a -- t 'gio trash'
# https://github.com/fish-shell/fish-shell/issues/4770
# https://github.com/fish-shell/fish-shell/commit/2e9de57fd78f1c9ee0e71e141b75bb2b24abfc2d
# Remove after Fish 4.0
bind \cH backward-kill-word
bind \e\[3\;5~ kill-word

8
micro/bindings.json Normal file
View file

@ -0,0 +1,8 @@
{
// Defaults
"Alt-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment",
// https://github.com/zyedidia/micro/issues/2008
"OldBackspace": "DeleteWordLeft",
"CtrlDelete": "DeleteWordRight"
}