You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This new feature improves the Splitscreen UX by adding buttons to panel headers that allow user to quickly flip the current view to another pane. It's not a complete solution, but another alternative to dragging the files over to another panel which can be a bit cumbersome, as evidenced in #11308, #11448, #11345 and others.
When Split View is enabled, arrow buttons are added to the panel that indicate flipping
Clicking such button flips the view to the other panel, revealing the last used file in the pane it was flipped from
If there's no files open in the new other pane, the button obviously isn't there
This of course works in vertical split mode too:
The first commit doesn't include unit tests because Jasmine Spec Runner won't work for whatever reason: while I am looking at that issue, any feedback, improvements or questions are welcome.
edit: Build failed because the API rate limit exceeded
edit: 2
The panes now contain a close buttons too as similar to what @zaggino suggested.
Clicking the x closes the file, or prompts for confirmation if a file is dirty. If pane contains no files, the close button collapses the views by setting the layout scheme to 1x1
petetnt
changed the title
[REVIEW][New feature] Add flip-view buttons to pane-headers
[REVIEW][New feature] Add flip-view and close buttons to pane-headers
Oct 11, 2015
The panes now contain a close buttons too as similar to what @zaggino suggested.
Clicking the x closes the file, or prompts for confirmation if a file is dirty. If pane contains no files, the close button collapses the views by setting the layout scheme to 1x1
i like how the close highlights when hovered, can you make the same with the arrows? right now arrow icon doesn't highlight but some weird border around it highlights
the icons doesn't have to be there all the time, maybe they can appear only when I hover over the title area? (i mean the .pane-header element)
when i click close icon on the last file in the right panel, it doesn't close but i have to click again to close the empty panel? <- this actually might be a feature, not a problem, just saying
if i have one file in the left panel and one file in the right panel, when i close the left file and then close the left pane, the right file disappears (it works fine closing the right panel, left file stays open)
Thanks for the comments @zaggino. I'll look into those asap, esp. 4), not sure what's up with that 🔨 It seems that getCurrentlyViewedFile() returns the file in the active pane and just clicking on the x doesn't active the pane itself -> wrong file closes.
I was putting some behavior for 2) and 3) behind some prefs: hover, always and off for the panel buttons (default being hover) and something like CLOSE_PANE_AFTER_LAST for the panes:
@abose good catch, the close button is there but you cannot see it when you are using a light theme such as Brackets default. Didn't test it out on a lighter theme after adding the close button, will fix asap
Thanks for this feature @petetnt .
All unit/integration tests passing. LGTM.
When this is ok to be merged, Please remove the [review] tag from the title.
petetnt
changed the title
[REVIEW][New feature] Add flip-view and close buttons to pane-headers
[New feature] Add flip-view and close buttons to pane-headers
Oct 15, 2015
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This new feature improves the Splitscreen UX by adding buttons to panel headers that allow user to quickly flip the current view to another pane. It's not a complete solution, but another alternative to dragging the files over to another panel which can be a bit cumbersome, as evidenced in #11308, #11448, #11345 and others.
When Split View is enabled, arrow buttons are added to the panel that indicate flipping
Clicking such button flips the view to the other panel, revealing the last used file in the pane it was flipped from
If there's no files open in the new other pane, the button obviously isn't there
This of course works in vertical split mode too:
The first commit doesn't include unit tests because Jasmine Spec Runner won't work for whatever reason: while I am looking at that issue, any feedback, improvements or questions are welcome.
edit: Build failed because the API rate limit exceedededit: 2
The panes now contain a
close buttons
too as similar to what @zaggino suggested.Clicking the
x
closes the file, or prompts for confirmation if a file is dirty. If pane contains no files, theclose button
collapses the views by setting the layout scheme to1x1