Erik Hellman Launches 'txt': A Rust-Powered Terminal Editor for Engineers
The keyboard-driven tool delivers IDE-level power and LSP support without the steep learning curve of modal editors.
Erik Hellman has released 'txt', a fast, keyboard-driven terminal text editor designed specifically for engineers. The tool bridges the gap between basic terminal editors and complex modal systems or heavy GUI IDEs, offering a streamlined experience for those who live in the command line.
Built with Rust, 'txt' requires Rust 1.88 or higher to build from source. The editor provides a modern feature set including tree-sitter based syntax highlighting and code folding for a wide array of languages, such as Rust, Python, JS/TS, Go, Java, and C#. For deeper development needs, it includes Language Server Protocol (LSP) support, enabling completions, hover documentation, and go-to-definition features via an opt-in per-workspace configuration.
Beyond basic editing, 'txt' integrates directly with Git, featuring an inline gutter to track changes and a dedicated operations dialog accessible via Ctrl+Shift+G. To increase efficiency, Hellman included multi-cursor editing, AST-aware selection, and keyboard macros that can be recorded into slots a-z. The project is dual-licensed under MIT and Apache 2.0.
The Middle Way for CLI Workflows
Terminal editors have traditionally been split into two distinct categories: basic editors like nano, which lack advanced power, and modal editors like Vim or Emacs, which offer immense capability but come with steep learning curves and extensive configuration requirements. While GUI editors provide the necessary power for large projects, they often introduce friction when an engineer needs to make quick edits to configuration files or small scripts while already working in a terminal environment.
Reducing Cognitive Load
For engineers who spend the majority of their time in the command line interface, 'txt' offers a "middle-way" solution. By combining the power of an IDE—such as LSP and AST-awareness—with the immediacy of a simple text editor, the tool reduces the cognitive load and friction associated with switching environments for minor tasks. Hellman describes the design philosophy as one where "editing should feel like thought," specifically aiming to avoid the "ceremony" often associated with plugin configuration or modal systems.
Future Outlook
As 'txt' enters the ecosystem, it positions itself as the tool for those who want to stay in the terminal without sacrificing modern development features. Hellman notes that it is intended to be the editor a user reaches for when they simply need to edit something quickly. Whether it can displace established modal editors for power users remains to be seen, but its focus on reducing setup friction provides a compelling alternative for the modern CLI workflow.