Skip to content

Show “true” symbolic link #273

@FilouPlains

Description

@FilouPlains

Beforehand, thanks for developing this tool!

Is your feature request related to a problem? Please describe.

When using the command g, for some reason, the symbolic link path is not the “true” one. Example given below:

bash-5.3$ g -l
-rw-r--r--   1.2 MiB x x Feb 16 01:28 X.pdf
lrwxrwxrwx      20 B x x Mar 05 12:26 Y.pdf => /home/rouaud/Documents/Y_bis.pdf
lrwxrwxrwx      50 B x x Mar 05 14:07 Z.pdf => /home/rouaud/Documents/Z_bis.pdf

bash-5.3$ ls -l
-rw-r--r-- 1 x x 1258050 févr. 16 01:28 X.pdf
lrwxrwxrwx 1 x x      20 mars   5 12:26 Y.pdf -> Y_bis.pdf
lrwxrwxrwx 1 x x      50 mars   5 14:07 Z.pdf -> /home/rouaud/Documents/Z_bis.pdf

I used the command ln -sr to create relative links. But for some reason, g display me the full path each time. Instead of showing me the “real path”, as the one displayed by readlink. Thus, it is hard to check whether the relative symbolic links I created are good or not…

I tried to check --help. And test other option like g --dereference or g --no-dereference, but I found nothing… It could that I read too quickly or badly the --help.

Describe the solution you'd like

Display the path, as would do readlink.

Other context

Data Description
Kernel Linux 6.8.0-101-generic
Distro Kubuntu 24.04.4 LTS (Noble Numbat) x86_64
Desktop KDE Plasma 5.27.12
Terminal kitty 0.44.0
Shell fish 3.7.0
Package origin nix

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions