# GNU Readline main configuration file

set blink-matching-paren on
set visible-stats on
set mark-symlinked-directories on

## completion case insensitive and ambiguous
set show-all-if-ambiguous on
set skip-completed-text on
set colored-completion-prefix on
set colored-stats on
set completion-ignore-case on
set completion-prefix-display-length 15
set completion-query-items 20
set menu-complete-display-prefix on

# display characters with the eighth bit set directly
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
"\e[3;5~": kill-word

# ALT + { backspace, delete } for suppressing until start/end (faster)
"\e[3;3~": kill-line
"\e\C-?": backward-kill-line
# ALT + backspace special ghostty
"\e[127;11u": backward-kill-line 

# SHIFT + { backspace, delete } for suppressing the whole line
"\e[3;2~": kill-whole-line
"\e[127;2u": kill-whole-line

# { CTRL, ALT } + u for undo 
"\eu": undo
"\C-u": undo

# { up, down } for history search
"\e[A": history-search-backward
"\e[B": history-search-forward

# SHIFT + (CTRL) + Arrows: does nothing
"\e[1;2D": ''
"\e[1;2C": ''
"\e[1;6D": ''
"\e[1;6C": ''

