Remove unnecessary escaping for # and ~ inside key name tokens

While at it, don't escape "?", I don't know why 68e167d576 (f-k-r should
use the user's locale, 2016-06-29) did that. Question mark is only special
in combination with redirections.
This commit is contained in:
Johannes Altmanninger
2025-04-01 22:59:36 +02:00
parent 892c970bfa
commit daa692a20b
5 changed files with 32 additions and 19 deletions

View File

@@ -120,6 +120,15 @@ bind | string match -v '*\e\\[*'
# CHECK: bind -M bind_mode ctrl-x true
# CHECK: bind tab 'echo banana'
bind ctrl-#
bind alt-\#
bind super-ctrl-~
bind super-alt-\~
# CHECKERR: bind: No binding found for key 'ctrl-#'
# CHECKERR: bind: No binding found for key 'alt-#'
# CHECKERR: bind: No binding found for key 'super-ctrl-~'
# CHECKERR: bind: No binding found for key 'super-alt-~'
# Legacy
bind \cx\cax 'echo foo'
bind \cx\cax