Kate - Source code section for lines range on the scrollbar
christoph at cullmann.io
christoph at cullmann.io
Sun Jul 7 15:54:55 BST 2024
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
More information about the KWrite-Devel
mailing list