I often have multiple tabs open.
I’m trying to move an Obsidian window, and the tab gets separated from the window or moved.
How can I fix tabs so that I can move the entire window without separating the tabs?
I often have multiple tabs open.
I’m trying to move an Obsidian window, and the tab gets separated from the window or moved.
How can I fix tabs so that I can move the entire window without separating the tabs?
I set:
Then you can drag from the top of the window as the tabs will not be in the way:
You need to grab the top part in an area where there are no other actions. Two good areas are either between the open tabs and the right hand side (which is rather small in your case), or possibly to the right of the icons in the left sidebar if you expand that.
There’s a small chance too that pressing a modifier key like Ctrl while clicking might give you a “click anywhere in the window and drag” mode (but maybe that was just a feature on some random Linux I used to use).
Apparently it’s possible on Mac after doing a Terminal thing to enable it. Moving a macOS window by clicking anywhere on it (like on Linux) | Matteo Mazzarolo
On at least some Linuxes, Alt drag does it. https://www.reddit.com/r/kde/comments/9b9rts/daily_tip_you_can_drag_windows_by_holding_alt_and/
From my quick search it looks like Windows doesn’t do it, but there may be third party apps that enable it (example that hasn’t updated since 2015: AltDrag)
Also, if you have little long paths + filenames, my method still will fall short.
Thank you, it helped.
But outwardly it doesn’t look so compact anymore…
Thank you all for your answers and participation!
If there are any more receptions, I will be glad to know.
Maybe you could work with this CSS to fit your needs.
If you never use your mouse to switch tabs, only using your keyboard, then this makes your tabs drag the entire window instead of detaching:
.workspace-tab-header {
app-region: drag !important;
}
.workspace-tab-header-inner-close-button {
app-region: no-drag !important;
}
If you want to use your mouse to switch tabs, this might be better:
.workspace-tab-header.is-active {
app-region: drag !important;
}
.workspace-tab-header:not(.is-active) {
-webkit-user-drag: none;
}
.workspace-tab-header-inner-close-button {
app-region: no-drag !important;
}
Inactive tabs cannot be dragged because that’s the best I know how to do while keeping those tabs (and their close buttons) selectable by mouse.
Both of these currently work in the sandbox.
Thanks! Great solution!