Skip to content
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

Add commands for moving WindowTabs tabs left/right #242322

Closed
pioio opened this issue Feb 28, 2025 · 5 comments
Closed

Add commands for moving WindowTabs tabs left/right #242322

pioio opened this issue Feb 28, 2025 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@pioio
Copy link

pioio commented Feb 28, 2025

Please add commands that would move WindowTabs left and right (to rearrange them).
This would allow creating keyboard shortcuts, and would allow quickly and easily re-arranging the window tabs (workspaces).
This would, in turn, be very helpful for users working with multiple workspaces in a single window.

Context:
We already have the ability to add keybindings to switch window tabs:
workbench.action.showNextWindowTab
workbench.action.showPreviousWindowTab

But currently there's no ability to move the WindowTabs around (left/right) using the keyboard. One has to drag-and-drop them, which is very inconvenient if one's IDE setup focuses on keyboard-only navigation.

Note, I'm not talking about editor tabs. We do have actions for moving those around:
workbench.action.moveEditorLeftInGroup
workbench.action.moveEditorRightInGroup

What needs to be added is like:
workbench.action.moveWindowTabLeft
workbench.action.moveWindowTabRight

@bpasero
Copy link
Member

bpasero commented Feb 28, 2025

@pioio are you sure this concept exists on macOS? For example, in the finder I am not seeing moving related commands available when I have 1 window with 2 tabs opened:

Image

We would need to know the menu selector for such a command, maybe @deepak1556 you know?

Refs:

Menu.sendActionToFirstResponder('moveTabToNewWindow:');

@bpasero bpasero added the info-needed Issue requires more information from poster label Feb 28, 2025
@deepak1556
Copy link
Collaborator

Don't see an api that lets to achieve the required move operations https://developer.apple.com/documentation/appkit/nswindow/tabbedwindows?language=objc#Managing-Window-Tabs

@bpasero
Copy link
Member

bpasero commented Feb 28, 2025

Then this will be hard to support without macOS adding it.

@pioio
Copy link
Author

pioio commented Mar 1, 2025

Hmm, I wasn't aware the windowTabs are handle by the OS on MacOS...

One, purely theoretical, way around this would be to swap the state of the windows/processes (rather than move tabs around). But I wouldn't be surprised if this was tricky to do.

Another, probably also tricky, way would be to do it in the way Chrome does it -- moving "browser tabs" in chrome on MacOS with keyboard shortcuts is possible (though it requires a add-on), but they probably have their custom mechanism for that for moving state between the windows.

@bpasero
Copy link
Member

bpasero commented Mar 1, 2025

Yeah, sorry.

@bpasero bpasero closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants