gitea icon indicating copy to clipboard operation
gitea copied to clipboard

[Better symlink support] Follow relative symbolic links in GUI if they are available

Open fnetX opened this issue 4 years ago • 8 comments

  • Gitea version (or commit ref): 1.12
  • Database (use [x]):
    • [ ] PostgreSQL
    • [x] MySQL
    • [ ] MSSQL
    • [ ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • [x] Yes
    • [ ] No
    • [ ] Not relevant

Encountered at Codeberg at https://codeberg.org/fnetX/codeberg-org/src/branch/main/en

Description

Adding symbolic links to git is supported. Sometimes they refer to files in the same repository. Sadly, Gitea does not offer an option to follow them in the GUI. It'd be awesome if there was an option (e. g. a button) in the GUI to either follow a symlink (if available // in same repository) after it is opened or if Gitea would directly open the symlinked file from the folder view if available.

Thank you for working on Gitea considering this idea.

Screenshots

Current display of a relative symlink: Screenshot: Current display of a relative symlink Current display of symlinks in the folder view: Screenshot: Current display of symlinks in the folder view

fnetX avatar Jul 11 '20 23:07 fnetX

#8151 seems to be related (it requests resolving full paths as well), it was marked as stale and I must have overlooked in when searching for duplicates.

fnetX avatar Jul 17 '20 19:07 fnetX

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

stale[bot] avatar Sep 20 '20 07:09 stale[bot]

still valid afaik

fnetX avatar Sep 20 '20 10:09 fnetX

still looks the same

with

Gitea Version
    1.14.0-de built with GNU Make 4.1, go1.15.2 : bindata, sqlite, sqlite_unlock_notify

--

all though hard links appear to work !

dubiouscript avatar Nov 08 '20 13:11 dubiouscript

What does github do?

zeripath avatar Nov 08 '20 16:11 zeripath

@zeripath

What does github do?

Have a look at LICENSE or README.md: https://github.com/crt0mega/asus-wmi-sensors-dkms

crt0mega avatar Apr 16 '21 14:04 crt0mega

What about just adding a button "Follow (symlink)", which might lead to a 404, but is at least a button and saves you from manually interpreting the link?

fnetX avatar Nov 29 '21 01:11 fnetX

+1 Would love for symlink directories with relative paths to be resolved instead of just showing the path

AstroGD avatar Sep 12 '23 22:09 AstroGD