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.

Its design is intentionally minimalist: configuration is handled through source-level customisation rather than an external settings system, and extra behaviour is added either by changing the code or applying distributed patch files. The project is written in Zig and 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
adAdaptable text editor
LeveeAlso known as Captain Video
xviPortable multi-file text editor

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted