Re: Kate - Source code section for lines range on the scrollbar

disquisitiones <[email protected]> Mon, 8 Jul 2024 20:52:57 -0400
Newsgroups gmane.comp.kde.devel.kwrite
Message-ID <CAAkvOkbkwnztr0CTtETMFmoJPEgVr7jCfcBPnq_PTuLt-ebMdg@mail.gmail.com>
--00000000000009d6c7061cc5f416
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Christoph,

thanks for your feedback, good to know that these features can be also of
interest for the project.

I can start to dig in and see what is possible, I will open three different
threads in the mailing list for the points I've mentioned
probably starting with the easiest one, point 2). My idea there is not
really related with the interaction with errors and warnings
(which would be point 3) rather with the possibility of observing the
possible generated standard output while coding but trying to minimize
as much as possible the interruption of the flow allowing for a smooth
cycle of coding =3D> compiling =3D> standard output check =3D> coding witho=
ut
ever the need of leaving the keyboard.

Thanks and kind regards,

Luca

Il giorno dom 7 lug 2024 alle ore 10:54 <[email protected]> ha scritto:

> On 2024-07-07 03:38, disquisitiones wrote:
> > Hello Christoph,
>
> Hi,
>
> >
> > no I've just started knowing Kate and I really like it (after
> > frustration with so many other editors i tried), but I would like to
> > modify it
> > for introducing some features I would love to have, for example:
> >
> > 1) Implement smooth scrolling
>
> That is an often wished feature, if there is some reasonable way to
> implement,
> such a feature would be welcome upstream.
>
> >
> > 2) When running an external tool like "Compile and Run cpp" with a
> > keyboard shortcut, maintain the keyboard focus in the editor window.In
> > my understanding currently it is not possible and to continue working
> > on the code it is necessary to bring the mouse and click in the window
> > to regain focus on it,
> > honestly I find this inconvenient.
> >
> > 3) When running an external tool like "Compile and Run cpp", have the
> > possible errors and warnings detected directly represented in the
> > editor window
> > at the corresponding locations, with keyboard shortcuts available for
> > navigating among them, see this hypothetical mockup:
> >
> > Would be possible to draw arbitrary graphics in the window, like
> > rectangles with rounded corners and triangles for precisely pointing
> > to the locations?
> > And to create space between the lines to make space for these
> > graphical elements?
>
> At the moment we only have inline notes that allow to add stuff inside
> lines.
> I think this needs extensions in KTextEditor.
> It would have a use case for LSP things, too.
>
>
> >
> > Let me know your opinion on the feasibility of these features, and in
> > case there is interest in them, I would be more than happy to
> > contribute to the project.
>
> I like the idea of having smooth scrolling and the better showing of
> inline information.
>
> I think both will take some large amount of work, or at least some
> clever approach to it,
> but I think they would we very useful for a lot of people.
>
> Greetings
> Christoph
>
> >
> > Thanks for your attention and best regards,
> >
> > Luca
> >
> > Il giorno ven 5 lug 2024 alle ore 14:22 <[email protected]> ha
> > scritto:
> >
> >> On 2024-07-05 09:52, K=C3=A5re S=C3=A4rs wrote:
> >>> Hello Luca,
> >>>
> >>> That particular UI element is in KTextEditor:
> >>>
> >>
> >
> https://invent.kde.org/frameworks/ktexteditor/-/blob/master/src/view/kate=
viewhelpers.cpp?ref_type=3Dheads#L332
> >>>
> >>> Br,
> >>> K=C3=A5re
> >>>
> >>> On fredag 5 juli 2024 08:43:24 EEST disquisitiones wrote:
> >>>> Hello,
> >>>>
> >>>> I'm building a custom version of the Kate editor modifying the
> >> source
> >>>> code.
> >>>>
> >>>> Could you indicate the section of the Kate source code that is
> >>>> responsible
> >>>> for the display of this graphical element
> >>>> that shows the range of the lines when the scrollbar is moved?
> >>
> >> Hi,
> >>
> >> just out of interest, is that custom version available online
> >> and might it make sense to upstream some alterations?
> >>
> >> Greetings
> >> Christoph
> >>
> >>>>
> >>>> [image: image.png]
> >>>>
> >>>> Many thanks,
> >>>>
> >>>> Luca Rocca
>

--00000000000009d6c7061cc5f416
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Christoph,</div><div><br></div><div>thanks for you=
r feedback, good to know that these features can be also of interest for th=
e project.</div><div><br></div><div>I can start to dig in and see what is p=
ossible, I will open three different threads in the mailing list for the po=
ints I&#39;ve mentioned</div><div>probably starting with the easiest one, p=
oint 2). My idea there is not really related with the interaction with erro=
rs and warnings</div><div>(which would be point 3) rather with the possibil=
ity of observing the possible generated standard output while coding but tr=
ying to minimize</div><div>as much as possible the interruption of the flow=
 allowing for a smooth cycle of coding =3D&gt; compiling =3D&gt; standard o=
