Ticket #278 (reopened defect)
Selection does not work when using camel case links
| Reported by: | schodet | Owned by: | moschny |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | trac.tracnav | Version: | tracnav-3.92 |
| Severity: | normal | Keywords: | |
| Cc: | ilias@… |
Description
Wiki links using the camel case notation are rendered correctly in the TOC, but no selection occurs. When using the angle bracket notation, it works as expected.
Attachments
Change History
comment:1 Changed 6 years ago by moschny
- Status changed from new to closed
- Resolution set to wontfix
comment:2 Changed 6 years ago by ilias@…
- Cc ilias@… added
- Status changed from closed to reopened
- Resolution wontfix deleted
Changed 6 years ago by ilias@…
- Attachment AllowWikiNames.diff added
Patch which enables menu-selections on wiki names
comment:3 follow-up: ↓ 4 Changed 6 years ago by ilias@…
The attached "AllowWikiNames.diff" (patch against development versions of TracNav / Trac 0.11dev) enables selections on camel-case words (even unicode ones).
It reuses (copies) a tiny function from trac, because I was not able to import the nested function from the trac code base.
If the import would be enabled, the patch would be just 5 lines.
comment:4 in reply to: ↑ 3 ; follow-up: ↓ 5 Changed 6 years ago by moschny
Replying to ilias@lazaridis.com:
The attached "AllowWikiNames.diff" (patch against development versions of TracNav / Trac 0.11dev) enables selections on camel-case words (even unicode ones).
Didn't test the patch yet, but it doesn't look correct to me. It works only for toc lines that only consist of a CamelCase link, and nothing else (besides whitespace).
TracNav however supports longer (wiki) text for each toc line. In case there are multiple links in the line, it uses the last one.
comment:5 in reply to: ↑ 4 Changed 6 years ago by ilias@…
Replying to moschny:
Replying to ilias@lazaridis.com:
The attached "AllowWikiNames.diff" (patch against development versions of TracNav / Trac 0.11dev) enables selections on camel-case words (even unicode ones).
Didn't test the patch yet, but it doesn't look correct to me. It works only for toc lines that only consist of a CamelCase link, and nothing else (besides whitespace).
yes, that's right.
TracNav however supports longer (wiki) text for each toc line. In case there are multiple links in the line, it uses the last one.
is there any description/showcase of this feature? I cannot understand the use-case.
I can take a look at this the next days and can limit the pach to work just with simple entries (which would cover some or many use-cases), without influence of the "long-line" feauture.

This is hard to implement for Trac 0.10 (and most likely the same holds for 0.11).
For Trac 0.12, the wiki parser will be redesigned, and we might again have a look at that issue.
Meanwhile, I updated the TracNav/Usage documentation.