{"id":48007615,"url":"https://github.com/towry/path-git-format","last_synced_at":"2026-04-04T13:25:32.473Z","repository":{"id":220101774,"uuid":"750758233","full_name":"towry/path-git-format","owner":"towry","description":"Cli tool to format paths from stdin with git branch information","archived":false,"fork":false,"pushed_at":"2024-05-24T01:38:03.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T20:22:37.032Z","etag":null,"topics":["autojump","cli","fzf-addons","rust","zoxide"],"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/towry.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-01-31T09:04:59.000Z","updated_at":"2024-05-24T01:38:05.000Z","dependencies_parsed_at":"2024-01-31T10:28:21.513Z","dependency_job_id":"6b1cc98c-5440-45b6-98f1-5bfe6ce80c58","html_url":"https://github.com/towry/path-git-format","commit_stats":null,"previous_names":["towry/path-git-format"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/towry/path-git-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towry%2Fpath-git-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towry%2Fpath-git-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towry%2Fpath-git-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towry%2Fpath-git-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/towry","download_url":"https://codeload.github.com/towry/path-git-format/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towry%2Fpath-git-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["autojump","cli","fzf-addons","rust","zoxide"],"created_at":"2026-04-04T13:25:31.751Z","updated_at":"2026-04-04T13:25:32.450Z","avatar_url":"https://github.com/towry.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/towry/path-git-format/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/towry/path-git-format/actions/workflows/ci.yml) ![GitHub Release](https://img.shields.io/github/v/release/towry/path-git-format) ![GitHub top language](https://img.shields.io/github/languages/top/towry/path-git-format)\n\n# path-git-format\n\nCli tool to format path(s) with version control information.\n\nSupports:\n- **Git** repositories - displays branch names\n- **Jujutsu (jj)** repositories - displays bookmark names\n\n## Usage\n\n```\nprintf \"$PWD\" | path-git-format --format \"{path}: {branch}\" | fzf\n```\n\n### Use with zoxide query | [tldr; fish script](./extension/zoxide-path-git-format.fish)\n\n[zoxide](https://github.com/ajeetdsouza/zoxide)'s `query` command returns list of paths:\n\n```\nzoxide query --list --score\n```\n\noutput:\n\n```txt\n100 /Users/towry/projects/a\n80  /Users/towry/projects/b\n01  /Users/towry/projects/c\n```\n\nWe can use `path-git-format` to format those paths with VCS branch/bookmark information.\n\n```bash\nzoxide query --list --score | path-git-format --nth 1 --format \"{path}: {branch}\" | fzf\n```\n\nSo you can use it with `fzf` to search paths along with git branch or jj bookmark information.\n\n## Features\n\n- **Git Support**: Automatically detects Git repositories and displays the current branch\n- **Jujutsu Support**: Automatically detects Jujutsu repositories and displays the first bookmark\n- **Fallback**: For non-VCS directories, returns just the path\n- **Filter Option**: Use `--filter` to exclude paths without VCS information\n\n## Install\n\n### Install binary release\n\n1. [Visit the Release page to download the appropriate tarball for your system](https://github.com/towry/path-git-format/releases)\n2. Extract the binary file and put it under your `$PATH` like `/user/local/bin`.\n\n### Prerequisites\n\n- cargo\n- git\n- jj (optional, for Jujutsu repository support)\n\n### Install with cargo\n\n```\ncargo install --git https://github.com/towry/path-git-format\n```\n\n### Build and Install from source\n\n```bash\ngit clone --depth=1 git@github.com:towry/path-git-format.git\ncd path-git-format\n# will install `path-git-format` into `/usr/local/bin`\nmake install\n```\n\n## Snippets\n\nSee [extension/](./extension)\n\n- `zoxide-path-git-format.fish`: fish functions to quickly jump to folder with git\n  branch fuzzy match.\n- `nvim-fzf-lua-zoxide-folders.lua`: In neovim, you can open fzf-lua folders\n  picker with zoxide integration, to quickly change cwd like you does in\n  terminal.\n\nVideo presentation:\n\nhttps://github.com/towry/path-git-format/assets/8279858/30c5d166-9a30-4445-ac90-4593fb01fa6c\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftowry%2Fpath-git-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftowry%2Fpath-git-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftowry%2Fpath-git-format/lists"}