Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Suggestion: Add a keybind command to swap the files currently open in upper and lower pane. #13061

Open
snctfd opened this issue Jan 23, 2017 · 12 comments

Comments

@snctfd
Copy link

snctfd commented Jan 23, 2017

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.

@petetnt
Copy link
Collaborator

petetnt commented Jan 24, 2017

👍 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

$headerFlipViewBtn.on("click.pane", function (e) {
would be a good place to start.

@snctfd
Copy link
Author

snctfd commented Jan 24, 2017

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 :)

@spiritson
Copy link

@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

@spencerflem
Copy link

I'm thinking of taking this bug. Would you recommend moving the function to MainViewManager or leaving it in Pane?

@swmitra
Copy link
Collaborator

swmitra commented Jan 27, 2017

I guess if we are making this part of core, it should be enabled only by a preference which by default should be false.

@petetnt
Copy link
Collaborator

petetnt commented Jan 27, 2017

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).

@swmitra
Copy link
Collaborator

swmitra commented Jan 27, 2017

Yes @petetnt that makes complete sense.

@SteveMieskoski
Copy link

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.

@zaggino
Copy link
Contributor

zaggino commented Feb 28, 2017

@SteveMieskoski go ahead and reference your PR here so we can track the progress, thanks!

SteveMieskoski added a commit to SteveMieskoski/brackets that referenced this issue Mar 5, 2017
…ggestion: Add a keybind command to swap the files currently open in upper and lower pane.
@genjurosama
Copy link

Hello everyone i'm new here and wondering why this issue is still open .

@natraj-s
Copy link

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.

@nyteksf
Copy link
Contributor

nyteksf commented Jun 14, 2018

Hello. Only assuming the last PR from over a year ago is pretty much dead, if I were to ask, could someone please take a look at my recent PR here? Thank you in any case.

@zaggino @petetnt

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

No branches or pull requests

10 participants