Kate (text editor) explained

Kate
KDE Applications
Developer:KDE
Programming Language:C++, Qt
Genre:Source code editor
License:LGPL, GPL

The KDE Advanced Text Editor, or Kate, is a source code editor developed by the KDE free software community. It has been a part of KDE Software Compilation since version 2.2, which was first released in 2001. Intended for software developers, it features syntax highlighting, code folding, customizable layouts, multiple cursors and selections, regular expression support, and extensibility via plugins. The text editor's mascot is Kate the Cyber Woodpecker.

History

Kate has been part of the KDE Software Compilation since release 2.2 in 2001.[1] Because of KParts technology, it is possible to embed Kate as an editing component in other KDE applications. Major KDE applications which use Kate as an editing component include the integrated development environment KDevelop, the web development environment Quanta Plus, and the LaTeX front-end Kile.

Kate has won the advanced text editor comparison in Linux Voice magazine.[2]

, development had started to port Kate, along with Dolphin, Konsole, KDE Telepathy, and Yakuake, to KDE Frameworks 5.[3]

In 2022, the KDE text-editor KWrite was modified to use the same code base as Kate with deactivated features.[4]

Features

Kate is a source code editor that features syntax highlighting for over 300 file formats with code folding rules.[5] [6] The syntax highlighting is extensible via XML files.[7] It supports UTF-8, UTF-16, ISO-8859-1 and ASCII encoding schemes and can detect a file's character encoding automatically. Kate offers code completion and reference finding for various programming languages through its Language Server Protocol Client plugin. The default configuration supports C, C++, D, Fortran, Go, Latex, Python, Rust, and OCaml.[8]

Kate's main text editor widget is called KatePart, which is reusable under the terms of the LGPL version 2 license.[9] It must not be confused with the KParts, a KDE plugin framework for user interface components that Kate also uses.[10]

Kate can be used as a modal text editor through its vi input mode.[11]

Kate features multiple document interface, window splitting, project editing[12] and sessions to facilitate editing multiple documents. Using sessions, one can customize Kate for different projects by saving the list of open files, the list of enabled plug-ins and the window configuration.[13]

Kate includes the KDE terminal emulator Konsole through its Terminal Tool View plugin.[14] Since version 23.04, the terminal is also available on windows.[15]

The "quick open" feature allows searching opened files by name for quick recalling.[16] Line modification indicators highlight lines with unsaved changes and lines added in the current session.[17] [18]

Being a KDE application, Kate transparently opens and saves files over all protocols supported by KIO libraries. This includes HTTP, FTP, SSH, SMB and WebDAV, among others.

, unlike Xed, Kate is equipped with a session manager which allows naming, saving, and restoring sessions, meaning a list of momentarily open file tabs. Saved sessions are stored as key-value-formatted *.katesession files into ~/.local/share/kate/sessions/.

Other features are a clipboard history with up to ten items, the ability to jump to a line number,[19] and source control integration using Git[20] [21]

See also

Notes and References

  1. Web site: 2.1 to 2.2 Changelog . KDE.org . 2015-07-02.
  2. Web site: Issue 2 is Out! . LinuxVoice.com . 2015-07-02 . 2015-07-03 . https://web.archive.org/web/20150703184555/http://www.linuxvoice.com/issue-2-is-out/ . dead .
  3. Web site: KDE SC 4.14 wird 4er-Reihe abschließen. Golem.de . de . 2014-07-10.
  4. Web site: Larabel . Michael . KDE Starts April With Many Fixes, KWrite Internally Using The Same Code As Kate . www.phoronix.com . Phoronix Media . 15 June 2022 . en.
  5. Web site: kate.git. Projects.KDE.org. 2020-01-29. https://archive.today/20130909103201/https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/show/part/syntax/data. 2013-09-09. dead.
  6. Web site: data/syntax · master · Frameworks / Syntax Highlighting Engine · GitLab . GitLab . 11 September 2023 . en.
  7. Web site: Christoph . Cullmann . Writing a Syntax Highlighting File | Kate | Get an Edge in Editing . Kate-Editor.org . 2005-03-24 . 2015-07-02.
  8. Web site: Cullmann . Christoph . Kate -LSP Client Status . kate-editor.org . January 2020 . 15 June 2022.
  9. Web site: KatePart | Kate | Get an Edge in Editing . Kate-Editor.org . 2015-07-02 . 2014-10-18 . https://web.archive.org/web/20141018084936/http://kate-editor.org/about-katepart/ . dead .
  10. Web site: KParts - KParts. 2020-10-30. api.kde.org.
  11. Web site: 2008-10-27 . KDE's Kate Text Editor Gets Vi Input Mode. ArsTechnica.com . 2009-05-04.
  12. Web site: 2012-11-02. Using the Project Plugin in Kate . 2014-09-24.
  13. Web site: Using Sessions . Docs.KDE.org . 2015-07-02.
  14. Web site: Terminal Tool View Plugin . docs.kde.org . 15 June 2022.
  15. Web site: 2023-02-20 . Make Konsole work on Windows (!814) · Merge requests · Utilities / Konsole · GitLab . 2024-01-03 . GitLab . en.
  16. Web site: Cullmann . Christoph . Kate Text Editor - Quick Open . Kate . 15 September 2021 . en . 10 January 2021.
  17. Web site: Chapter 7. Configure KatePart . docs.kde.org . Show line modification markers.
  18. Web site: Line Modification Indicators . docs.kde.org.
  19. https://docs.kde.org/stable5/en/kate/katepart/dev-scripting.html "The editor holds a clipboard history that contains up to 10 clipboard entries."
  20. Web site: Crume . Jacob . 16 April 2021 . Kate Editor Set to Become KDE's Answer to Microsoft's Visual Studio Code . 15 June 2022 . It's FOSS News.
  21. Web site: Using Kate's Git Features . February 2023 .