trix-ide
v0.3.2
Published
A terminal-native IDE built with Textual
Downloads
30
Readme
████████╗██████╗ ██╗██╗ ██╗
╚══██╔══╝██╔══██╗██║╚██╗██╔╝
██║ ██████╔╝██║ ╚███╔╝
██║ ██╔══██╗██║ ██╔██╗
██║ ██║ ██║██║██╔╝ ██╗
╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝Preview
┌─────────────────────────────────────────────────────────────┐
│ ✦ TRIX /home/user/project Ayu Dark │
├──────────────┬──────────────────────────────────────────────┤
│ ── Explorer ─┴─ Editor ─────────────────────────────────── │
│ 📂 . │ #!/usr/bin/env python3 │
│ ├── src/ │ │
│ │ ├── main. ▶│ import sys │
│ │ ├── util. │ from pathlib import Path │
│ │ └── trix. │ │
│ ├── tests/ │ def main(): │
│ ├── README.m │ print("Hello, Trix!") │
│ ├── pyprojec │ │
│ └── .git/ │ Ln 5 Col 1 Python 🌿 main │
├──────────────┴──────────────────────────────────────────────┤
│ ^Q Quit F1 Help ^G Git ^T Theme ^B Files ^O Open ^S │
└─────────────────────────────────────────────────────────────┘Features
▸ Syntax highlighting — 20+ languages, tree-sitter powered
▸ Undo / Redo — Ctrl+Z / Ctrl+Y
▸ Search in file — real-time matches, ↑↓ navigate
▸ Save — Ctrl+S, dirty dot (●) indicator
▸ Line numbers — gutter with active line highlight
▸ Toggle comment — Ctrl+_ on current line
▸ Duplicate line — Ctrl+D
▸ Select all — Ctrl+A
▸ Copy selection — Ctrl+Shift+C
▸ File tree — Nerd Font icons for 130+ file types
▸ Open folder — Ctrl+O, full directory navigation
▸ Create file — dialog with auto parent dir creation
▸ Rename — F2, updates open tabs automatically
▸ Delete — Del with confirmation dialog
▸ Multi-tab — Ctrl+Tab / Ctrl+Shift+Tab nav
▸ Close tab — Ctrl+W, dirty-file confirmation
▸ Git status badges — M A D ?? color-coded
▸ Reload tree — Ctrl+R
▸ 10 themes — Ayu, Dracula, One Dark, Tokyo Night, Catppuccin, Nord, Everforest, Midnight Blue
▸ Zen mode — Ctrl+\, full-screen focus
▸ Click to focus — click any panel, it gets keyboard focus
▸ Help screen — F1, all shortcuts listed
▸ Bottom bar — clickable shortcuts with key hints
▸ Splash screen — animated logo fill, loading status
▸ Command palette — Ctrl+P, search any action
▸ Toast notifications — info, warning, error
▸ Theme picker — Ctrl+Shift+T, live preview
Installation
pip install trix-idepipx install trix-ideuv tool install trix-idenpm install -g trix-idebrew tap Zarl-prog/trix https://github.com/Zarl-prog/Trix-TUI
brew install Zarl-prog/trix/trix-ideRun trix to start.
Keyboard Shortcuts
Project Structure
app.py # Entry point — run()
main.py # Main app, screens, widgets, bindings, actions
screens.py # All modal dialogs: Help, Confirm, New/Rename,
# Folder picker, Splash, Theme picker
themes.py # 10 theme definitions + dynamic CSS builders
search_widget.py # Inline editor search + global file search
git_menu_screen.py # Full Git UI: commit, push, history accordion
syntax_setup.py # Extra tree-sitter language registration
pyproject.toml # Package metadata, dependencies, entry pointTech Stack
Textual — Terminal app framework. Powers layout, event system, CSS engine, and the command palette.
Python — Cross-platform runtime, zero-compile install, launches in under a second.
Tree-Sitter — Incremental parsing for accurate syntax highlighting across 20+ languages.
Rich — Terminal styling for labels, badges, and markdown rendering in dialogs.
Roadmap
Contributing
git clone https://github.com/Zarl-prog/Trix-TUI
pip install -e .
trixSubmit a PR at github.com/Zarl-prog/Trix-TUI.
Built with ❤️ by Asim · Give it a ⭐ if you find it useful
