advanced-open-file
advanced-open-file copied to clipboard
Open file in adjacent pane
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>
A keybinding such as...? :P
Such as <ctrl+v>. Sorry, github hid it the first time.
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?
Yes, that's correct.
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'
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.
Don't those create new panes though?
Yes. I misunderstood the request. Sorry for the noise!