{"id":13598938,"url":"https://github.com/fioncat/otree","last_synced_at":"2025-05-15T17:09:12.106Z","repository":{"id":239576106,"uuid":"799161509","full_name":"fioncat/otree","owner":"fioncat","description":"A command line tool to view objects (JSON/YAML/TOML) in TUI tree widget.","archived":false,"fork":false,"pushed_at":"2025-05-05T10:30:01.000Z","size":516,"stargazers_count":356,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-10T02:52:08.510Z","etag":null,"topics":["cli","json","toml","treeview","tui","yaml"],"latest_commit_sha":null,"homepage":"","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/fioncat.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}},"created_at":"2024-05-11T10:39:35.000Z","updated_at":"2025-05-08T03:58:01.000Z","dependencies_parsed_at":"2024-05-20T02:36:14.126Z","dependency_job_id":null,"html_url":"https://github.com/fioncat/otree","commit_stats":null,"previous_names":["fioncat/otree"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fioncat%2Fotree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fioncat%2Fotree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fioncat%2Fotree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fioncat%2Fotree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fioncat","download_url":"https://codeload.github.com/fioncat/otree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384989,"owners_count":22062422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","json","toml","treeview","tui","yaml"],"created_at":"2024-08-01T17:00:58.273Z","updated_at":"2025-05-15T17:09:07.098Z","avatar_url":"https://github.com/fioncat.png","language":"Rust","funding_links":[],"categories":["Rust","💻 Apps"],"sub_categories":["🚀 Productivity and Utilities"],"readme":"# OTree - Object Tree TUI Viewer\n\n![screenshot](assets/screenshot.png)\n\nA command line tool to view objects (JSON/YAML/TOML) in TUI tree widget.\n\n## Install\n\nDownload binary files from [release page](https://github.com/fioncat/otree/releases).\n\nYou can also build it from source (require `cargo` installed):\n\n```bash\ncargo install --git https://github.com/fioncat/otree\n```\n\n### Arch Linux (AUR)\n\nYou can install `otree` from the [AUR](https://aur.archlinux.org/packages/otree) with using an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers).\n\n```bash\nparu -S otree\n```\n\n### macOS and Linux (Homebrew)\n\nYou can install [`otree`](https://formulae.brew.sh/formula/otree) using [Homebrew](https://brew.sh).\n\n```bash\nbrew install otree\n```\n\n## Usage\n\nOpen a JSON/YAML/TOML file in TUI tree viewer:\n\n```bash\notree /path/to/file.json\notree /path/to/file.yaml\notree /path/to/file.toml\n```\n\nFor more command usage, please run `otree --help`.\n\nYou can configure TUI keys, colors, and more in `~/.config/otree.toml`, the default configuration is [here](config/default.toml).\n\nFor all available actions and their default key bindings, please refer to: [All Available Actions](docs/actions.md).\n\nFor how to configure TUI colors, please refer to: [Colors Document](docs/colors.md).\n\n## Features\n\n- [x] UI: Header (v0.1)\n- [x] UI: Tree Overview (v0.1)\n- [x] UI: Data Block (v0.1)\n- [x] UI: Footer to show current root and identify (and other messages) (v0.2)\n- [ ] UI: Filter Input\n- [x] UI: Popup widget to show error or help messages (v0.2)\n- [x] Action: Change current selected item as root (v0.1)\n- [x] Action: Back to previous root (v0.1)\n- [x] Action: Scale up/down tree widget (v0.1)\n- [x] Action: Mouse click actions\n- [x] Action: Mouse scroll actions\n- [ ] Action: Mouse select actions\n- [x] Action: Open current selected item in editor **ReadOnly** (v0.2)\n- [x] Action: Switch between tree overview and data block (v0.1)\n- [x] Action: Jump to parent item (v0.1)\n- [x] Action: Jump to parent item and close (v0.1)\n- [ ] Action: Expand selected item's children\n- [ ] Action: Expand all items\n- [x] Action: Close all opened items (v0.1)\n- [ ] Action: Filter items, highlight searching keywords\n- [ ] Action: Popup to show help messages\n- [x] Action: Clipboard support, copy current item's content (might need to call external program like `wl-copy`, `pbcopy`) (v0.2)\n- [x] Syntax highlighting in data block (v0.2)\n- [x] Allow user to customize TUI colors and key bindings (and other things you can imagine) (v0.1)\n- [ ] **Filter items! (Like [jnv](https://github.com/ynqa/jnv))**\n- [x] With `--debug` flag, write some debug logs to a file (v0.4)\n\nIf you have any great ideas, please create an issue, thanks!\n\n## Thanks\n\nI created this tool to better view those super deep YAML files of Kubernetes while [jnv](https://github.com/ynqa/jnv) only supports JSON.\n\nThis is based on the amazing TUI framework [ratatui](https://github.com/ratatui-org/ratatui) and its tree widget [tui-tree-widget](https://github.com/EdJoPaTo/tui-rs-tree-widget.git).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffioncat%2Fotree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffioncat%2Fotree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffioncat%2Fotree/lists"}