[Feature] Completion or postprocess url add to file name #5877

Open
opened 2025-11-02 06:39:08 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @dolanor on GitHub (Aug 21, 2020).

When writing issue, we might want to talk about file_x.go or file_y.cpp.
At that time of writing this specific message, a completion proposal could happen to make it a permalink.

For example,
user W wants to write an issue concerning file_x.go. While typing, a completion pop up detects file_x.go belonging to the git repo and suggest to create a link to this file based on the latest commit of the default branch, or in the completion, you can select another branch. Of course, it would use the commit-based access to the file.

Coming back to the issue later on, you can get back to the context having those permalink kept. Otherwise, you'll look for the date to get the correct revision and go fish in the commit history and open the file at the right commit to understand the context.

Originally created by @dolanor on GitHub (Aug 21, 2020). When writing issue, we might want to talk about `file_x.go` or `file_y.cpp`. At that time of writing this specific message, a completion proposal could happen to make it a permalink. For example, `user W` wants to write an issue concerning `file_x.go`. While typing, a completion pop up detects `file_x.go` belonging to the git repo and suggest to create a link to this file based on the latest commit of the default branch, or in the completion, you can select another branch. Of course, it would use the commit-based access to the file. Coming back to the issue later on, you can get back to the context having those permalink kept. Otherwise, you'll look for the date to get the correct revision and go fish in the commit history and open the file at the right commit to understand the context.
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 06:39:08 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5877