best inputrc ever
This commit is contained in:
+19
-18
@@ -19,28 +19,29 @@ set input-meta on
|
||||
set output-meta on
|
||||
set convert-meta off
|
||||
|
||||
# CTRL + { left, right } for moving around words
|
||||
"\e[1;5D": vi-backward-word
|
||||
"\e[1;5C": vi-forward-word
|
||||
|
||||
# ALT + { left, right } for moving around Big Words (faster)
|
||||
"\e[1;3D": vi-backward-bigword
|
||||
"\e[1;3C": vi-forward-bigword
|
||||
|
||||
# CTRL + { backspace, delete } for word suppressing
|
||||
"\C-H": backward-kill-word
|
||||
|
||||
# ALT + { backspace, delete } for suppressing until start/end (faster)
|
||||
"\e[3;3~": kill-line
|
||||
"\e\C-?": backward-kill-line
|
||||
|
||||
# ALT + { backspace, delete } for suppressing the whole line
|
||||
"\e[3;2~": kill-whole-line
|
||||
"\e[127;2u": kill-whole-line
|
||||
|
||||
# { up, down } for history search
|
||||
"\e[A": history-search-backward
|
||||
"\e[B": history-search-forward
|
||||
|
||||
# CTRL + { left, right } for moving around Big Words
|
||||
"\e[1;5D": vi-backward-bigword
|
||||
"\e[1;5C": vi-forward-bigword
|
||||
|
||||
# ALT + { left, right } for moving around words (slower)
|
||||
"\e[3;5D": vi-backward-word
|
||||
"\e[3;5C": vi-end-word
|
||||
|
||||
# SHIFT + { backspace, delete } for suppressing until start/end (ghostty)
|
||||
"\e[3;2~": kill-line
|
||||
"\e[127;2u": backward-kill-line
|
||||
|
||||
# ALT + backspace for suppressing until start (alternative)
|
||||
"\e\C-?": backward-kill-line
|
||||
|
||||
# ALT + delete for suppressing whole line
|
||||
"\e[3;3~": kill-whole-line
|
||||
|
||||
# SHIFT + (CTRL) + Arrows: does nothing
|
||||
"\e[1;2D": ''
|
||||
"\e[1;2C": ''
|
||||
|
||||
Reference in New Issue
Block a user