Text Editor

Hat – hackable modal text editor

Hat is a hackable modal text editor for modern terminals aimed at users who prefer software they can inspect, modify, and compile from source.

ts design is intentionally minimalist: configuration is handled through source-level customisation rather than an external settings system, and extra behaviour is added by changing the code or applying distributed patch files. The project follows a suckless-style philosophy focused on small, readable tools.

This is free and open source software.

Key Features

  • Provides normal, select, select line, and insert editing modes.
  • Includes Vim-like motions and commands for common editing operations.
  • Offers unlimited undo and redo support.
  • Supports system clipboard copy and paste using xclip.
  • Runs external commands on selected text for automation workflows.
  • Includes dot-repeat, multi-repeat, and macro functionality.
  • Uses Tree-sitter for syntax highlighting and indent alignment.
  • Provides LSP features including go to definition, find references, diagnostics, completions, hover, and rename.
  • Supports multiple buffers, file finding, and searching within files.
  • Includes scratch buffers, Unicode support, and a printer mode.
  • Can be extended with source code patches for features such as autosave, relative line numbers, Git hunk markers, and LSP code actions.

Website: github.com/ivanjermakov/hat
Support:
Developer: ivanjermakov
License: MIT License

Hat in action
Click image for full size

Hat is written in Zig. Learn Zig with our recommended free tutorials.


Related Software

Vim-like Text Editors
NeovimVim-fork focused on extensibility and usability
HelixKakoune / Neovim inspired editor.
LapceModern editor in Rust which uses native GUI and GPU rendering
NvChadNeovim config aiming to provide a base configuration
LunarVimIDE layer for Neovim
KakouneImplements Vi’s "keystrokes as a text editing language" model
VisCombining modal editing with structural regular expressions
vileText editor that combines aspects of the Emacs and vi editors
pyvimImplementation of Vim in Python
gVimVim with a built-in GUI
ampVim-like editor written in Rust
VyVim-like in Python made from scratch
moeCommand-line editor inspired by Vim
wigModal, Vim-like text editor
sledSimple text editor with a terminal UI
redModern modal text editor written in Rust
adAdaptable text editor
hatHackable modal text editor
HAKOLightweight terminal-based modal text environment
xviPortable multi-file text editor
aretextMinimalist text editor with vim-compatible key bindings
LeveeAlso known as Captain Video

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted