-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support symlink creation #391
Comments
Some more questions:
|
Here's a comparison of all the sorts of links:
The important part is intent. Absolute is for referring to files outside of a project that will not move, whereas relative is for within self-contained directory trees (such as projects, git checkouts, etc.), which could possibly be reparented (renaming or moving the toplevel container directory). They're both valid uses of symlinks, and depending on what an administrator is using, they may want one or the other. I guess we should probably show them untruncated and relative (so someone could see the actual files and path fragments that matter) and perhaps have an option to make it an absolute link in the background. I'm not sure if hardlinks really make sense. I think they probably do not. Reflinks, we get for free with a standard copy when on supported filesystems. |
Taken all of the above into consideration, it looks like I need to design a new link modal. We could put that on pause on the dialog for now and make linking make a "Link to" prefixed link like in GNOME. However, I guess that would imply that it's an absolute link or some relative one that "smartly" updates when moved (which means we'd need to look at what the link links to and update it in the new location). The absolute link would be much easier to implement, even if it's less useful in most cases. From https://stackoverflow.com/questions/8523159/how-do-i-move-a-relative-symbolic-link#8523293:
and:
...But this requires a command from the Someone in the thread mentioned this
I don't see a way to do the opposite (relative to absolute), however, aside from the code block above. So, moving/renaming a relative link could be:
However, it's more complex than just moving an absolute link. (I wonder if Nautilus handles this? Edit: Nope, it does not properly handle moving symlinks separate from moving origin files, apparently.) |
In my opinion we should make a "create link" context menu item which makes a link for a directory or file "Link to X" which would be an absolute symlink. If the link already exists, either we don't show the context menu or overwrite or append |
I don't think we should have a UI option to create symlinks. |
We concluded to drop symlink creation for now and we will re-visit this functionality later #419 |
I think I retract this opinion. Some of our users expect this feature. |
Our current implementation is an arbitrary symlink creation dialog
The target path can be edited to something else and is shown as an absolute path while the link name can't be an absolute path by only relative. (As the dialog prefills /home/admin).
This is confusing, because it made me think I should provide an absolute path in both inputs.
Symlink creation arbitrary creates a symlink under directory if directory is passed
Moving symlinks
Moving relative existing symlinks can break, do we show a warning?
The text was updated successfully, but these errors were encountered: