https://bugs.kde.org/show_bug.cgi?id=385897

            Bug ID: 385897
           Summary: Click on relative URL tries to open this file
           Product: kate
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: plugin-preview
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: codestr...@posteo.org
                CC: kosse...@kde.org
  Target Milestone: ---

It would be nice if some documentation is spread over several md files and one
clicks on a link that points to another md file, that this md file is opened in
Kate and therefore the preview of this new file is shown. Similar how github
does it with its README.mds.

This maybe could be implemented if it is possible to report the event of
clicking a hyperlink in the Webview back to Kate which then decides what
happens, e.g.:

1) relative link to existing file (regardless if .md or not): open this file in
Kate. Maybe even another distinction: if this file does not have a preview than
the current preview is not changed. This case could be used when the
documentation links to relevant source files.
2) relative link to existing folder: check if there is a README.md file and
open it.
3) http(s) URL: open in browser

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to