Keymap.cson Atom: jumping between panes

juno

#1

Hi:

I am trying to mimic my usual gvim/nya vim usage. What I am trying to do is jump with ‘ctrl-`’ key to go back & forth between the editor & repl(console?) panes. So, I attempted:

'.editor':
    'ctrl-`': 'window:focus-pane-below'

#'.ink-console':
#'juno.runtime.console':
#'juno.runtime':
'console':
    'ctrl-`': 'window:focus-pane-above'

2 problems:

  1. I cannot get back to editor from repl
  2. I really do not want to focus-pane-above or below, but rather focus on the repl or julia editor, as Plots pane is open often.

can someone tell me what : ‘console’ above should be replaced with?
Share some of his/her keymap.cscons; plus, any .vimrc examples would be great to have (as sometimes I need a light IDE)"
Thanks!


#2

I’m not entirely sure this is possible right now, but it would be pretty easy (and useful) to have a command to switch to the console and back to the last used editor. Feel free to open an issue and I’ll see about implementing that! :slight_smile:


#3

I found following does the job

‘atom-text-editor[data-grammar=“source julia”]’:
‘ctrl-`’: ‘window:focus-pane-below’
’.julia-console.julia atom-text-editor’:
‘ctrl-`’: ‘window:focus-pane-above’

Still made a rqst as I will like more specific control.
Thank u for the suggestion!