I like to have the upper pane much larger than the lower, so I can take a quick look at another file than the one I'm working on without losing much space on the screen. However, if I decide to work on the file I have open in the lower pane while quick-referencing the one on my upper pane, I have to use the mouse to swap the two files around.
Needless to say, this is an atrocity. I'd like to suggest adding a command to swap the two.
👍 Calling it an atrocity is a _bit_ too harsh, but I agree that it could be much better. Would you like to take a stab, checking out https://github.com/adobe/brackets/blob/e8bbf5ef8ce08c0d37f8e0218ed0127a1217fe26/src/view/Pane.js#L241 would be a good place to start.
I'm aware it was a bit too harsh, it was intended sarcastically as it's kind of a petty complaint in the big picture (oh no, I have to move my mouse). Sorry if it sounded rude, it wasn't intended as such :)
@petetnt Should it be an extension instead? or would you like it be part of core? I see something very very close to this request already part of core from this #12853
I'm thinking of taking this bug. Would you recommend moving the function to MainViewManager or leaving it in Pane?
I guess if we are making this part of core, it should be enabled only by a preference which by default should be false.
IMHO the fix should be flipping files between panes via buttons: the functionality is already there, but there's no keybindings for the flipview functionality. If we had the flipview functionality mapped to keybindings, SameDocMultiplePanes + FlipView would solve this problem (instead of just flipping two documents around).
Yes @petetnt that makes complete sense.
I'm thinking about picking this up if there are no objections. @petetnt, I looked into mapping the keybindings to the functionality you mentioned but didn't find the 'SameDocMultiplePanes' functionality you mentioned. I have something partially together which swaps the views but will wait to hear back.
@SteveMieskoski go ahead and reference your PR here so we can track the progress, thanks!
Hello everyone i'm new here and wondering why this issue is still open .
Same as above. New here and trying to make contributions. Is this issue still open after @SteveMieskoski's PR #13150? Seems like that was nearly a year ago.
@zaggino @petetnt