Kakoune Explained

Author:Maxime Coste
Programming Language:C++, KakouneScript
Operating System:Unix-like, macOS
Genre:Text editor
License:Unlicense

Kakoune is a modal screen-based text editor program created in 2011 by French programmer Maxime Coste. The editor is heavily inspired by the classic vi by Bill Joy, as well as its successor Vim by Bram Moolenaar.[1] [2]

The primary focus of the Kakoune editor is efficiency, which it achieves by making heavy use of a multi-cursor workflows. By default a user always has one selection, which can be widened or shortened through the use of commands and regular expressions. This allows Kakoune to behave like a structured editor despite having no knowledge of the semantics of the underlying programming language.[3] The editor also features a modal workflow with a insert and a normal mode reminiscent of other editors based on vi. The insert mode allows for the insertion of text into the document, whereas in the normal text input is interpreted as commands.[4] A digital assistant represented as an ASCII art of a paper clip is also integrated into the editor which helps guide users through the keybindings, features and workflows provided by the editor.

The editor is primarily written in C++ and makes heavy use of templates and classes which results in a discrepancy in the number of lines of code and the instructions generated for the project using LLVM.[5]

See also

Notes and References

  1. Web site: kakoune/README.asciidoc at master ยท mawww/kakoune . live . https://web.archive.org/web/20240617032908/https://github.com/mawww/kakoune/blob/master/README.asciidoc . 2024-06-17 . 17 June 2024 . GitHub . en.
  2. Rougier . Nicolas P. . On the design of text editors . 2020-09-03 . cs.HC . 2008.06030.
  3. Book: Voinov . Philippe . Rigger . Manuel . Su . Zhendong . Forest: Structural Code Editing with Multiple Cursors . 2022-12-01 . Proceedings of the 2022 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software . https://doi.org/10.1145/3563835.3567663 . Onward! 2022 . New York, NY, USA . Association for Computing Machinery . 148 . 10.1145/3563835.3567663 . 978-1-4503-9909-8.
  4. Web site: Kenlon . Seth . 2022-02-07 . Try Kakoune for a modern Vi . 2024-06-17 . . en . 17 June 2024 . https://web.archive.org/web/20240617200149/https://www.redhat.com/sysadmin/kakoune-vi-text-editor . live .
  5. Data Structures for Points-To Analysis . 2022 . PhD . en-US . Mohamad . Barbar . 17 June 2024 . University of Technology Sydney (Australia) . 17 June 2024 . https://web.archive.org/web/20240617200313/https://opus.lib.uts.edu.au/handle/10453/165867 . live .