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.
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
andin-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 usingin-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=-