diff -r 781084ef85ce -r 8a5b395a94f7 .inputrc --- a/.inputrc Tue Dec 27 16:14:46 2022 +0200 +++ b/.inputrc Mon Feb 13 14:07:38 2023 +0200 @@ -1,7 +1,8 @@ # Settings for readline. # # Tips: -# C-x C-r re-read ~/.inputrc +# * Re-read ~/.inputrc: C-x C-r +# * Dump PTY codes on a key release: showkey -a # I like this! set editing-mode emacs @@ -81,16 +82,25 @@ "\C-w": kill-region "\M-w": copy-region-as-kill -# Ctrl+Left/Right to move by whole words. +# Ctrl+Left/Right to move by whole words. XTerm/Mintty. "\e[1;5C": forward-word "\e[1;5D": backward-word # Same with Shift pressed. "\e[1;6C": forward-word "\e[1;6D": backward-word +# Same but in Putty. +"\eOC": forward-word +"\eOD": backward-word -# Ctrl+Backspace/Delete to delete whole words. +# Ctrl+Backspace/Delete to delete whole words. XTerm/Mintty. "\e[3;5~": kill-word "\C-_": backward-kill-word +# Alt+DEL delete word forward. Putty. +"\e\e[3~": kill-word +# Alt+DEL delete word forward. XTerm, Mintty. +"\e[3;3~": kill-word +# Alt+BACKSPACE delete word backward. Putty. +"\e\d": backward-kill-word # UP/DOWN filter history by typed string as prefix. "\e[A": history-search-backward