Kri
simple, compact & very fast text editor
Install / Use
/learn @ikozyris/KriREADME
kri
<!--[](https://github.com/ikozyris/kri/actions/workflows/c-cpp.yml)-->A simple, compact and fast text editor using ncurses and a gap buffer, written in C++, in ~1.6k lines of code. More information is available on the wiki.
Install
The 0.8.2 release has been packaged for:
- Arch Linux: AUR package.
- Debian/Ubuntu: deb package
Build
make build
sudo make install
Or use the user-friendly dialog utility wizard.sh
which also supports configuring kri
Usage
kri text.txt # open existing file or create if it doesn't exist
kri --help # show help page
kri # ask for filename on save file operation
Keybindings
- Save: Ctrl-S
- Exit: Ctrl-X
- Go to start of line: Ctrl-A
- Go to end of line: Ctrl-E
- Delete line: Ctrl-K
- Go to previous/next word: Shift + Left/Right arrow
- Enter built-in terminal: Alt-C
- Show info: Alt-I (also command stats in built-in terminal)
- Search: command find in builtin terminal, parameters in seperate(\n) queries, example:
- find str
- find 1-5 c (\n) str --> count occurences of string on lines [1,5]
- find 3-10 h (\n) str --> highlight occurences of sring on lines [3,10]
- Replace: command replace :
- replace (\n) str1 (\n) str2 --> replace all str1 with str2
- replace 0-20 (\n) str1 (\n) str2 (\n) --> in range [0,20]
How fast is it?
kri is several times faster than any other text editor at reading files, searching, and other operations. See the benchmarks for more.
License
Copyright (C) 2026 ikozyris
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
