Edgewall Software
Modify

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 Ryan J Ollos)

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)

comment:1 by lkraav <leho@…>, 10 years ago

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.

comment:2 by Ryan J Ollos, 10 years ago

Description: modified (diff)

comment:3 by Ryan J Ollos, 10 years ago

Keywords: traclinks added; TracLinks removed

Normalizing keywords.

comment:4 by Ryan J Ollos, 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 Christian Boos, 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:6 by Peter Suter, 10 years ago

Would InterTrac@45-46 or InterTrac@46:45 work?

in reply to:  6 comment:7 by Ryan J Ollos, 10 years ago

Replying to psuter:

Would InterTrac@45-46 or InterTrac@46:45 work?

Interesting idea. Probably worth a try at the implementation at least.

in reply to:  1 comment:8 by Peter Suter, 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.

See comment:60:ticket:9643.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.