Skip to main content

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:

  1. Run ./scripts/install-launchd.sh to copy the plist to ~/Library/LaunchAgents/ (substitutes your binary path automatically).
  2. Edit the installed plist to change watched paths (default: ~/projects).
  3. Load: launchctl load ~/Library/LaunchAgents/com.finder-git-viz.plist
  4. 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

finder_git_viz-0.3.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finder_git_viz-0.3.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

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

Hashes for finder_git_viz-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fd8620937cae65fefb44a152aa7810b078f3598471925b450f45d844bcb8a7f0
MD5 b378977eb11f58488729fc521a67e014
BLAKE2b-256 7f1ba4b372ee728193e549e123f9de2780549bc1554358672f174403bf9f6ae1

See more details on using hashes here.

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

Hashes for finder_git_viz-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0519364af5e421a1ceb6ae739779485bd68c8609c630e278d37d952740966425
MD5 d30e348e00ac4e05a26fc87c64843bba
BLAKE2b-256 93f989b071c567711fa4db13c62d60966a75bb0feb778d236ffe80620e09cb65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page