-
-
Notifications
You must be signed in to change notification settings - Fork 373
Add "Move Tab to a New Window" in tab context menu #509
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
base: master
Are you sure you want to change the base?
Conversation
I think adding this functionality is a good idea, though I think the implementation should be different. I recently added a
there can be more than one top-level window in a session. Then, when Explorer++ next starts, each of the previous windows will be restored, rather than just the first one. Hosting multiple windows in one process should ultimately work a lot better:
If you run Explorer++ with the By adding some similar code, you could create a new window with a specific tab. For example, if you took the code for initialData.tabs = { { .pidl = pidlOfExistingTab } };
initialData.selectedTab = 0; then that should result in a new window being created with that one specific tab. So, I think this functionality should be gated by the At the moment, |
Actually, what might work better would be to add your changes, excluding the changes to But I don't think adjusting the main window position is useful, given that the eventual plan is to only ever have a single process and there's already code to offset the window position in that case. |
And open new windows in the default bounds, not in the stored bounds, avoiding that confusing behavior when the new window is created in the same exact position of the previous one. The stored bounds are used for the first instance.
…ssion # Conflicts: # Explorer++/Explorer++/Explorer++.cpp
6dc0af3
to
6cfa47b
Compare
OK, I have rebased to synchronize with master and added condition to avoid conflicts in setting the bounds of new window when the feature MultipleWindowsPerSession is enabled.
I use multiple windows in my daily work, I know all the four points you mention, they don't usually bother me. So I want the menu item appear in the normal mode until the MultipleWindowsPerSession feature becomes enabled by default (I tried it and has too many bugs). Anyway, feel free to modify anything you want in this PR-branch, you have edit permissions. By the way, let me suggest: new features usually are managed by git branches, not with "secret" parameters ;) |
And open new windows in the default bounds, not in the stored bounds, avoiding that confusing behavior when the new window is created in the same exact position of the previous one.
The stored bounds are used for the first instance.