Skip to content
Tech News
← Back to articles

Txt: A fast, keyboard-driven terminal text editor for engineers

read original get Keychron K2 Wireless Mechanical Keyboard → more articles
Why This Matters

txt is a new terminal text editor that positions itself between minimal tools like nano and heavyweight modal editors like Vim/Neovim, offering modern features such as tree-sitter syntax highlighting, code folding, and fuzzy symbol search without configuration or modal editing. For developers who live in the terminal, it addresses a real friction point: making quick edits without leaving the shell or learning a new paradigm.

Key Takeaways
Worth a Look

Keychron K2 Wireless Mechanical Keyboard — If your editing life happens entirely in the terminal, a great mechanical keyboard is the tool you actually touch all day. The Keychron K2's compact layout keeps your hands on the home row and off the mouse, which is exactly the flow a keyboard-driven editor like txt is built around. Hot-swappable switches and Mac/Windows compatibility make it easy to tune to your typing style.

See Keychron K2 Wireless Mechanical Keyboard on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

txt A fast, keyboard-driven terminal text editor for engineers. Latest release:

Why txt

Most terminal editors demand a ceremony before you can edit: configuring plugins, learning a modal system, or fighting with a setup that takes hours to get right. GUI editors are the opposite problem — they are powerful, but reaching for the mouse to edit a config file or fix a typo breaks your flow.

I built txt because I spend most of my time in the terminal, and switching to a different tool just to make a quick edit always felt like friction I did not want. The editors that live in the terminal either have steep learning curves built around modal paradigms, or they are too limited to be genuinely useful.

The design principle behind txt is simple: editing should feel like thought. The editor opens immediately, keystrokes are predictable and discoverable, and the cursor lands exactly where you expect. There is no modal confusion, no mandatory configuration, and no plugin ecosystem to navigate before you can open your first file.

txt is not trying to replace your main IDE. It is the editor you reach for when you just need to edit something — and you want to stay in the terminal to do it.

Features

Syntax highlighting via tree-sitter for Rust, Python, JavaScript, TypeScript / TSX, Go, Java, Kotlin, C#, Groovy, Shell, HTML, CSS, JSON, YAML, TOML, Properties, and Markdown (with embedded code blocks)

via tree-sitter for Rust, Python, JavaScript, TypeScript / TSX, Go, Java, Kotlin, C#, Groovy, Shell, HTML, CSS, JSON, YAML, TOML, Properties, and Markdown (with embedded code blocks) Code folding — tree-sitter–driven folds with a fold gutter and ▸ N lines markers; Ctrl+Shift+[ toggles, Alt+0 / Alt+Shift+0 fold and unfold everything

— tree-sitter–driven folds with a fold gutter and markers; toggles, / fold and unfold everything Symbols in current file — Ctrl+Shift+O opens a fuzzy picker over every function, class, and declaration in the buffer

... continue reading