From 26fce85ba935a0eddcb4e1e70f9e563f246899f0 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 3 Feb 2021 21:58:50 -0500 Subject: Hack to get double-backslash escape working in inputrc --- editors/inputrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editors/inputrc b/editors/inputrc index 4e436dab..3acc83a2 100644 --- a/editors/inputrc +++ b/editors/inputrc @@ -1,6 +1,12 @@ # BQN keybindings for Readline configuration file .inputrc # Enables BQN combinations in bash and rlwrap (used by dzaima/BQN REPL) +# Readline bindings are recursive, so use this trick to turn double +# backslash into an actual backslash character. +# Assuming ctrl-x esc isn't bound, the part after \\ does nothing, +# except keep Readline from waiting for a backslash combination. +"\\\\" "\\" + "\\`" "˜" "\\1" "˘" "\\2" "¨" -- cgit v1.2.3