Skip to content

Follow Windows shortcuts (.lnk files) #2046

@Bip901

Description

@Bip901

Windows has 2 types of symbolic links:

  1. Shortcuts (.lnk files), which can be created by any user by using Right Click > Create Shortcut in the Windows File Explorer. They are admittedly not very elegant, as they're binary files.
  2. Symlinks, which take effect in the filesystem level, as you'd expect coming from Linux. Unfortunately, they are a relatively new addition to Windows and can be created by administrators only, via the PowerShell command new-item -itemtype symboliclink -value '\path\to\real-dir' -path 'symlinked-dir'

lf currently (understandably) treats .lnk files as regular binary files, but the expected behavior would be to follow them as if they're symbolic links - as done by Go packages such as https://github.com/nyaosorg/go-windows-shortcut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions