Kate - Source code section for lines range on the scrollbar

disquisitiones disquisitiones at gmail.com
Tue Jul 9 01:52:57 BST 2024


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 => compiling => standard output check => coding without
ever the need of leaving the keyboard.

Thanks and kind regards,

Luca

Il giorno dom 7 lug 2024 alle ore 10:54 <christoph at cullmann.io> 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 <christoph at cullmann.io> ha
> > scritto:
> >
> >> On 2024-07-05 09:52, Kåre Särs wrote:
> >>> Hello Luca,
> >>>
> >>> That particular UI element is in KTextEditor:
> >>>
> >>
> >
> https://invent.kde.org/frameworks/ktexteditor/-/blob/master/src/view/kateviewhelpers.cpp?ref_type=heads#L332
> >>>
> >>> Br,
> >>> Kåre
> >>>
> >>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240708/980e8dd0/attachment.htm>


More information about the KWrite-Devel mailing list