{"id":29800034,"url":"https://github.com/ivanjermakov/hat","last_synced_at":"2026-05-19T09:02:18.836Z","repository":{"id":295667742,"uuid":"989194561","full_name":"ivanjermakov/hat","owner":"ivanjermakov","description":"Hackable modal text editor for modern terminals","archived":false,"fork":false,"pushed_at":"2025-10-27T11:53:15.000Z","size":1997,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-27T13:29:01.897Z","etag":null,"topics":["lsp","suckless","text-editor","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanjermakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-23T17:56:49.000Z","updated_at":"2025-10-27T11:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cacaea2-bdd5-4789-9cc9-24968048d42d","html_url":"https://github.com/ivanjermakov/hat","commit_stats":null,"previous_names":["ivanjermakov/hat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivanjermakov/hat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fhat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fhat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fhat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fhat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanjermakov","download_url":"https://codeload.github.com/ivanjermakov/hat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanjermakov%2Fhat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33209405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lsp","suckless","text-editor","tree-sitter"],"created_at":"2025-07-28T09:00:59.910Z","updated_at":"2026-05-19T09:02:18.830Z","avatar_url":"https://github.com/ivanjermakov.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hat\n\nHat is a **ha**ckable modal **t**ext editor for modern terminals.\n\n| ![Screenshot select](./img/screenshot-select.png) | ![Screenshot select](./img/screenshot-find.png) |\n|-----------------------------|-----------------------------|\n| ![Screenshot completion](./img/screenshot-cmp.png) | ![Screenshot diagnostics](./img/screenshot-diagnostics.png) |\n\n## Features\n\n### Core functionality\n\n- Modal text editing\n    * Normal, select, select line, and insert modes\n    * Basic motions (vim's `e` `y` `o` `p` `a` `d` `D` `f` `c` `C` `b` `^` `$` `0` `=` `J` `gJ` `*` `#` etc.)\n    * Unlimited undo/redo\n    * System clipboard copy \u0026 paste (using `xclip`)\n    * Find in buffer\n- Text automation\n    * Run external command on selection\n    * Dot repeat last change\n    * Multi repeat\n    * Macros\n- [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) syntax awareness\n    * Syntax highlighting (24 bit color)\n    * Indent alignment\n- [LSP](https://microsoft.github.io/language-server-protocol/) support\n    * Go to definition\n    * Find references\n    * Diagnostics\n    * Completions w/ documentation\n    * Hover\n    * Rename\n- Multi buffer\n    * Buffer management\n    * Find file\n    * Find in files\n- Scratch buffers\n- Unicode support\n- `--printer` mode\n\n### Functionality available in patches\n\n| Done | Name                      | Link                                                  |\n| ---- | ------------------------  | ----------------------------------------------------- |\n| ✔️   | LSP highlight             | [patch/lsp-highlight](/patch/lsp-highlight)           |\n| ✔️   | LSP code action           | [patch/lsp-code-action](/patch/lsp-code-action)       |\n| ✔️   | LSP formatting            | [patch/lsp-formatting](/patch/lsp-formatting)         |\n| ✔️   | Git hunk markers          | [patch/git-signs](/patch/git-signs)                   |\n| ✔️   | Tree-sitter symbol picker | [patch/ts-symbol-picker](/patch/ts-symbol-picker)     |\n| ✔️   | Buffer centering          | [patch/buffer-centering](/patch/buffer-centering)     |\n| ✔️   | Autosave                  | [patch/autosave](/patch/autosave)                     |\n| ✔️   | Relative line numbers     | [patch/relative-number](/patch/relative-number)       |\n| ✔️   | Auto-indent               | [patch/auto-indent](/patch/auto-indent)               |\n| 🚧   | Windows support           |                                                       |\n| 🚧   | MacOS support             |                                                       |\n| 🚧   | Wayland support           |                                                       |\n| 🚧   | Persistent undo           |                                                       |\n| 🚧   | Persistent macros         |                                                       |\n| 🚧   | Surround actions          |                                                       |\n| 🚧   | Case actions              |                                                       |\n| 🚧   | Marks                     |                                                       |\n| 🚧   | Comments                  |                                                       |\n| 🚧   | List mode (fill chars)    |                                                       |\n\n## Philosophy\n\nSoftware is:\n- doing not more and not less than what the user needs\n    * Every feature is implemented in the most simple and straightforward form: keep it simple, fast, and clear\n- made for users capable of reading and customizing its source code\n    * Source code can be read by users in one evening\n    * External configuration is not necessary and discouraged\n    * User manual documentation is not necessary, _hacking_ documentation is encouraged (via [`HACKING.md`](HACKING.md))\n- distributed as source code, compiled by the user\n- not meant to be developed forever and its final state should be described by its feature set from\nthe beginning\n- extended either by the user directly, or by applying [source code patches](https://en.wikipedia.org/wiki/Patch_(computing)#Source_code_patching)\ndistributed as diff files\n    * It is encouraged to share your extensions with others who can find it useful\n\nSee [Hackable software](http://blog.ivnj.org/post/hackable-software.html) for details.\n\n## Build, install, usage, configuration\n\nSee [`HACKING.md`](HACKING.md).\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanjermakov%2Fhat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanjermakov%2Fhat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanjermakov%2Fhat/lists"}