Cli tool to format path(s) with git information.
printf "$PWD" | path-git-format --format "{path}: {branch}" | fzf
Use with zoxide query | tldr; fish script
zoxide's query
command returns list of paths:
zoxide query --list --score
output:
100 /Users/towry/projects/a
80 /Users/towry/projects/b
01 /Users/towry/projects/c
We can use path-git-format
to format those paths with git branch information.
zoxide query --list --score | path-git-format --nth 1 --format "{path}: {branch}" | fzf
So you can use it with fzf
to search paths along with git branch.
- Visit the Release page to download the appropriate tarball for your system
- Extract the binary file and put it under your
$PATH
like/user/local/bin
.
- cargo
- git
cargo install --git https://github.com/towry/path-git-format
git clone --depth=1 git@github.com:towry/path-git-format.git
cd path-git-format
# will install `path-git-format` into `/usr/local/bin`
make install
See extension/
zoxide-path-git-format.fish
: fish functions to quickly jump to folder with git branch fuzzy match.nvim-fzf-lua-zoxide-folders.lua
: In neovim, you can open fzf-lua folders picker with zoxide integration, to quickly change cwd like you does in terminal.
Video presentation: