Opened 8 years ago
Closed 8 years ago
#13048 closed enhancement (fixed)
Allow browser and repos aliases for source
Reported by: | Ryan J Ollos | Owned by: | Peter Suter |
---|---|---|---|
Priority: | normal | Component: | WikiAutoCompletePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
Would it be possible to add the browser
and repos
aliases for source
?: TracLinks#VersionControlrelatedlinks.
There may also be other aliases that could be added in process_request.
Attachments (1)
Change History (8)
comment:1 follow-up: 2 Changed 8 years ago by
comment:2 Changed 8 years ago by
(But wasn't there also
issue:
?)
Ah that's new in Trac 1.2: t:ticket:12192
Changed 8 years ago by
Attachment: | t13048.diff added |
---|
comment:3 Changed 8 years ago by
My JavaScript skills are pretty mediocre, but here's a first attempt at a patch: t13048.diff.
comment:5 Changed 8 years ago by
Thanks for the patch. However I don't think the version test for issue:
is worth it. Sorry for the wasted effort. (Also it would fail for Trac 2.0 ;))
So I propose just going with this:
-
wikiautocomplete.js
164 164 }, 165 165 166 166 { // Tickets 167 match: /((?:^|[^{])#|\bticket: )(\d*)$/,167 match: /((?:^|[^{])#|\bticket:|\bbug:|\bissue:)(\d*)$/, 168 168 search: search('ticket'), 169 169 index: 2, 170 170 template: function (ticket, term) { … … 208 208 }, 209 209 210 210 { // Source 211 match: /\b(source:| log:)([^@\s]*(?:@\S*)?)$/,211 match: /\b(source:|browser:|repos:|log:)([^@\s]*(?:@\S*)?)$/, 212 212 search: search('source'), 213 213 index: 2, 214 214 template: template,
comment:6 Changed 8 years ago by
In case you are waiting for me before committing, I have no preference. I just want to have the aliases available and hope to have trac-hacks.org on Trac release 1.2 soon.
comment:7 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks, committed in r16221.
Replying to rjollos:
Sure, I only added what I typically use myself. But patch welcome. :)
The only other alias documented o TracLinks seems to be
bug:
. (But wasn't there alsoissue:
?)Wouldn't adding them to the Javascript match regexes be enough?