bhauman / rebel-readline

Terminal readline library for Clojure dialects
Eclipse Public License 1.0
684 stars 37 forks source link

Can't rebind CTRL-U to backward-kill-line #146

Closed elzibubble closed 6 years ago

elzibubble commented 6 years ago

I checked the JLine3 source: https://github.com/jline/jline3/blob/29a10451d0149c5e5c2e323a41788b99a2a4db60/reader/src/main/java/org/jline/reader/LineReader.java

and spotted a backward-kill-line widget. I wrote ~/.clojure/rebel_readline.edn:

{:key-map :viins
 :key-bindings {:viins [["^U" :backward-kill-line]]}}

but it doesn't work :(

Also (and I can open a separate issue for this if you want) it takes a long time to start the REPL so experimenting is annoying. A :repl/set-keybind "^U" backward-kill-line command would be very convenient.

bhauman commented 6 years ago

I think you are not using the latest version "0.1.2" of rebel-readline as this works fine for me.

elzibubble commented 6 years ago

Ah yep, thanks