-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Explorer: indicate symlinks #11539
Comments
It might be better if a symlink is highlighted in a different way than an icon, perhaps with color, or a second icon? Cause icons indicate the file type, but a symlink only indicates the file isn't actually there. It would be a very useful feature, especially for larger projects. |
Is there already a way to add an icon for symlinks? |
For reference, that other trendy text editor does it with icons like this. In this example |
any further progress on this feature request? |
I have situation that I am linking some folders from sub-project. Before I was linking I was using bat file to copy files and I thought that simply linking is awesome idea. Problem was that after a while I don't know if folder was linked and that makes me really sad 👎 |
Any news about a fix? It's a very old and expected feature! |
Adding a symlink icon to concerned files and folder seems the best approach. Or maybe an highlight colour. Your input on this @isidorn ? |
I like @snoopdouglas's example, but rather than replace the icon completely, maybe it could preserve the icon for that file type but overlay the icon from the example as a badge overlay in the corner? |
I agree, an overlay would be even better. A tooltip Indicating the link
target would be a good idea too
…On 4 Feb 2018 07:50, "Ryan Sullivan" ***@***.***> wrote:
I like @snoopdouglas <https://github.com/snoopdouglas>'s example, but
rather than replace the icon completely, maybe it could preserve the icon
for that file type but overlay the icon from the example as a badge overlay
in the corner?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11539 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEqnnucJVnNnW_UoTg5O33I66qjG2Sjnks5tRWFLgaJpZM4J0_1B>
.
|
Agree a symlink icon as badge overlay would be the best solution. |
We would need to add two properties to icon themes Root folders are already doing this, here's an example It would need to be added to this interface and the FileKind would need to be expanded to contain The only missing piece is how to check if stat is symbolic link. For that the @bpasero if the outline of the work makes sense to you could you expose this in the Also we would need @chryw to provide some nice icons for symbolic links. So same as for the root folders previously we would need 6 icons (seti theme does not indicate folders):
So with this I propose to use the same icon for symbolic link files and folders, the only difference would be the chevron used to expand. For reference here are the other folder icons which we use for our default icon theme. |
@isidorn keep in mind that symbolic links can both be files or folders, so I am not sure what to do about files that are symbolic links. Would you drop the normal file icon and show a generic symbolic link icon instead? It almost seems like a theme author would maybe want to have an overlay over each file icon to indicate that it is a symbolic link. As for the file service: we can add it, however The downside is that we need both Another idea that would probably work without having to call both methods:
Maybe we could just add this to If you want to sketch this out in a PR, I can do a review. |
I agree we need an overlay. Users can have different icons per folderName as well as per filename, extension, language. |
@isidorn @aeschli maybe an alternative solution would be to use an explorer decoration instead of tampering with the icon. One thing to keep in mind is that the icon would only indicate symlinks in the files explorer but nowhere else, so I think going with the icon might actually not be such a good idea. |
@bpasero to start I can just color it in a differnt color, and maybe contribute some hover text. As for the icon not being a good idea, I am not sure the users would want to know if something is a symlink when it is opened in the quick open. For me it does not really belong there. |
👍 for different color!!! easy and enough!! |
@bpasero @isidorn should I make a tiny symlink overlay icon in svg without color (#000000), and let the code handle color changing? |
Does this indicate hard-links on Windows? Even though hard-links are supposed to be entirely transparent, you can easily confuse yourself if you edit a file in one folder and unexpected changes are occurring in another folder. Whilst the presence / use of hard-links are rare on Windows, they do exist and recent versions of Git allow the use of hard-linking where before soft-links were used. |
From what I can see, symlinks do not show up in File Explorer at all - am I missing something? Let alone having a nice icon next to them or colorization, they just are not present EDIT: hard links are visible, but symlinks are not |
@netpoetica The feature was shipped with the latest release of VS Code. Symlinks are indicated with the small arrow on the right side in the explorer: The arrow is activated by default. Maybe you should refresh the explorer or restart your VS Code instance. Make sure that you've installed the latest version of VS Code (1.21.1). |
I think for folders yes, but if it is a symlinked file, I do not see it in VSCode. In my case, I have one file inside of a folder:
and then I create a soft link
myotherfile.js is not present in VSCode, even after refresh, close or open |
I think this should be done via icons.
The text was updated successfully, but these errors were encountered: