git-repos.toml
1 [metadata] 2 name = "git-repos" 3 requirements = ["fd", "git"] 4 description = """ 5 A channel to select from git repositories on your local machine. 6 7 This channel uses `fd` to find directories that contain a `.git` subdirectory, and then allows you to preview the git log of the selected repository. 8 """ 9 10 [source] 11 # this is a macos version of the command. While perfectly usable on linux, you may want to tweak it a bit. 12 command = "fd -g .git -HL -t d -d 10 --prune ~ -E 'Library' -E 'Application Support' --exec dirname '{}'" 13 display = "{split:/:-1}" 14 15 [preview] 16 command = "cd '{}'; git log -n 200 --pretty=medium --all --graph --color"