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

Action to jump between REPL and editor #174

Closed
cursive-ide opened this issue Dec 14, 2013 · 7 comments
Closed

Action to jump between REPL and editor #174

cursive-ide opened this issue Dec 14, 2013 · 7 comments

Comments

@cursive-ide
Copy link
Owner

It would be nice to be able to jump from the editor to the REPL with a keypress. Currently there are no good solutions for this - "Jump to last toolwindow" only goes in one direction, and the command to open the REPL toolwindow will close it if it's already open.

@saolsen
Copy link

saolsen commented Dec 15, 2013

👍

1 similar comment
@adamwynne
Copy link

+1

@aadrian
Copy link

aadrian commented Dec 17, 2013

The IntelliJ toolwindows used to have shortcuts: Structure: Alt+7, Project: Alt+1, etc. and the shortcut is rendered in front of the name. IMO the REPL windows just needs one too.

To jump in the editor window from other tool windows, usually F4 works, but not from the REPL - would be nice if it would work too.

@cursive-ide
Copy link
Owner Author

You can assign a number to the REPL toolwindow under Settings->Keymap, however as noted above this will close the toolwindow if it's already open.

F4 is "Jump to source", it will only work if you have something highlighted in the toolwindow that has a useful source location to jump to.

@aadrian
Copy link

aadrian commented Dec 17, 2013

however as noted above this will close the toolwindow if it's already open.

I guess this is because the tool window is not pinned. E.g. the Project window is pinned, so jumping to it with Alt+1 will not close it, just get the focus.

@sfnelson
Copy link

Escape works to jump back to the editor from the REPL.

On Tue, Dec 17, 2013 at 10:52 PM, aadrian notifications@github.com wrote:

however as noted above this will close the toolwindow if it's already open.

I guess this is because the tool window is not pinned. E.g. the Project
window is pinned, so jumping to it with Alt+1 will not close it, just get
the focus.


Reply to this email directly or view it on GitHubhttps://github.com//issues/174#issuecomment-30738143
.

@cursive-ide
Copy link
Owner Author

You're right. So that's actually a fairly reasonable solution - Cmd-9 (in my case) to jump to the REPL, and escape jumps back to the editor. If everyone's happy with that I'll close this issue.

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

No branches or pull requests

5 participants