In the kate.git master branch the text folding is now new and shiny.
In addition to be faster and less memory hungry (no folding tree is around if you fold nothing, it is only created on-demand exactly for the folded regions), the new code is less complex and smaller (and hopefully better documented + unit tested, it actually has a test for most internal operations).
There is actually now a clean separation, the folding does not mix with highlighting and can be used without it, too.
This allows for a better integration of indentation based foldings like in Python (and already fixes the most ugly miss-placements of folding regions there) and empowers the user to fold arbitrary regions manually.
This can be done at the moment with two kate commands (for the F7 command line):
- “fold” will create persistent fold for the current selection, this fold will stay until next reload of document (will implement some dfold command later, to delete it)
- “tfold” will create temporary fold for the current selection, this fold will disappear again on unfolding
This should allow better vi mode integration, too, as vi is able to fold arbitrary regions, too. (There is an internal API to fold any KTextEditor::Range you pass in, which should allow to fold by regex and other ways, too, if somebody steps up to implement it.)
If you find glitches, please report them as bugs and please attach some file to reproduce, I am very interested to get this all in even better shape for KDE 4.11, be folding crashs a thing of the past.
For all people not using folding at all, be happy, it no longer will crash you (and me), as it is a nop if no folding ranges are created by the user and some extreme cases got a speedup of 1000% because of less overhead, like VERY large C++ sources
Okular, KDE’s universal document viewer, has a really cool feature I’m using for years already: “Go > Forward” and “Go > Backward”. These two actions allow to quickly jump to positions in the document where you came from in a chronological order. Consider e.g. reading the phrase “As shown in , …”, and you want to know quickly lookup reference . So you click on it, and okular will jump to the list of references. And “Go > Back” will bring you back to exactly the position where you came from.
In fact, I removed the “Previous” and “Next”-page buttons from the toolbar in favor of the “Back” and “Forward” feature, which is much more useful to me Given that my colleagues were not aware of this feature (all experts in LaTeX and all using Kile and Okular), I thought to praise it here in a dedicated blog. Interestingly, the Okular Handbook is missing this feature. Any takers to fix this? Update: This is also mentioned in the Okular handbook
Now the statistics of the kate.git are online for public viewing.
They will be updated daily, located on: http://kate-editor.org/stats/
Unfortunately, the statistics of the last years are not that “representative”, as the moves of Kate around in SVN and to Git biased the statistics, as I did a lot of the commits for syncing and moving and so on.
Still it is amazing how MANY people did contribute during Kate’s history! (see Kate Authors)
A big THANK YOU to all contributors that appear there (and all the people that provided patches others merged in, did the testing, bug reporting, translations, …).
(And thanks to the authors of git_stats.)
The Projects plugin in Kate just gained a context menu for the tree view that shows several git tools, if available:
Clicking will open the corresponding application in the correct working directory. Currently, only gitk, qgit and git-cola are supported. If you want more git integration, you probably have to use KDevelop or QtCreator