Kakoune is a code editor that implements Vi’s "keystrokes as a text editing language" model. As it’s also a modal editor, it is somewhat similar to the Vim editor (after which Kakoune was originally inspired). If modal text editors are not your thing, go check micro.
Since Kakoune uses ncurses, I recommend using Havoc terminal emulator for optimal support, but if you have no hardware keyboard, then Literm and Toeterm should mostly work (redraw glitches may occasionally occur though).
Kakoune can operate in two modes, normal and insertion. In insertion mode, keys are directly inserted into the current buffer. In normal mode, keys are used to manipulate the current selection and to enter insertion mode.
Kakoune has a strong focus on interactivity, most commands provide immediate and incremental results, while still being competitive (as in keystroke count) with Vim.
Kakoune works on selections, which are oriented, inclusive range of characters, selections have an anchor and a cursor character. Most commands move both of them, except when extending selection where the anchor character stays fixed and the cursor one moves around.
See the design document for more information on Kakoune philosophy and design: https://github.com/mawww/kakoune/blob/master/doc/design.asciidoc/.
Demo video at https://vimeo.com/82711574
# Usage
$ kak /path/to/file
Type ":" while in normal mode to see available commands, e.g., ":doc options". Commands can be applied to the current buffer, or globally. For instance, to show line numbers in all buffers, type ":add-highlighter global/ number-lines".
While not as steep as Vim's learning curve (thanks to command tooltips, among other things), learning Kakoune is not exactly a walk in the park if you have not used a modal editor before. Go check the wiki, for instance to understand how to configure options by adding commands to ~/.config/kak/kakrc and run them automatically, or use plugins (installing them is very easy with the plugin manager): https://github.com/mawww/kakoune/wiki/.
Must have plugins: plug.kak (plugin manager), kakboard (share clipboard with system), but there are many others. If you want to use the spellchecker with ":spell en", you'll need to install the aspell-en package from the Jolla official repository.
# Main features
- Multiple selections
- Text editing tools
- Advanced text manipulation primitives
- Customization
- Client/Server architecture
# Detailed features
- Multiple selections as a central way of interacting
- Powerful selection manipulation primitives
- Powerful text manipulation primitives
- Client-Server architecture
- Simple interaction with external programs
- Automatic contextual help
- Automatic as you type completion
- Macros
- Hooks
- Syntax Highlighting
Go see the github page (https://github.com/mawww/kakoune/) or the website (https://kakoune.org/) to check the full list of features and advanced options.
# Disclaimer
I am not the developer of Kakoune, I just packaged it for SFOS. Kakoune is being actively developed by Maxime Coste and other contributors, but that does not include the SFOS package, which may or may not be updated in the future. There is a #Kakoune IRC channel on Freenode.
Attachment | Size | Date |
---|---|---|
kakoune-2020.01.16master8b36969-1.armv7hl.rpm | 11.16 MB | 18/06/2020 - 01:56 |
kakoune-2020.01.16master8b36969-2.armv7hl.rpm | 814.95 KB | 18/06/2020 - 03:20 |
* Wed Jun 18 2020 Kabouik <matf[redactedforbots]disr.it> 2020.01.16+mster8b36969 Rel. 2
- Stripped version to reduce size from 50 to 1.7 MB (!).
* Tue Jun 17 2020 Kabouik <matf[redactedforbots]disr.it> 2020.01.16+mster8b36969
- First SFOS package based on the master branch, commit 8b36969.
Comments
freerunner
Thu, 2020/06/25 - 14:00
Permalink
Nice!! My favourite editor finally on SFOS! Thank you so much!