Hamish Lawson wrote:
> Noah Kantrowitz wrote:
>> You can create new wiki syntax through plugins if you want. Look at
>> the IWikiSyntaxProvider extension point.
> 
> I'm not looking to create a new syntax. Trac recognises various
> user-entered syntaxes for changesets - [1], r1, etc. But whenever Trac
> itself inserts a link to a changeset (such as on the Timeline or the
> Revision Log), it always does so using the [1] format. Rather than this
> being hard-coded as it appears to be, I would like it to be
> configurable, so that I could choose to have such links displayed in
> the r1 format instead.
> 


No, it's currently not possible. Those [...] are hard coded in the 
templates or in the code. But in my "Trac object" experiments, there's 
actually a method for generating this (called shorthand()). So one day 
this /could/ become configurable.

See:
http://trac.edgewall.org/browser/sandbox/trac-xref/trac/object.py?version=2815#L107

and:
http://trac.edgewall.org/browser/sandbox/trac-xref/trac/versioncontrol/model.py?version=2815#L48

-- Christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to