feat(folders): Add zen.folders.new-tabs-in-folder to open new tabs in current folder#13700
feat(folders): Add zen.folders.new-tabs-in-folder to open new tabs in current folder#13700mehdi-sy-h wants to merge 3 commits into
Conversation
|
We don't typically add patches like these, specially if they are just going to be hidden advanced preferences and without any tests. What would be the use case of this? |
|
Sorry yes I can add some tests I was just wondering if this is a feature that might get merged. There's already the As for use case, generally when you're browsing/researching about a specific topic you might want to keep all those tabs under one folder, especially if you're someone who has a lot of tabs already and want things structured. Middle click is useful but not complete because you might read something for example and then search for that specific thing with Ctrl+T and have that tab be under the same folder. Without this feature there's a lot of friction in moving the relevant new tab(s) into the folder again and again and your tabs end up being cluttered again. Imo this is a slightly separate use case than Spaces, because you might want the same containers, theme settings, etc but you still want grouping by subtopic within that space. Say you have a space for "Work" with its own container, and you're working on a bunch of different projects at work, so you group them by folder. Switching to different projects at a given time is rare, but searching for things related to the same topic is more common (you're reading docs, you see a concept you're not aware of, you open a new tab searching for it, etc). |
| const group = tab.group; | ||
| if ( | ||
| Services.prefs.getBoolPref("zen.folders.new-tabs-in-folder") | ||
| && !group?.isZenFolder |
There was a problem hiding this comment.
Unsure how this would work with split views.
There was a problem hiding this comment.
For split views should I see if all of the tabs are part of the same folder and then add them, otherwise not?
There was a problem hiding this comment.
Actually it looks like trying to do a split view with a tab in a folder and a tab outside of a folder is buggy in upstream already. And for a split view of tabs across two different folders, it moves one tab into the other's folder?
|
What kind of tests would be useful? I imagine one similar to the existing owner tabs test |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a new
zen.folders.new-tabs-in-folderpreference. When enabled, new tabs via Ctrl + T will open under the currently open tab's parent folder. This saves having to continually move new tabs into the desired folder.Relevant discussion: #13669