Skip to content

Folder label instead of unique folder ID #966

Closed

Description

@uok

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

Activity

  1. gitviola commented on Nov 13, 2014

    @gitviola

    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.

  2. uok commented on Nov 13, 2014

    @uok
    ContributorAuthor

    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

  3. gitviola commented on Nov 13, 2014

    @gitviola

    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.

  4. AudriusButkevicius commented on Nov 13, 2014

    @AudriusButkevicius
    Member

    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).

  5. uok commented on Nov 13, 2014

    @uok
    ContributorAuthor

    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

  6. AudriusButkevicius commented on Nov 13, 2014

    @AudriusButkevicius
    Member

    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.

  7. uok commented on Nov 13, 2014

    @uok
    ContributorAuthor

    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

  8. AudriusButkevicius commented on Nov 13, 2014

    @AudriusButkevicius
    Member

    Yes, but then WARNING: Unexpected repository ID "A5SFX91293" sent from node mean's nothing to the user, hence transferring labels would be required.

  9. uok commented on Nov 13, 2014

    @uok
    ContributorAuthor

    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

  10. calmh commented on Nov 13, 2014

    @calmh
    Member

    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...

  11. added
    enhancement
    on Nov 13, 2014
  12. generalmanager commented on Nov 17, 2014

    @generalmanager

    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.

  13. menelic commented on Nov 17, 2014

    @menelic

    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?

  14. Nutomic commented on Nov 17, 2014

    @Nutomic
    Contributor

    #330 should probably be implemented before this.

  15. added this to the milestone on Nov 17, 2014
  16. 23 remaining items

  17. xor-gate commented on May 25, 2015

    @xor-gate
    Member

    The folder label is a very nice addition, @calmh very nice to add this to v0.12 or v1.0-maybe milestone.

  18. lovetox commented on Jul 10, 2015

    @lovetox

    if this comes and works, it will be a huge step for syncthings UX :)

  19. modified the milestones: , on Aug 18, 2015
  20. modified the milestones: v0.13 "Copper Cockroach", on Nov 17, 2015
  21. giosh94mhz commented on Nov 30, 2015

    @giosh94mhz

    👍 for this!

  22. lkwg82 commented on Dec 25, 2015

    @lkwg82
    Contributor

    +1

  23. added
    frozen-due-to-age
    on Jun 16, 2017
  24. locked and limited conversation to collaborators on Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-ageprotocol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions