Re: Kate - Source code section for lines range on the scrollbar
Kåre Särs <[email protected]> Tue, 09 Jul 2024 13:36:35 +0300
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <5796790.DvuYhMxLoT@sars-xps-13-9370> |
Hi Luca, On Tuesday, 9 July 2024 03.52.57 EEST disquisitiones wrote: > Hi Christoph, >=20 > thanks for your feedback, good to know that these features can be also of > interest for the project. >=20 > I can start to dig in and see what is possible, I will open three differe= nt > 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 wit= hout > ever the need of leaving the keyboard. I think you can disable the focus-compile-output of the Build & Run plugin. When the plugin is enabled there should be a config page for it and there y= ou=20 can un-check the "Automatically switch to output pane....." Regards, K=C3=A5re >=20 > Thanks and kind regards, >=20 > Luca >=20 > Il giorno dom 7 lug 2024 alle ore 10:54 <[email protected]> ha scritt= o: > > On 2024-07-07 03:38, disquisitiones wrote: > > > Hello Christoph, > >=20 > > Hi, > >=20 > > > 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: > > >=20 > > > 1) Implement smooth scrolling > >=20 > > That is an often wished feature, if there is some reasonable way to > > implement, > > such a feature would be welcome upstream. > >=20 > > > 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. > > >=20 > > > 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: > > >=20 > > > 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? > >=20 > > 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. > >=20 > > > 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. > >=20 > > I like the idea of having smooth scrolling and the better showing of > > inline information. > >=20 > > 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. > >=20 > > Greetings > > Christoph > >=20 > > > Thanks for your attention and best regards, > > >=20 > > > Luca > > >=20 > > > Il giorno ven 5 lug 2024 alle ore 14:22 <[email protected]> ha > > >=20 > > > scritto: > > >> On 2024-07-05 09:52, K=C3=A5re S=C3=A4rs wrote: > > >>> Hello Luca, > >=20 > > >>> That particular UI element is in KTextEditor: > > https://invent.kde.org/frameworks/ktexteditor/-/blob/master/src/view/ka= tev > > iewhelpers.cpp?ref_type=3Dheads#L332>=20 > > >>> Br, > > >>> K=C3=A5re > > >>>=20 > > >>> On fredag 5 juli 2024 08:43:24 EEST disquisitiones wrote: > > >>>> Hello, > > >>>>=20 > > >>>> I'm building a custom version of the Kate editor modifying the > > >>=20 > > >> source > > >>=20 > > >>>> code. > > >>>>=20 > > >>>> 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? > > >>=20 > > >> Hi, > > >>=20 > > >> just out of interest, is that custom version available online > > >> and might it make sense to upstream some alterations? > > >>=20 > > >> Greetings > > >> Christoph > > >>=20 > > >>>> [image: image.png] > > >>>>=20 > > >>>> Many thanks, > > >>>>=20 > > >>>> Luca Rocca