Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle between the Clojure & ClojureScript REPL #1337

Closed
bbatsov opened this issue Sep 19, 2015 · 13 comments
Closed

Toggle between the Clojure & ClojureScript REPL #1337

bbatsov opened this issue Sep 19, 2015 · 13 comments

Comments

@bbatsov
Copy link
Member

bbatsov commented Sep 19, 2015

If we have the two REPLs for some project it will be nice to be able to quickly toggle between them.

@expez
Copy link
Member

expez commented Sep 19, 2015

Any suggestion for a keybinding?

I immediately thought of C-c C-r(rotate repl), because I've never used that binding, but that's bound to eval region. Is eval region really something that's useful in the repl buffer?

@bbatsov
Copy link
Member Author

bbatsov commented Sep 19, 2015

I was thinking of C-c M-z. Frankly, I dislike the rotate terminology.

@Malabarba
Copy link
Member

How about cider-other-repl under C-c o in analogy to other-window.

@bbatsov
Copy link
Member Author

bbatsov commented Sep 21, 2015

This is a keybinding reserved for users. (but I like the name for the command, this was my idea as well, although inspired by find-other-file).

@expez
Copy link
Member

expez commented Sep 21, 2015

How about repurposing the C-c C-o binding? It's currently used by:

C-c C-o runs the command cider-repl-clear-output, which is an
interactive compiled Lisp function in `cider-repl.el'.

It is bound to C-c C-o, <menu-bar> <REPL> <Clear output>.

(cider-repl-clear-output)

Delete the output inserted since the last input.

Since we already have C-c M-o (which clears the entire repl) I've never found the need for C-c C-o.

@bbatsov
Copy link
Member Author

bbatsov commented Sep 21, 2015

It's pretty useful when the last evaluation dumped some huge output and you lost context because of it. SLIME has the same command with the same keybinding, so I'm guessing plenty of people are used to it.

@expez
Copy link
Member

expez commented Sep 21, 2015

Right. What about repurposing C-c M-o then, and let C-c M-o be what C-c C-o does when given a prefix? That way C-c C-o clears the last or all output.

@Malabarba
Copy link
Member

I like that.

@bbatsov
Copy link
Member Author

bbatsov commented Sep 21, 2015

I like it as well.

@arichiardi
Copy link
Contributor

:+1 I use C-c M-o a lot, but I guess that change won' t bother me too much, it actually sounds more appropriate to have a prefix to C-c C-o

@bbatsov
Copy link
Member Author

bbatsov commented Nov 5, 2015

I didn't rebind the command in cider-mode, only in cider-repl-mode. Probably it'd better if it were changed there as well for consistency.

@expez
Copy link
Member

expez commented Nov 5, 2015

Yes

@bbatsov
Copy link
Member Author

bbatsov commented Nov 5, 2015

Done.

On 5 November 2015 at 10:08, Lars Andersen [email protected] wrote:

Yes


Reply to this email directly or view it on GitHub
#1337 (comment)
.

Best Regards,
Bozhidar Batsov

http://www.batsov.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants