bhauman / rebel-readline

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

namespace autocomplete and switch #192

Closed dharrigan closed 2 years ago

dharrigan commented 5 years ago

Hi,

Would it be possible to implement a feature whereby on the terminal, there could be a command that autoswitches to a new namespace on tab completion, instead of having to type in require and in-ns manually?

i.e.,

user=> switch-ns acm<TAB>

would show me namespaces beginning with acm, then present a list of choices wher I could select and complete. When I select, the repl would require that namespace and put me in that namespace using in-ns.

(another possible name could be user=> goto-ns acm<TAB>)

Just a thought. As a beginner to clojure, I would find it really handy to switch quickly, say between my main namespace and a test namespace.

I'm aware that editors, like vim and emacs allows you to move between namespaces, but I'm not in an editor all the time, quite often I launch the repl just to play around with things.

Thank you.

-=david=-