Opened 10 years ago
Last modified 10 years ago
#11731 new enhancement
TracLinks notations for showing a wiki diff
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | unscheduled |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | traclinks |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I often find myself adding links such as wiki:TracInstall@374?action=diff in order to reference a wiki change from a ticket comment. TracInstall@374 could be used, which renders the page with a #info
containing a link to the diff, but that's less obvious when I really want to just shown the diff and also requires two clicks to get to the information I want to emphasize.
wiki:TracInstall@374?action=diff is not too awful, and it could be wrapped in brackets, but that results in TracInstall@374, and it's not obvious to the reader that the link directs to a diff.
So, I'm unsure what, if any, the ideal addition to the TracLinks syntax would be, but I'm thinking of something like diff:TracLinks@374
, with the complementary explicit version wiki:diff:TracLinks@374
. The diff
part is an action, so I'm not sure whether placing it after the realm would fit with the general patterns adopted by TracLinks.
Maybe TracInstall@374 is good enough, or maybe we just need to make that link to a diff (or the entire #info
) a little more prominent.
Attachments (0)
Change History (8)
follow-up: 8 comment:1 by , 10 years ago
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
comment:4 by , 10 years ago
Alternatively, if the #info
message was more prominent the diff TracLink might not be as necessary and the form InterTrac@46 could be used with confidence that the user would immediately notice the #info
message containing the diff link
comment:5 by , 10 years ago
What about wiki:InterTrac∆46
? Good for the hardcore Trac and Unicode junkie ;-)
More seriously, I also favor Ryan's suggestion, which would even be perfect if we ever get to implement highlighting of wiki differences within the view itself (#1245).
comment:7 by , 10 years ago
Replying to psuter:
Would
InterTrac@45-46
orInterTrac@46:45
work?
Interesting idea. Probably worth a try at the implementation at least.
comment:8 by , 10 years ago
Replying to lkraav <leho@…>:
TracLinks generation system overall could really use some kind of an automatic generation helper, "as you write" tooltip/autocomplete system.
TracLinks generation system overall could really use some kind of an automatic generation helper, "as you write" tooltip/autocomplete system. For anybody else, but the hardcore Trac junkie, remembering the different orders and syntax options is overwhelming.