advanced-open-file icon indicating copy to clipboard operation
advanced-open-file copied to clipboard

Open file in adjacent pane

Open tonatiuh opened this issue 9 years ago • 7 comments

It would be nice if you could open the selected file in an adjacent pane, currently I see you can only open it in the current pane. A keybinding such as <ctrl+v>

tonatiuh avatar Mar 08 '16 16:03 tonatiuh

A keybinding such as...? :P

Osmose avatar Mar 08 '16 17:03 Osmose

Such as <ctrl+v>. Sorry, github hid it the first time.

tonatiuh avatar Mar 08 '16 17:03 tonatiuh

Provided that finding the adjacent pane is an easy thing to do, I don't see why we shouldn't have these. If I'm understanding you correctly, you're asking for a set of shortcuts like this:

  • Open File in Pane Above
  • Open File in Pane Below
  • Open File in Pane to the Left
  • Open File in Pane to the Right

Is that correct?

Osmose avatar Mar 08 '16 17:03 Osmose

Yes, that's correct.

tonatiuh avatar Mar 08 '16 17:03 tonatiuh

There are keybindings that already do this. If you have advanced-open-file open, the following keybindings will do what you are asking

'.platform-win32 .tree-view, .platform-linux .tree-view':
  'ctrl-k right': 'tree-view:open-selected-entry-right'
  'ctrl-k left': 'tree-view:open-selected-entry-left'
  'ctrl-k down': 'tree-view:open-selected-entry-down'
  'ctrl-k up': 'tree-view:open-selected-entry-up'

ericdill avatar Mar 08 '16 18:03 ericdill

Don't those create new panes though? I was thinking that this was more about opening in existing panes and those ones were about splitting to a brand-new pane.

Osmose avatar Mar 08 '16 18:03 Osmose

Don't those create new panes though?

Yes. I misunderstood the request. Sorry for the noise!

ericdill avatar Mar 08 '16 18:03 ericdill