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:
parent
090e196cd5
commit
4be8319c4a
2 changed files with 14 additions and 0 deletions
|
@ -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
8
micro/bindings.json
Normal 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"
|
||||
}
|
Loading…
Reference in a new issue