utput check =3D&gt; coding without</div><div>ever the need of leaving the k=
eyboard.</div><div><br></div><div>Thanks and kind regards,</div><div><br></=
div><div>Luca</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">Il giorno dom 7 lug 2024 alle ore 10:54 &lt;<a href=3D"m=
ailto:[email protected]">[email protected]</a>&gt; ha scritto:<br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex">On 2024-07-07 03:38,=
 disquisitiones wrote:<br>
&gt; Hello Christoph,<br>
<br>
Hi,<br>
<br>
&gt; <br>
&gt; no I&#39;ve just started knowing Kate and I really like it (after<br>
&gt; frustration with so many other editors i tried), but I would like to<b=
r>
&gt; modify it<br>
&gt; for introducing some features I would love to have, for example:<br>
&gt; <br>
&gt; 1) Implement smooth scrolling<br>
<br>
That is an often wished feature, if there is some reasonable way to <br>
implement,<br>
such a feature would be welcome upstream.<br>
<br>
&gt; <br>
&gt; 2) When running an external tool like &quot;Compile and Run cpp&quot; =
with a<br>
&gt; keyboard shortcut, maintain the keyboard focus in the editor window.In=
<br>
&gt; my understanding currently it is not possible and to continue working<=
br>
&gt; on the code it is necessary to bring the mouse and click in the window=
<br>
&gt; to regain focus on it,<br>
&gt; honestly I find this inconvenient.<br>
&gt; <br>
&gt; 3) When running an external tool like &quot;Compile and Run cpp&quot;,=
 have the<br>
&gt; possible errors and warnings detected directly represented in the<br>
&gt; editor window<br>
&gt; at the corresponding locations, with keyboard shortcuts available for<=
br>
&gt; navigating among them, see this hypothetical mockup:<br>
&gt; <br>
&gt; Would be possible to draw arbitrary graphics in the window, like<br>
&gt; rectangles with rounded corners and triangles for precisely pointing<b=
r>
&gt; to the locations?<br>
&gt; And to create space between the lines to make space for these<br>
&gt; graphical elements?<br>
<br>
At the moment we only have inline notes that allow to add stuff inside <br>
lines.<br>
I think this needs extensions in KTextEditor.<br>
It would have a use case for LSP things, too.<br>
<br>
<br>
&gt; <br>
&gt; Let me know your opinion on the feasibility of these features, and in<=
br>
&gt; case there is interest in them, I would be more than happy to<br>
&gt; contribute to the project.<br>
<br>
I like the idea of having smooth scrolling and the better showing of <br>
inline information.<br>
<br>
I think both will take some large amount of work, or at least some <br>
clever approach to it,<br>
but I think they would we very useful for a lot of people.<br>
<br>
Greetings<br>
Christoph<br>
<br>
&gt; <br>
&gt; Thanks for your attention and best regards,<br>
&gt; <br>
&gt; Luca<br>
&gt; <br>
&gt; Il giorno ven 5 lug 2024 alle ore 14:22 &lt;<a href=3D"mailto:christop=
[email protected]" target=3D"_blank">[email protected]</a>&gt; ha<br>
&gt; scritto:<br>
&gt; <br>
&gt;&gt; On 2024-07-05 09:52, K=C3=A5re S=C3=A4rs wrote:<br>
&gt;&gt;&gt; Hello Luca,<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; That particular UI element is in KTextEditor:<br>
&gt;&gt;&gt; <br>
&gt;&gt; <br>
&gt; <a href=3D"https://invent.kde.org/frameworks/ktexteditor/-/blob/master=
/src/view/kateviewhelpers.cpp?ref_type=3Dheads#L332" rel=3D"noreferrer" tar=
get=3D"_blank">https://invent.kde.org/frameworks/ktexteditor/-/blob/master/=
src/view/kateviewhelpers.cpp?ref_type=3Dheads#L332</a><br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Br,<br>
&gt;&gt;&gt; K=C3=A5re<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; On fredag 5 juli 2024 08:43:24 EEST disquisitiones wrote:<br>
&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; I&#39;m building a custom version of the Kate editor modif=
ying the<br>
&gt;&gt; source<br>
&gt;&gt;&gt;&gt; code.<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Could you indicate the section of the Kate source code tha=
t is<br>
&gt;&gt;&gt;&gt; responsible<br>
&gt;&gt;&gt;&gt; for the display of this graphical element<br>
&gt;&gt;&gt;&gt; that shows the range of the lines when the scrollbar is mo=
ved?<br>
&gt;&gt; <br>
&gt;&gt; Hi,<br>
&gt;&gt; <br>
&gt;&gt; just out of interest, is that custom version available online<br>
&gt;&gt; and might it make sense to upstream some alterations?<br>
&gt;&gt; <br>
&gt;&gt; Greetings<br>
&gt;&gt; Christoph<br>
&gt;&gt; <br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; [image: image.png]<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Many thanks,<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Luca Rocca<br>
</blockquote></div>

--00000000000009d6c7061cc5f416--