GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Currently we just have one of these, for exiting, available via exit, quit, etc.
It might be nice to have more of these. One example, from Giles Bowkett on twitter, would be the history, similar to what bash has. <Ctrl-r>/<Ctrl-s> (in v0.2.0) are nice but this would be handy too (e.g. run stats in clojure on what commands are most common?)
I'm assuming there are other use cases as well (debugger? swapping out completion lib? panic button+reset to start state?), so would like to make this extensible.
Problem to overcome:
Evaluation of these commands actually must happen on the client side of the nREPL, which prevents us from using the typical clojure namespacing mechanisms to separate bits of functionality. For the history feature, for example, we need execution on the client because the client is where jline executes & writes to the history file.
Erlang's Eshell uses ^G (CTRL+G) to go into "User switch command" mode, where you can call things like quit, connect to other shells, start remote shells etc. Maybe it would be interesting to put exit and quit in a similar thing to avoid them to shadow actual functions named that?