{"id":51844089,"url":"https://github.com/patx/twig","last_synced_at":"2026-07-23T10:00:53.194Z","repository":{"id":364810207,"uuid":"1269298235","full_name":"patx/twig","owner":"patx","description":"Twig is an ultra-minimal GTK3 code editor for Linux","archived":false,"fork":false,"pushed_at":"2026-06-14T14:51:16.000Z","size":830,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T16:47:01.771Z","etag":null,"topics":["code-edit","code-editing","code-editor","editor","ide","text-editing","text-editor","text-editors"],"latest_commit_sha":null,"homepage":"https://harrisonerd.com/twig","language":"Python","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/patx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2026-06-14T14:41:30.000Z","updated_at":"2026-06-14T14:52:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/patx/twig","commit_stats":null,"previous_names":["patx/twig"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/patx/twig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patx%2Ftwig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patx%2Ftwig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patx%2Ftwig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patx%2Ftwig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patx","download_url":"https://codeload.github.com/patx/twig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patx%2Ftwig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35798804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-23T02:00:06.683Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["code-edit","code-editing","code-editor","editor","ide","text-editing","text-editor","text-editors"],"created_at":"2026-07-23T10:00:43.523Z","updated_at":"2026-07-23T10:00:53.185Z","avatar_url":"https://github.com/patx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twig\nTwig is a small GTK code editor intended for lightweight Linux. \nIt focuses on the basics: one file per window, open/save,\nsyntax highlighting, line numbers, find/replace, undo/redo, dirty indicators,\nand save-before-close prompts.\n\n\n## Dependencies\n\nOn Ubuntu or Debian-based systems:\n\n```sh\nsudo apt install python3 python3-gi gir1.2-gtk-3.0 gir1.2-gtksource-4\n```\n\nSome older systems package GtkSourceView 3 instead of 4:\n\n```sh\nsudo apt install gir1.2-gtksource-3.0\n```\n\nFor packaging validation:\n\n```sh\nsudo apt install appstream desktop-file-utils\n```\n\n## Run\n\n```sh\n./twig.py\n./twig.py path/to/file.py\n```\n\n## Install\n\n```sh\nsudo make install\n```\n\nInstall somewhere else:\n\n```sh\nmake install PREFIX=\"$HOME/.local\"\n```\n\nUninstall:\n\n```sh\nsudo make uninstall\n```\n\nBuild a Debian package:\n\n```sh\nmake deb\n```\n\nBuild the Flatpak for Flathub testing:\n\n```sh\nflatpak install --user flathub org.flatpak.Builder\nflatpak run org.flatpak.Builder --force-clean --user --install --install-deps-from=flathub build-dir io.github.patx.twig.yml\nflatpak run io.github.patx.twig\n```\n\nThe Flatpak manifest expects the `v0.1.1` tag to exist on\n`https://github.com/patx/twig.git` before it is submitted to Flathub.\n\n## Shortcuts\n\nTwig intentionally has no toolbar or menu bar. Use these keyboard shortcuts:\n\n| Shortcut | Action |\n| --- | --- |\n| `Ctrl+N` or `Ctrl+T` | Open a new empty editor window |\n| `Ctrl+O` | Open one or more files |\n| `Ctrl+S` | Save the current file |\n| `Ctrl+Shift+S` | Save the current file as a new path |\n| `Ctrl+W` | Close the current window |\n| `Ctrl+P` | Print |\n| `Ctrl+Q` | Quit Twig, prompting for unsaved files |\n| `Ctrl+Z` | Undo |\n| `Ctrl+Shift+Z` | Redo |\n| `Ctrl+X` | Cut |\n| `Ctrl+C` | Copy |\n| `Ctrl+V` | Paste |\n| `Ctrl+A` | Select all |\n| `Ctrl+D` | Delete the selected lines or current line |\n| `Ctrl+F` | Open or focus Find and Replace |\n| `Ctrl+G` | Find next match |\n| `Ctrl+Shift+G` | Find previous match |\n| `Ctrl+R` | Open Find and Replace with the replace field focused |\n| `Ctrl+J` | Jump to line |\n| `Ctrl++` | Increase editor font size |\n| `Ctrl+-` | Decrease editor font size |\n| `Tab` with selected lines | Indent selected lines with spaces |\n| `Shift+Tab` with selected lines | Unindent selected lines |\n| `Enter` in Find | Find next match |\n| `Enter` in Replace | Replace current match |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatx%2Ftwig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatx%2Ftwig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatx%2Ftwig/lists"}