Repository navigation
Description
I have a scenario, where i sync folders from my customers to, not just my private folders, on my servers.
Now, i have a really mess on folders, all the folders are together, on one list on the left side, my private, and from all my customers.
The idea is to be able to add groups to (maybe, subgroups on groups to, if possible), on the left folder side, and easy to able to sort the sync folders, like three, or somthing in this direction.
Then, if i have, 50 customers, and sync data of all 50 customers, i be able to sort them up in groups. Maybe, with the easy, familiar, drag-n-drop function (if folders are already created). No more messy (just one list) with folders then.
Should be somthing like this (on the left folder side):
- Swiss Machines
- My PC nr.1
- Documents
- Music
- Photos
- My PC nr.2
- Docus
- Videos
- Customer 1
- Documents
- Photos
- Customer 2
- Documents
- Work files
- My PC nr.1
- Machines on other lands
- Work PC nr1
- Documents
- Pics
- Server 1
- Backup1
- Backup2
- Work PC nr1
... and so on... hope, you understand the idea.
I think, this would help out to sort, and easy to find the folders in a lists.
What you think? Is this doable, and worth to have? I think, many people out there would apreciate to have somthing like this, to able to easy, and excelently sort the sync folder from many machines, server, or whatever.
Thanks in advance to devs, if this enhancement would be added to.
Activity
uok commentedon Jul 19, 2015
Sounds like a helpful enhancement.
My suggestion is to keep it to one level (to keep the GUI elements that can collapse/expand minimal and also because bootstrap framework adds some padding here and there), so in your case you would maybe have 3 groups (e.g. separating Swiss, yours, other countries). For further sorting you could use a simple folder prefix like "MyPC1_documents", etc. The "group label" itself could be done maybe with a text field in each folder edit dialog.
When Syncthing reads the folder config it simply adds a collapsible element if a group label exists and then puts the folders inside. if all group label fields of all folders are empty everything looks like it does now
wweich commentedon Jul 19, 2015
You need to prefix (or suffix) the folder ids anyway because they have to be unique (although e.g #966 could change that).
So naming the folders e.g. Swiss_MyPC1_Documents and OtherLands_WorkPC1_Documents and so on will group them inside the plain list.
Getron commentedon Jul 19, 2015
@uok Yes, GUI should be the same, expand and colapse the groups, subgroups or folders. It should be somthing like the Wordpress do with menu on admin side. If you known how wordpress works, you understand what i mean. Helpful functionality, and you can add the groups and subgroups how ever you want, and how many you need.
@wweich Yes, all the system of syncthing should be the same, just grouping them, to be organized, and to able to find, or sort them properly. Or maybe, should be automaticaly naming the folders, for example, if you put the Documents folder on MyPC1 subgroup, and the MyPC1 is in the group Swiss, the name of synced folder (Folder ID) should done automaticaly, depending on what a group and subgroup the folder is, like:
Swiss_MyPC1_Documents (Folder ID)
I think, this would be help out the confusing the sync folders, if you have many machines and sync many folders, and somewhere, somehow, the folders have the same name, this system would maybe help out that the synced folder ID would be unique automaticaly, depending on the groups and subgroups.
What you think? Is maybe this a good idea?
uok commentedon Jul 19, 2015
I have to admit that I'm not sure how many people will use this feature because according to the stats the average user has ~10 folders
still, here is a quick mockup 😄
(folder **#**1 is a regular, non-grouped folder above a set of grouped folders)
collapsed


and all expanded
if you like to fiddle with the fiddle: https://jsfiddle.net/h31cm4p3/1/
HTML-wise this is ready to copy/paste into Syncthing, only some GO/angular-magic is required while reading the folder config to add the html tags at the correct position
Getron commentedon Jul 19, 2015
@uok Yes, somthing like this would be great to.
Unfortunatly, i can't do it myself. If i can, i would, but, i can't.
I apreciate, if someone would add this, a great thing. And +- 10 folder for average user, with the new technology, you can just thinking, in one family, how many mobiles phone exist? and if any of these would syncing, the +-10 folder are quickly overnumbered, hehe. We have not count the synced Computer folders here, hehe... Just my family have, every person 5-10 folders to share. My brother, 5-10, father pc, mother pc, my sons pc, my wife pc, and so on... Trust me, many people would be apreciate to have this sorting to. If not now, in a year, or two...
Getron commentedon Aug 9, 2015
Has anyone idea how to implement this?
lkwg82 commentedon Mar 10, 2016
Later on when folder can have labels (#2668) ... there could be an ui rule to interpret dots (or other chars) in labels as separators to introduce a visual hierarchy:
swiss
germany
What about that?
AudriusButkevicius commentedon Mar 10, 2016
Good idea
Nejaa commentedon Feb 9, 2017
I'm also 100% needing this feature
lkwg82 commentedon Feb 11, 2017
@Nejaa Take some time and propose a PR or a algorithm.
66 remaining items
feat(gui): remove background for folder groups (resolves syncthing#2070)
feat(config): add group to device (resolves syncthing#2070)
feat(gui): support grouping of devices (resolves syncthing#2070)
feat(gui): improve grouping implementation of devices and folders (re…
feat(config): omit empty group for folder (resolves syncthing#2070)
feat(gui): improve grouping implementation of devices and folders (re…
feat(config): omit empty group for folder (resolves syncthing#2070)
feat(config): set restart to false for folder group (resolves syncthi…
feat(gui): minor tweaks to folders/devices grouping implementation (r…
feat(gui, config): support simple folder grouping (fixes #2070) (#10563)
feat(gui, config): support simple folder grouping (fixes syncthing#2070…
Merge branch 'main' into jb/fullblockidx
Merge remote-tracking branch 'upstream/main' into http_proxy
[codex] Merge upstream stable v2.1.1 into main (#23)