-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Splitview #1080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com> # Conflicts: # CodeEdit/Features/Documents/WorkspaceDocument.swift # CodeEdit/Features/Tabs/Views/TabBarItemView.swift # CodeEdit/Features/Tabs/Views/TabBarView.swift
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com> # Conflicts: # CodeEdit/WorkspaceView.swift
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
@Wouter01 was just testing this out, it seems that the bottom drawer no longer allows you to select Debugger or Output, not for sure if this on purpose or not! |
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Must've messed something up there 😅, I'll have a look |
Looks like there was no code for those yet? There was however an unused switch, which I probably removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After thorough testing, I cannot reproduce any of my previously reported bugs! 👏
Way to go @Wouter01, great work. What an accomplishment! 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple things beyond the comments I've left:
- There's a regression in the native tab style. The tab background is the active tab color and tabs consume the entire tab area when opened. See screenshots:
Before:
- After clicking the back and forward arrows of an inactive split, it doesn't bring the inactive split into focus. This looks like it's a quick fix by just setting
tabManager.activeTabGroup
in those button handlers.
CodeEdit/Features/NavigatorSidebar/ExtensionNavigator/ExtensionNavigatorView.swift
Outdated
Show resolved
Hide resolved
@thecoolwinter I actually don't mind a single tab taking up the full width, two tabs taking 50% of the width, etc. This is how they work in Finder and every other app that supports native tabs. However, there is a slight problem, when there are no tabs, it looks like there is one big empty tab in the tab bar. It should instead be the darker background color behind the buttons. Also when using native tabs, the vertical split line goes all the way up into the toolbar... |
Thanks for the feedback! I'll try addressing the issues. I wanted to touch on this:
I've checked, and it looks like that behavior is also there on the latest release of CodeEdit, so I'm guessing the change must've been made earlier. That said, I did make a regression regarding the color of the tabbar when no tabs are present, as @austincondiff pointed out. |
@Wouter01 One additional thing I just found, after clicking the back and forward arrows of an inactive split, it doesn't bring the inactive split into focus. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just fix @thecoolwinter 's comments and then it can be merged I think.
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
7fd8849
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
@thecoolwinter mentioned that too, it's fixed! |
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, for the last time! After this I am not approving again... 😜
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. This is a lot of work nice job!
Description
This PR adds splitview support for the editor. It includes the following features:
There are also some regressions, which will be addressed in a later PR:
Related Issue
#338
#1109
Checklist
Create Split View by dragging file into editorMove tab to other editor by draggingWorkspaceDocument
and others to support multiple tabgroupsScreenshots