{"id":33926306,"url":"https://github.com/harehare/mq-tui","last_synced_at":"2026-05-17T06:40:05.369Z","repository":{"id":319670978,"uuid":"1079277410","full_name":"harehare/mq-tui","owner":"harehare","description":"mq-tui is a Text-based User Interface for the mq Markdown processor. ","archived":false,"fork":false,"pushed_at":"2026-02-19T13:52:16.000Z","size":3298,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T17:36:48.653Z","etag":null,"topics":["markdown","mq","rust","termianl","tui"],"latest_commit_sha":null,"homepage":"https://mqlang.org","language":"Rust","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/harehare.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":"2025-10-19T13:41:03.000Z","updated_at":"2026-02-19T13:51:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e192d90-1c5c-4c13-bf6d-822bec82d7d7","html_url":"https://github.com/harehare/mq-tui","commit_stats":null,"previous_names":["harehare/mqt","harehare/mq-tui"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/harehare/mq-tui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harehare%2Fmq-tui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harehare%2Fmq-tui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harehare%2Fmq-tui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harehare%2Fmq-tui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harehare","download_url":"https://codeload.github.com/harehare/mq-tui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harehare%2Fmq-tui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29681468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T12:30:22.644Z","status":"ssl_error","status_checked_at":"2026-02-21T12:29:55.402Z","response_time":107,"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":["markdown","mq","rust","termianl","tui"],"created_at":"2025-12-12T10:09:55.341Z","updated_at":"2026-02-28T16:01:00.759Z","avatar_url":"https://github.com/harehare.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003emq-tui\u003c/h1\u003e\n\n[![ci](https://github.com/harehare/mq-tui/actions/workflows/ci.yml/badge.svg)](https://github.com/harehare/mq-tui/actions/workflows/ci.yml)\n[![mq language](https://img.shields.io/badge/mq-language-orange.svg)](https://github.com/harehare/mq)\n\n\u003cdiv align=\"center\"\u003e\n\nInteractive terminal interface for querying and manipulating Markdown content\n\n![demo](./assets/demo.gif)\n\n\u003c/div\u003e\n\n## Overview\n\n`mq-tui` is a Text-based User Interface for the [mq](https://github.com/harehare/mq) Markdown processor. It provides an interactive terminal experience for querying, filtering, and exploring Markdown documents using the mq query language.\n\n### Key Features\n\n- 🔍 **Interactive Query Mode** - Real-time Markdown querying with instant results\n- 🌳 **Tree View** - Visual exploration of Markdown document structure\n- ⚡ **Vim-style Navigation** - Efficient keyboard shortcuts (j/k, hjkl)\n- 📋 **Clipboard Integration** - Copy results directly to clipboard\n- 🎨 **Syntax Highlighting** - Color-coded display of different Markdown elements\n- 📖 **Detail View** - Inspect individual elements in depth\n- 🔄 **Query History** - Navigate through previous queries\n- 🎯 **fx-inspired UX** - Familiar interface for JSON query tool users\n\n## Installation\n\n### Using the Installation Script (Recommended)\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/harehare/mq-tui/main/bin/install.sh | bash\n# Install from crates.io\ncargo install mq-tui\n# Install using binstall\ncargo binstall mq-tui@0.1.3\n```\n\nThe installer will:\n- Download the latest release for your platform\n- Verify the binary with SHA256 checksum\n- Install to `~/.mq-tui/bin/`\n- Update your shell profile (bash, zsh, or fish)\n\nAfter installation, restart your terminal or run:\n```bash\nsource ~/.bashrc  # or ~/.zshrc, or ~/.config/fish/config.fish\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/harehare/mq-tui.git\ncd mq-tui\ncargo build --release\n# Binary will be at target/release/mq-tui\n```\n\n### Supported Platforms\n\n- **Linux**: x86_64, aarch64\n- **macOS**: x86_64 (Intel), aarch64 (Apple Silicon)\n- **Windows**: x86_64\n\n## Usage\n\n### Basic Usage\n\n```bash\n# Open a Markdown file\nmq-tui README.md\n```\n\n### Query Examples\n\nOnce in the TUI, press `:` to enter query mode and try these queries:\n\n```mq\n# Select all headings\n.h\n\n# Select level 2 headings\n.h | select(.depth == 2)\n\n# Select all links\n.link\n\n# Select code blocks with specific language\n.code | select(.lang == \"rust\")\n\n# Select list items\n.list\n\n# Complex filtering\n.h | select(.depth \u003e= 2 and .depth \u003c= 3)\n```\n\n## Key Bindings\n\n### Normal Mode\n\n| Key         | Action                               |\n| ----------- | ------------------------------------ |\n| `q` / `Esc` | Quit the application                 |\n| `:`         | Enter query mode                     |\n| `?` / `F1`  | Show help screen                     |\n| `t`         | Toggle tree view mode                |\n| `d`         | Toggle detail view for selected item |\n| `y`         | Copy results to clipboard            |\n| `Ctrl+L`    | Clear current query                  |\n\n### Navigation\n\n| Key        | Action               |\n| ---------- | -------------------- |\n| `↑` / `k`  | Move up              |\n| `↓` / `j`  | Move down            |\n| `PageUp`   | Page up (10 items)   |\n| `PageDown` | Page down (10 items) |\n| `Home`     | Jump to first item   |\n| `End`      | Jump to last item    |\n\n### Query Mode\n\n| Key                    | Action                                  |\n| ---------------------- | --------------------------------------- |\n| `Enter`                | Execute query and return to normal mode |\n| `Esc`                  | Exit query mode without executing       |\n| `↑` / `↓`              | Navigate query history                  |\n| `←` / `→`              | Move cursor in query string             |\n| `Home` / `End`         | Jump to start/end of query              |\n| `Backspace` / `Delete` | Edit query text                         |\n\n### Tree View Mode\n\n| Key               | Action               |\n| ----------------- | -------------------- |\n| `↑` / `k`         | Move up in tree      |\n| `↓` / `j`         | Move down in tree    |\n| `Enter` / `Space` | Expand/collapse node |\n| `Esc` / `t`       | Exit tree view       |\n| `?` / `F1`        | Show help            |\n\n## Modes\n\n### Normal Mode\n\nDefault mode for navigating and viewing query results. Use arrow keys or Vim-style navigation to browse through results.\n\n### Query Mode\n\nActivated by pressing `:`. Type your mq query and press Enter to execute. The query is evaluated in real-time as you type.\n\n### Tree View Mode\n\nActivated by pressing `t`. Displays the Markdown document structure as an expandable tree, showing the hierarchy of headings, lists, and other elements.\n\n### Help Mode\n\nActivated by pressing `?` or `F1`. Displays all available keyboard shortcuts and commands.\n\n## Features in Detail\n\n### Real-time Query Execution\n\nQueries are executed as you type, providing immediate feedback and results.\n\n### Detail View\n\nPress `d` to toggle between list view and split view. In split view, the left pane shows the result list while the right pane displays detailed information about the selected item.\n\n### Query History\n\nAll executed queries are saved in history. Use `↑` and `↓` in query mode to navigate through previous queries.\n\n### Clipboard Support\n\nPress `y` to copy the current query results to your system clipboard in Markdown format.\n\n### Tree Visualization\n\nThe tree view mode provides a visual representation of your Markdown document's structure, with color-coded elements:\n\n- 🔵 **Blue**: Headings\n- 🟢 **Green**: Lists\n- 🔴 **Red**: Math expressions\n- 🟣 **Magenta**: Links\n- 🟡 **Yellow**: Images\n- 🔵 **Cyan**: Code blocks\n\n## Configuration\n\n`mq-tui` works out of the box with sensible defaults. The UI adapts to your terminal's color scheme and size.\n\n## Related Projects\n\n- [mq](https://github.com/harehare/mq) - The underlying Markdown query processor\n- [mq-view](https://github.com/harehare/mq-view) - Markdown viewer with syntax highlighting\n- [mqlang.org](https://mqlang.org) - Documentation and language reference\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues or pull requests.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharehare%2Fmq-tui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharehare%2Fmq-tui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharehare%2Fmq-tui/lists"}