making rlwrap Clojure friendly

16 views
Skip to first unread message

Sergey Didenko

unread,
Nov 21, 2009, 7:30:55 AM11/21/09
to clo...@googlegroups.com
Hi,

has anybody tried to make rlwrap lexer more Clojure friendly? Just
adding "-" to the "word characters" would be a big gain (to enjoy
auto-completion.)

I spent some time looking through rlwrap sources but has not find a
good place to do the changes.

Regards, Sergey.

Sergey Didenko

unread,
Nov 21, 2009, 7:35:25 AM11/21/09
to clo...@googlegroups.com
Probably it can be done with Rlwrap filters, I have not tried it yet.

Chouser

unread,
Nov 23, 2009, 9:47:18 AM11/23/09
to clo...@googlegroups.com
The shell script I use to start my Clojure REPLs includes this:

rlwrap --remember --complete-filenames \
--history-filename ~/.clojure/history \
--break-chars "\"\\'(){}[],^%$#@;:|" \
<java and its startup args here>

I'm sure it's imperfect, but works well enough for me.

--Chouser

Sergey Didenko

unread,
Nov 23, 2009, 10:07:20 AM11/23/09
to clo...@googlegroups.com
So simple :) Thanks!
Reply all
Reply to author
Forward
0 new messages