From kwrite-devel Sat May 23 15:03:20 2020 From: Alex Turbov Date: Sat, 23 May 2020 15:03:20 +0000 To: kwrite-devel Subject: Re: Kate Missing "open selected" function Message-Id: X-MARC-Message: https://marc.info/?l=kwrite-devel&m=159024622214835 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--00000000000090114505a6520c96" --00000000000090114505a6520c96 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Heh, it was implemented as a Python plugin in KDE4 :( I hope someday KF5 would gain Python support again... On Sat, May 23, 2020 at 9:19 PM Christoph Cullmann wrote: > On 2020-05-22 13:21, Fischer, Knut wrote: > > Hi, > > > > Is it possible to create/implement a functionality =E2=80=9Copen select= ed=E2=80=9D > > for kate? > > > > E.g. > > > > If in a text file a full path to a different file is defined, it > > should be opened when selected and using the functionality. > > > > Please help=F0=9F=98=8A > Hi, > > sounds like a good extension. > > Should be "easy" to implement inside the KTextEditor library. > > One just needs to add an extra element to the context menu for this that > then will trigger openUrl of the KTextEditor::Application if existing > to signal the application like Kate to open the file. > > Are you interested in give such an extension a shot? > > Greetings > Christoph > > -- > Ignorance is bliss... > https://cullmann.io | https://kate-editor.org > --00000000000090114505a6520c96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Heh, it was implemented as a Python plugin in KDE4 :(=

I hope someday KF5 would gain Python support agai= n...

On Sat, May 23, 2020 at 9:19 PM Christoph Cullmann <christoph@cullmann.io> wrote:
On 2020-05-22 13:= 21, Fischer, Knut wrote:
> Hi,
>
> Is it possible to create/implement a functionality =E2=80=9Copen selec= ted=E2=80=9D
> for kate?
>
> E.g.
>
> If in a text file a full path to a different file is defined, it
> should be opened when selected and using the functionality.
>
> Please help=F0=9F=98=8A
Hi,

sounds like a good extension.

Should be "easy" to implement inside the KTextEditor library.

One just needs to add an extra element to the context menu for this that then will trigger openUrl of the KTextEditor::Application if existing
to signal the application like Kate to open the file.

Are you interested in give such an extension a shot?

Greetings
Christoph

--
Ignorance is bliss...
https:= //cullmann.io | https://kate-editor.org
--00000000000090114505a6520c96--