The Kate Text Editor - January 2021
A lot of stuff happened for Kate and it's foundation KTextEditor & KSyntaxHighlighting in January 2021 ;)
I will just briefly summarize what is going one feature wise.
Already two weeks ago I pointed out the improvements to our Quick Open dialog.
It not only got some nice visual refresh but a much better fuzzy matching algorithm.
The fuzzy matching algorithm is on its way to be upstream to KCoreAddons to be used by more parts of the KDE universe.
Praise to Waqar Ahmed for implementing this and pushing it to upstream. And thanks to Forrest Smith for allowing us to use his matching algorithm under LGPLv2+!
HUD style command palette
;=) I stole that naming from Nate's This week in KDE: the Plasma 5.21 beta is here! post.
This dialog provides the same fuzzy matching we have in Quick Open but applies it to all registered actions of the application.
There is some menu items for it? It will find it.
Besides, it even is able to trigger sub menus.
As it works on the KActionCollection of the application without any other dependencies, this might be upstreamed later to e.g. KXMLGui to be usable for other KDE applications, too.
Thanks for this to Waqar Ahmed, too!
Search & Replace
The Search and Replace tool view provided by the corresponding plugin is a central feature of Kate.
I use it a lot myself, especially in combination with the projects plugin. Just type pgrep Kate in your Kate command line (F7) and you get all matches of that in your current active project. Replaced my usual grep -r or git grep inside the Kate terminal tool view years ago.
Both representation and architectural wise this now got some overhaul (and more to come).
We now use the same theme as inside the KTextEditor editor views. This means the matches will look exactly like the text in your editor, same font, same colors.
In addition, the plugin uses now a proper model-view separation and we will try to get multi-threaded search working, too. At the moment still one background thread does the disk search, this will be improved.
Thanks to Kåre Särs & Waqar Ahmed, for working on this.
Semantic Highlighting via LSP
Another nifty feature is the improved semantic highlighting support inside the LSP plugin. This now more properly tries to use the same theme colors as KTextEditor & KSyntaxHighlighting provide, too.
There is still room for improvements, like allowing themes to specify more colors for this. But at least as a start, it already works ok.
See below the a file inside the Kate project without semantic highlighting enabled:
And here with that feature on:
:=) Waqar worked on this, too, the LSP changes were reviewed by Mark Nauwelaerts.
Summary & Outlook
This is not even all that happened in 2021 up to now ;)
As you can see on our team page a lot of new people helped out in the scope of the last year. I hope to see more people showing up there as new contributors. It is a pleasure that Waqar Ahmed & Jan Paul Batrina now have full KDE developer accounts!
Especially Waqar came up with a lot of nifty ideas what could be fixed/improved/added and he did already do a lot of work to actually get these things done!
I actually wanted to write earlier about what cool new stuff is there, but had too much review requests to look after. Great! ;=) No I can read review request instead of light novels in the evening.
In my Kate is 20 years old! post from December 14, 2020 I added summaries of the merge requests we got since we are on our GitLab invent.kde.org instance:
- 115 patches for Kate
- 41 patches for KTextEditor
- 113 patches for KSyntaxHighlighting
Today, a bit over one month later, these numbers look like:
- 170 patches for Kate
- 82 patches for KTextEditor
- 150 patches for KSyntaxHighlighting
I would say that is a nice increase ;=)
Naturally, there are small and large merges, but still, KTextEditor's requests doubled in a bit over one month.
Let's hope this trend continues!
Thanks to all people that contribute, let's rock!
A matching thread for this can be found here on r/KDE.