Finder colored tags based on git status
Project description
finder-git-viz
Finder colored tags based on git status. Monitors directories and updates Finder tags to reflect git state (clean, uncommitted changes, untracked, etc.).
Installation
uv tool install finder-git-viz
# or
pipx install finder-git-viz
Usage
-
One-shot (update tags once and exit):
finder-git-viz /path/to/projects -
Watch mode (monitor and update on file changes):
finder-git-viz --watch /path/to/projects
-
Undo (remove all
git:tags from repos):finder-git-viz --undo /path/to/projects
Preserves other tags; only removes tags starting with
git:.
Config
Config file: ~/.findergitvizconfig or <repo>/.findergitvizconfig. Set FINDER_GIT_VIZ_CONFIG to override.
Include globs — which files trigger a refresh (default: ["**"]):
[include]
globs = ["**"]
Scan mode — how repos are discovered under watched paths:
[scan]
# strict | one_level | greedy | layout
mode = "one_level"
layouts = [
{ path_name = "all_projects_folder", repo_pattern = "subprojects_folder/*/*/.git" }
]
See findergitvizconfig.example for a full example.
launchd (run at login)
To run the watcher at login:
- Run
./scripts/install-launchd.shto copy the plist to~/Library/LaunchAgents/(substitutes your binary path automatically). - Edit the installed plist to change watched paths (default:
~/projects). - Load:
launchctl load ~/Library/LaunchAgents/com.finder-git-viz.plist - Unload:
launchctl unload ~/Library/LaunchAgents/com.finder-git-viz.plist
Logs: /tmp/finder-git-viz.log and /tmp/finder-git-viz.err.
macOS only
Requires macOS for Finder tags and xattr.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file finder_git_viz-0.3.0.tar.gz.
File metadata
- Download URL: finder_git_viz-0.3.0.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd8620937cae65fefb44a152aa7810b078f3598471925b450f45d844bcb8a7f0
|
|
| MD5 |
b378977eb11f58488729fc521a67e014
|
|
| BLAKE2b-256 |
7f1ba4b372ee728193e549e123f9de2780549bc1554358672f174403bf9f6ae1
|
File details
Details for the file finder_git_viz-0.3.0-py3-none-any.whl.
File metadata
- Download URL: finder_git_viz-0.3.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0519364af5e421a1ceb6ae739779485bd68c8609c630e278d37d952740966425
|
|
| MD5 |
d30e348e00ac4e05a26fc87c64843bba
|
|
| BLAKE2b-256 |
93f989b071c567711fa4db13c62d60966a75bb0feb778d236ffe80620e09cb65
|