Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(gui,config): support simple folder grouping (fixes #2070)#10563

Open
maen-bn wants to merge 3 commits intosyncthing:mainfrom
maen-bn:folder-grouping
Open

feat(gui,config): support simple folder grouping (fixes #2070)#10563
maen-bn wants to merge 3 commits intosyncthing:mainfrom
maen-bn:folder-grouping

Conversation

@maen-bn
Copy link

@maen-bn maen-bn commented Feb 6, 2026

Purpose

Adds a very simple way to group up folders to help with organizing from the GUI. My intention is to not make this too complicated and just as a starter but potential follow on PRs to improve this but out of scope here are:

  • Sub group
  • Colour coding
  • Drag folders into groups on top of the putting them into groups via edit modal

Resolves #2070

Testing

  • Expand a folder and click Edit to bring up edit modal.
  • Enter a folder group name of your choice and save
  • Folder should be under Group heading
  • Edit a different folder to be part of the group you added the previous folder to (a count should appear near the Group heading)
  • Any non grouped folder should sit at the top

Screenshots

syncthing-folder-grouping

Documentation

I haven't done this yet as I want to wait for the feedback on the changes. I'm happy to do those doc changes too but the changes to the doc should be

  • Add "group" attribute to users/config.html#folder-element

Authorship

Ben Norcombe [email protected]

@github-actions github-actions bot added the enhancement New features or improvements of some kind, as opposed to a problem (bug) label Feb 6, 2026
@maen-bn maen-bn changed the title feat(gui,config,protocol): Support simple folder grouping feat(gui,config,protocol): support simple folder grouping Feb 6, 2026
@acolomb
Copy link
Member

acolomb commented Feb 6, 2026

Why should this affect the protocol? IMHO folder grouping is a local thing to organize the device's individual folder list. Groups may not mean the same to other users.

@AudriusButkevicius
Copy link
Member

AudriusButkevicius commented Feb 6, 2026

This can be even more simple, and can be fully a UI feature with no changes at all.
i.e., if the label has a slash, it ends up being interpreted as a group

g1/f1
g1/f2
g2/f1

ends up as:

g1
f1
f2

g2
f1

etc

@acolomb
Copy link
Member

acolomb commented Feb 7, 2026

That idea has been discussed before on the forum and in some issues, e.g. #2070. The major downside is that it fails for some common labels where a slash is used differently. For example: School term 2025 / 2026.

A separate config field for the grouping was the favored approach IIRC. Heuristics such as separation levels by a slash can be applied there. But mixing semantics with the label field will cause trouble for existing setups.

@maen-bn
Copy link
Author

maen-bn commented Feb 7, 2026

Why should this affect the protocol? IMHO folder grouping is a local thing to organize the device's individual folder list. Groups may not mean the same to other users.

No probs. I can drop that. I was just following something you said here about adjusting the protocol but I might have misinterpreted it #2070 (comment)

@bt90
Copy link
Contributor

bt90 commented Feb 7, 2026

That idea has been discussed before on the forum and in some issues, e.g. #2070. The major downside is that it fails for some common labels where a slash is used differently. For example: School term 2025 / 2026.

This can be fixed by allowing users to mask /

e.g School term 2025 // 2026

@maen-bn maen-bn changed the title feat(gui,config,protocol): support simple folder grouping feat(gui,config): support simple folder grouping Feb 7, 2026
@acolomb
Copy link
Member

acolomb commented Feb 7, 2026

This can be fixed by allowing users to mask /

Really? That still leaves users needing to bend over backwards to adjust their labels, when they simply do not need a grouping feature. Label is a label, completely free form, already used that way. Semantics can be attached to an additional field, with a special purpose.

No probs. I can drop that. I was just following something you said here about adjusting the protocol but I might have misinterpreted it

That was about protobuf, which we had used to define the configuration structure at the time. I believe we went back to simple go structs since.

@tomasz1986
Copy link
Member

tomasz1986 commented Feb 7, 2026

I would also like to suggest keeping labels their own thing. For example, all my labels are basically relative folder paths (separated with / forward slashes), so if the slash character suddenly got a special function, everything would likely become a large mess 😅.

@maen-bn Could you post a screenshot with more folders in each group than just one? I would also be curious how the UI looked if you dropped the group background colour (as I think the current version doesn't look the best, especially with the empty space below the last folder). Alternatively, maybe drop the background for ungrouped folders only? If possible, it would also be nice to see how everything looks in the light and black themes 🙂.

@maen-bn
Copy link
Author

maen-bn commented Feb 7, 2026

@acolomb Ah okay that makes sense, appreciate the context given I'm a newbie to contributing here.

@tomasz1986 there is a part in the gif where two folders are in the same group
Screenshot_2026-02-07-13-08-37-14_3aea4af51f236e4932235fdada7d1643

But I can get a screenshot where there's more than two as well if that helps. Yeah I can remove the background for them and show some screenshots for the light theme too

@maen-bn
Copy link
Author

maen-bn commented Feb 7, 2026

Here you go @tomasz1986, I've removed the background for the groups and examples of more folders grouped with all the themes available in the GUI

Light

Screenshot From 2026-02-07 18-11-41

Dark

Screenshot From 2026-02-07 18-12-03

Black

Screenshot From 2026-02-07 18-12-23

@tomasz1986
Copy link
Member

Thanks for the screenshots! Not sure what others think, but for me, the current iteration (without the background) looks better 🙂.

@tomasz1986 tomasz1986 changed the title feat(gui,config): support simple folder grouping feat(gui,config): support simple folder grouping (fixes #2070) Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New features or improvements of some kind, as opposed to a problem (bug)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Folder grouping proposal

5 participants