You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionprotocolIssues that require a change to the protocol (BEP, relay, discovery)
Current situation when adding a new folder
+) think of unique name that's short and unique but also descriptive (max. 64 chars)
+) hope that other devices does not have the same name
Idea
+) user can enter a (non unique) label according to own ideas (not char limit)
+) Syncthing creates a random unique folder ID
(similar to device ID, but shorter, maybe a hash derived from user input)
example (same ID but different labels)
user in USA "Munich-Paris"
user in Germany "Datentausch München-Paris"
user in China "数据交换 慕尼黑-巴黎"
lazy user "MP" :-)
As a user shares a folder with another device, the recieving user could be informed about the label as an example (but can change it). If this feature is implemented existing folder IDs could be used as labels
I like that idea with an own label for each folder! But I don't like that it gets less minimalistic with it. Also it could be a pain to memorise the unique folder id; at the end you will always have to copy & paste it. Currently, you can easily memorise it and set up all your devices with it.
If you share a folder with a new device, this device will recieve a notification "a folder XYZ is shared with you" (already in Syncthing 0.10.5 - see #413) - in the future when #967 is implemented you could import ID + label with a single click
Oh thats right! I'm sorry, I didn't think of it. Ok, then it makes much more sense to me to implement a label for each folder! Maybe one could even use the node's label that shares the folder as the standard label.
Yeah, but given you do not have the two devices available to connect to each other you'd have to remember the cryptic string to do the setup.
Also this would need a change in the protocol to work as you described as currently there is no place for this, and would break compatibility between devices, plus a tiny change to the warning.
But I guess it's same like having a names for devices, and having to copy Ids, users would just have to deal with it.
From my perspective that would make the experience worse, as it's easy for me to remember default or whatever, plus all my labels are always the same, as I only share stuff with my own devices, so this would be noop for me (and probably larger set of users).
I'm not a professional programmer but I think the only limitation would be if special characters a users enters cannot be stored - other than that a label could even be a folder path, text with unicode characters "☕ java projects" etc. which would also be shown in the folder panel header. Under the hood Syncthing would use its great technology together with the unique ID for synchronization
@AudriusButkevicius: I understand - my idea was to get away from the folder ID on user level because there can only be one folder named e.g. "file share" per Syncthing installation, or if you use a naming scheme "fileshare name1-name2" and you have two users with the same name
What I mean there is no place for this I mean in the protocol definition, which defines how the structures are serialized into a set of bytes and sent over the wire.
I don't think non-ascii characters are a problem (for go atleast), unless they are a problem for javascript or the raw bytes sent over the wire.
I understand - my idea was to replace folder ID, which is send via the protocol, with a pseudo random ID (maybe last 5 digits of device ID + 5 random digits). Labels are available only locally and stored in config.xml - transferring my label to a new device is nice to have but not required. if the new random ID follows a certain numbering scheme the user only has to tell/copy e.g. last 5 digits to the other user
True - but the idea is that the special folder ID has parts of the remote device ID (e.g. A5SFX) so not extra transfers would be needed. Syncthing could check this agains known devices and output "Folder ID 91293 on device 'Susan's Computer (A5SFX)' has been shared with you". In daily life people usually set up file shares once at the start of a project, so it would be easy to email, IM or SMS the text "folder ID 91293 - project XYZ" to a colleague or team (compared to people emailing info about network shares, which often have cryptic names). Folder labels would also allow to prefix names with numbers or letters to allow simple and individual sorting
Yeah, I think this is something that should be considered. My original use case was for syncing files between a bunch of machines with pretty much the same owner. In that scenario, the current system makes sense. But once you have a bunch of different people it kind of breaks down, when two users want to share their "music" and "documents" folders with you...
Well I'm all for allowing labels but there are problems with automatically generated unique folder IDs. They are great if you have a lot of people sharing similar directory structures (documents, pictures, videos, music...).
But they should very much be optional, or worked around because the current implementation makes it hassle-free for one person to set up a group of devices. This is generally the go-to route for any family or group of friends with one designated "IT guy".
Also copying dozens of folder IDs into a file (in addition to device IDs) if you want to set things up on several devices is a huge pain. Asking the recipient of a share if he wants to accept "XK8SB-KLJASD" from "paul-computer" is similarily horrible UX wise.
I think the easiest way would be to map device IDs to the existing folder IDs and locally store the mapping. In this case duplicate folder IDs aren't a technical problem, but have to be presented in a user friendly way. For example by forcing the use of labels for all newly added folders with a duplicate ID and coloring the folder IDs or their background.
The mapping, coloring scheme and probably labels should also be synced across authorized devices.
This caters well to how people communicate, because they may be unfamiliar with the differences between labels and folder IDs.
Shares with duplicate IDs could then have a little "details" button next to the id which opens a list with the corresponding labels and devices.
For the folder labeled "Music" on the local machin this could look like this:
Folder ID: shared-music
Also known as:
musica @ santiago_cell
musica @ santiago_computer
Musik @ maximilian_computer
musique partagée @ angelina_laptop
On a technical level mixing globally unique, group unique and locally unique IDs is certainly possible but a nightmare to merge into a user friendly interface.
I would like to respectfully request that this be added to the v1 milestone, if possible, for all of the above reasons: Sharing folders with similar names (my and my family members "Pictures" folders) is a common usecase...which is poised to get a lot more common once pulse drives ind.ie's heartbeat. Maybe @aral could take this up as an issue to be "adopted" as part of the current funding drive?
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionprotocolIssues that require a change to the protocol (BEP, relay, discovery)
Activity
gitviola commentedon Nov 13, 2014
I like that idea with an own label for each folder! But I don't like that it gets less minimalistic with it. Also it could be a pain to memorise the unique folder id; at the end you will always have to copy & paste it. Currently, you can easily memorise it and set up all your devices with it.
uok commentedon Nov 13, 2014
If you share a folder with a new device, this device will recieve a notification "a folder XYZ is shared with you" (already in Syncthing 0.10.5 - see #413) - in the future when #967 is implemented you could import ID + label with a single click
gitviola commentedon Nov 13, 2014
Oh thats right! I'm sorry, I didn't think of it. Ok, then it makes much more sense to me to implement a label for each folder! Maybe one could even use the node's label that shares the folder as the standard label.
AudriusButkevicius commentedon Nov 13, 2014
Yeah, but given you do not have the two devices available to connect to each other you'd have to remember the cryptic string to do the setup.
Also this would need a change in the protocol to work as you described as currently there is no place for this, and would break compatibility between devices, plus a tiny change to the warning.
But I guess it's same like having a names for devices, and having to copy Ids, users would just have to deal with it.
From my perspective that would make the experience worse, as it's easy for me to remember
defaultor whatever, plus all my labels are always the same, as I only share stuff with my own devices, so this would be noop for me (and probably larger set of users).uok commentedon Nov 13, 2014
I'm not a professional programmer but I think the only limitation would be if special characters a users enters cannot be stored - other than that a label could even be a folder path, text with unicode characters "☕ java projects" etc. which would also be shown in the folder panel header. Under the hood Syncthing would use its great technology together with the unique ID for synchronization
@AudriusButkevicius: I understand - my idea was to get away from the folder ID on user level because there can only be one folder named e.g. "file share" per Syncthing installation, or if you use a naming scheme "fileshare name1-name2" and you have two users with the same name
AudriusButkevicius commentedon Nov 13, 2014
What I mean
there is no place for thisI mean in the protocol definition, which defines how the structures are serialized into a set of bytes and sent over the wire.I don't think non-ascii characters are a problem (for go atleast), unless they are a problem for javascript or the raw bytes sent over the wire.
uok commentedon Nov 13, 2014
I understand - my idea was to replace folder ID, which is send via the protocol, with a pseudo random ID (maybe last 5 digits of device ID + 5 random digits). Labels are available only locally and stored in config.xml - transferring my label to a new device is nice to have but not required. if the new random ID follows a certain numbering scheme the user only has to tell/copy e.g. last 5 digits to the other user
AudriusButkevicius commentedon Nov 13, 2014
Yes, but then
WARNING: Unexpected repository ID "A5SFX91293" sent from nodemean's nothing to the user, hence transferring labels would be required.uok commentedon Nov 13, 2014
True - but the idea is that the special folder ID has parts of the remote device ID (e.g. A5SFX) so not extra transfers would be needed. Syncthing could check this agains known devices and output "Folder ID 91293 on device 'Susan's Computer (A5SFX)' has been shared with you". In daily life people usually set up file shares once at the start of a project, so it would be easy to email, IM or SMS the text "folder ID 91293 - project XYZ" to a colleague or team (compared to people emailing info about network shares, which often have cryptic names). Folder labels would also allow to prefix names with numbers or letters to allow simple and individual sorting
calmh commentedon Nov 13, 2014
Yeah, I think this is something that should be considered. My original use case was for syncing files between a bunch of machines with pretty much the same owner. In that scenario, the current system makes sense. But once you have a bunch of different people it kind of breaks down, when two users want to share their "music" and "documents" folders with you...
generalmanager commentedon Nov 17, 2014
Well I'm all for allowing labels but there are problems with automatically generated unique folder IDs. They are great if you have a lot of people sharing similar directory structures (documents, pictures, videos, music...).
But they should very much be optional, or worked around because the current implementation makes it hassle-free for one person to set up a group of devices. This is generally the go-to route for any family or group of friends with one designated "IT guy".
Also copying dozens of folder IDs into a file (in addition to device IDs) if you want to set things up on several devices is a huge pain. Asking the recipient of a share if he wants to accept "XK8SB-KLJASD" from "paul-computer" is similarily horrible UX wise.
I think the easiest way would be to map device IDs to the existing folder IDs and locally store the mapping. In this case duplicate folder IDs aren't a technical problem, but have to be presented in a user friendly way. For example by forcing the use of labels for all newly added folders with a duplicate ID and coloring the folder IDs or their background.
The mapping, coloring scheme and probably labels should also be synced across authorized devices.
This caters well to how people communicate, because they may be unfamiliar with the differences between labels and folder IDs.
Shares with duplicate IDs could then have a little "details" button next to the id which opens a list with the corresponding labels and devices.
For the folder labeled "Music" on the local machin this could look like this:
Folder ID: shared-music
Also known as:
musica @ santiago_cell
musica @ santiago_computer
Musik @ maximilian_computer
musique partagée @ angelina_laptop
On a technical level mixing globally unique, group unique and locally unique IDs is certainly possible but a nightmare to merge into a user friendly interface.
menelic commentedon Nov 17, 2014
I would like to respectfully request that this be added to the v1 milestone, if possible, for all of the above reasons: Sharing folders with similar names (my and my family members "Pictures" folders) is a common usecase...which is poised to get a lot more common once pulse drives ind.ie's heartbeat. Maybe @aral could take this up as an issue to be "adopted" as part of the current funding drive?
Nutomic commentedon Nov 17, 2014
#330 should probably be implemented before this.
23 remaining items
xor-gate commentedon May 25, 2015
The folder label is a very nice addition, @calmh very nice to add this to v0.12 or v1.0-maybe milestone.
lovetox commentedon Jul 10, 2015
if this comes and works, it will be a huge step for syncthings UX :)
giosh94mhz commentedon Nov 30, 2015
👍 for this!
lkwg82 commentedon Dec 25, 2015
+1