Version: (using KDE KDE 3.3.1) Installed from: SuSE RPMs OS: Linux A KDE text viewer that hightlights weblinks contained in the text and turns them into clickable links? I use Kwrite for most of my general viewing and would like to see this feature included.
Bug #26121 has the same wish for konsole, actually i like this idea.
For Windows there exists a small editor called metapad. It has this very useful feature to display links in blue to highlight them and if you click on a link it opens in your browser. I really miss this feature in kwrite too. Though I managed to create a color profile to display links in blue this way they still are not clickable.
This is a nice job for a plugin.
On Monday 29 May 2006 09:41 am, Janet wrote: [bugs.kde.org quoted mail] A workaround: on my kde (not 100% sure what implements this, although I think it's a feature of klipper), I can select a URL in almost any application (for example, I do it often in nedit, which is not a kde application) and it will open in an existing (or sometimes a new) browser. It's not quite as nice as clicking (I have to select the entire URL, but, on the other hand, I don't have to be that precise, it also seems to work if I select more than just the URL). When I select a URL, in, for example nedit, a popup window opens. The first line reads: "We-URL: Actions for " <the URL I selected> Subsequent lines include things like: Open with Konqueror Open with Mozilla (i.e., the two browsers I use) Send URL Send Page ... This works (and seems to have been set up automatically for me) on Mandrake 2006 which uses kde 3.4.2. If this sounds useful to you, maybe someone else can point you to how to set this up. (I'm pretty sure it's a function of klipper, but as I did not set it up for myself, I'm not sure what is required.) Randy Kramer PS: Aside: In nedit I have syntax highlighting setup so that (for some files, those I'm interested in) links are highlighted in blue.
This should be changed to a wishlist item for Katepart so that Katepart makes links clickable, just like bug #29712 asks for Konsole.
Yep, that's Klipper. Still would be nice to have automatic actions in a KDE text editor though (In reply to comment #4) > On Monday 29 May 2006 09:41 am, Janet wrote: > [bugs.kde.org quoted mail] > > A workaround: on my kde (not 100% sure what implements this, although I think > it's a feature of klipper), I can select a URL in almost any application (for > example, I do it often in nedit, which is not a kde application) and it will > open in an existing (or sometimes a new) browser. > > It's not quite as nice as clicking (I have to select the entire URL, but, on > the other hand, I don't have to be that precise, it also seems to work if I > select more than just the URL). > > When I select a URL, in, for example nedit, a popup window opens. The first > line reads: > > "We-URL: Actions for " <the URL I selected> > > Subsequent lines include things like: > > Open with Konqueror > Open with Mozilla (i.e., the two browsers I use) > Send URL > Send Page > ... > > This works (and seems to have been set up automatically for me) on Mandrake > 2006 which uses kde 3.4.2. > > If this sounds useful to you, maybe someone else can point you to how to set > this up. (I'm pretty sure it's a function of klipper, but as I did not set > it up for myself, I'm not sure what is required.) > > Randy Kramer > > PS: Aside: In nedit I have syntax highlighting setup so that (for some files, > those I'm interested in) links are highlighted in blue. >
*** Bug 166262 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 86850 ***
Used wrong bug for dupe, upsa.
*** Bug 263004 has been marked as a duplicate of this bug. ***
What's the state here? Can some developer maybe give some rough guidelines about what would be needed to implement this? So, maybe, some other reader here has some free time and can actually implement it. I would even go further and make this somehow configurable/scriptable via plugins. E.g., I would like to click on `import` statements in Python files. Or I have some own file format where I use some sort of `include` with a relative filename, and I would like to be able to click on that, too.
*** Bug 399810 has been marked as a duplicate of this bug. ***
Nowadays, a plugin needs to add a KTextEditor::MovingRange to matching texts, and on hover change the MovingEanges KTextEditor::Attribute. All a simple thing.
*** This bug has been marked as a duplicate of bug 446722 ***
*** Bug 451434 has been marked as a duplicate of this bug. ***
*** Bug 446722 has been marked as a duplicate of this bug. ***
*** Bug 423906 has been marked as a duplicate of this bug. ***
*** Bug 457686 has been marked as a duplicate of this bug. ***
*** Bug 465264 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1180
Git commit e4a740a664e64acc1fc884dcbf8aaa34a6aa12a3 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 04/04/2023 at 08:38. Pushed by cullmann into branch 'master'. Intoduce open links plugin Simple plugin that highlights http(s) urls and allows opening the link via QDesktopService M +1 -0 addons/CMakeLists.txt A +10 -0 addons/openlink/CMakeLists.txt A +292 -0 addons/openlink/OpenLinkPlugin.cpp [License: GPL(v2.0+)] A +58 -0 addons/openlink/OpenLinkPlugin.h [License: GPL(v2.0+)] A +9 -0 addons/openlink/OpenLinkPlugin.json https://invent.kde.org/utilities/kate/commit/e4a740a664e64acc1fc884dcbf8aaa34a6aa12a3
Note that this feature has been implemented in the form of an off-by-default plugin ("Open Link"). To get this functionality, you need to enable that plugin first. If you would like it to be enabled by default, please make your opinion known!
It will be nice if it is enabled by default, and when you hover over the highlighted text, a tooltip appears with the text: "Press ctrl + left-click to open the link".