Community
Participate
Working Groups
Build Identifier: 20090920-1017 It would be nice if WikiText behaved like this: (a) Links are highlighted and "control-clickable" in the "Textile Source" view. (b) Both in "Textile Source" and "Preview" mode, following a link to a textile file should open the linked file in a wikitext editor. (Ideally the link target would be opened in source mode if we come from source mode and it would be opened in preview mode if we come from preview mode. But that's a detail that's not too important.) (c) When foo.textile and bar.textile are converted to foo.html and bar.html then the corresponding link in foo.html should point to bar.html. Of course textile and html are only examples here. The same holds, e.g., for mediawiki and PDF. Items (a) and (b) would give WikiText the feel of an "interpreted" language where you need no explicit "compilation" step to HTML. This makes it easy to use and extend wiki files at the same time. Item (c) allows to do the compilation nevertheless when needed. Some details: - I'm currently using Mylyn WikiText 1.2.0.v20091215-0000-e3x - See also this forum discussion: http://www.eclipse.org/forums/index.php?t=msg&th=162405&start=0& Reproducible: Always Steps to Reproduce: 1. Have two files foo.textile and bar.textile in the same directory. 2. Let the file foo.textile contain a link "bar":bar.textile 3. Open foo.textile and use the "Textile Source" view. 4. Notice that the link is neither highlighted nor does it act as a link. 5. Switch to "Preview" mode. 6. Notice that "bar" now is a link. 7. Click the link. 8. Notice that bar.textile is opened in a browser tab rather than a wikitext editor tab. So you cannot edit bar.textile here.
Thanks for the excellent feature request.
Created attachment 159891 [details] a first crack Attached an implementation of hyperlinks in the markup editor. Creates CTRL+click (or Command+click on a mac) hyperlinks to similarly named files in the workspace. Links are created for relative links to files that exist in the workspace with the correct path, matching files based on path and name without file extension. The implementation does not affect hyperlinks in the editor preview.
Created attachment 159892 [details] mylyn/context/zip
Modified patch committed to CVS. I don't see a good way of presenting these hyperlinks in the editor preview. These hyperlinks may resolve to more than one target file, in which case multiple hyperlinks are presented when CTRL+hovering in the source viewer. In the preview there's no easy way to do this since it's an embedded web browser. Resolving as fixed. If it's important that the link behaviour in the preview be modified please open a new bug.
Created attachment 160021 [details] mylyn/context/zip