Bug 471825 - Feature Request: Click to open URLs within the editor pane
Summary: Feature Request: Click to open URLs within the editor pane
Status: CONFIRMED
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: megan.conkle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-01 10:51 UTC by jtherrmann1
Modified: 2023-07-26 08:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jtherrmann1 2023-07-01 10:51:53 UTC
I would like to request a new feature for ghostwriter. I want to be able to click to open URLs within the plaintext editor pane. So, for example, if I write any of the following:

https://ghostwriter.kde.org/  
<https://ghostwriter.kde.org/>  
[ghostwriter](https://ghostwriter.kde.org/)

then I would like for the URL to be both highlighted and clickable within the editor pane.

The motivation for this feature is that I would like to use ghostwriter for taking notes, without using the preview pane (as I find it a distraction). But my notes will include many URLs that I will want to be able to open with a single click. Currently, if I want to click a URL, I have to open the preview pane, scroll to the URL's location, and click it. This feature would allow opening URLs directly from the editor pane.

I could try my hand at implementing this feature, but I am not at all familiar with ghostwriter's codebase and would appreciate it if someone could perhaps point me to the relevant section(s) of the code and give me any suggestions for how to implement the feature. I would also be happy to review a pull request if someone else wants to implement this feature.

Ghostwriter is perhaps the best standalone markdown editor I have ever found. Thanks for this incredible piece of software!
Comment 1 jtherrmann1 2023-07-01 11:03:49 UTC
I wonder if this would be helpful: https://stackoverflow.com/questions/35858340/clickable-hyperlink-in-qtextedit