Kate - Source code section for lines range on the scrollbar
disquisitiones
disquisitiones at gmail.com
Sun Jul 7 02:38:50 BST 2024
Hello Christoph,
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
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:
[image: image.png]
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?
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.
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/20240706/e5f2dc99/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 71931 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240706/e5f2dc99/attachment-0001.png>
More information about the KWrite-Devel
mailing list