Small demo that it is pretty easy to make repl tab completion smarter.
When I have written this, I wondered why noone had written something that obviously useful before.
Since then, I have discovered that the cake build tool includes a repl with tab completion just like I wanted to create with this.
https://github.com/ninjudd/cake
Build a jar with all necessary classes:
$ lein uberjar
Run the standalone jar:
$ java -jar tabrepl-*-standalone.jar
$ java -jar tabrepl-*-standalone.jar
Starting...
clojure.core => (print
print print-ctor print-doc print-dup print-method print-namespace-doc print-simple print-special-doc print-str printf println println-str
clojure.core => (println
println println-str
clojure.core => (println "test")
test
nil
clojure.core =>
Copyright (C) 2010 Peter Kolloch
Distributed under the Eclipse Public License, the same as Clojure.