Indicator for open tabs in non-active workspaces and close window with last tab close feature #4917
Replies: 4 comments 1 reply
-
I also would like to know. I'm actually stropping using Workspaces. Too many time I closed a window, forgetting I had open tabs in another workspace of this window. Too many time i loosed open tabs without knowing. There is probably a feature missing there. it could be an indicator ? or an alert telling me closing a window will also dleete tabs that are not in my view ? or perhaps closing a window of an active workspace should switch to the same window of an alternative worspace with tabs open ? don't know. |
Beta Was this translation helpful? Give feedback.
-
here to upvote this and send my support. I'd be happy with work spaces with active tabs inside being underlined so I know not to outright close that window. I also like Frederic-C's suggestion of an alert if there are tabs in other work spaces or switching to that workspace on close if there are open tabs. |
Beta Was this translation helpful? Give feedback.
-
Hey, so I've been playing with this idea this evening with the intention to fix this for myself. I've added the following to my Userchrome.css:
I haven't played with how this will work if you have horizontal tabs or a different layout to mine. I know i have a bit of a different thing with my enormous workspace icons so that may affect outcomes. |
Beta Was this translation helpful? Give feedback.
-
OK, so I've been working through this and using some hacky CSS I've managed to get the workspace indicators to highlight if they have an open tab: ![]() same image with my workspace icons list enhancements: ![]() This is achieved using the below CSS code added to the UserChrome stylesheet as described in the documentation. You will need to add one of these code segments for each workspace and replace "<>" with the workspace id found in the html. You can find this by using the inspector and searching in your html for "zen-workspace-id".
I'm pretty happy with this and I hope that it helps some of you also. EDIT: Altered ":not" pseudo element to only exclude pinned tabs which have a pending=true attribute to capture unloaded tabs. Without this, workspaces would lose their indicator if tabs were unloaded. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there anyway to be able to tell if I have tabs open in a workspace that is not the currently active one? For example, I typically use workspace 1, but sometimes I open something in workspace 2 to come back to later. Is there anyway to implement an indicator on the bottom that shows whether a workspace has any tabs open?
Also along those same lines, I have the setting activated for closing the window when closing the last tab, but I realized the setting technically closes window if you close the last tab in THAT workspace.
So if I have an open tab in workspace 2, then close all tabs in 1, the entire window closes. But I guess what would seem to be better (for me at least) is if after I close the tabs in 1, it switches to the open tab in 2, and say I close that tab in 2, THEN it closes the window.
Wasn't sure if this was something that maybe I just am not using right, but wanted to ask. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions