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.1.0.tar.gz (28.7 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.1.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file finder_git_viz-0.1.0.tar.gz.

File metadata

  • Download URL: finder_git_viz-0.1.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.16

File hashes

Hashes for finder_git_viz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 144aeed959a6465fd7177a0ac0e07d0cafc9932da8b48951f6be5689eb6509eb
MD5 acd108a9ca6291a9ff4bece075b41d72
BLAKE2b-256 1d5047bed228374a5afb5525e5b60a5ec4cee97a81c4888130ea4a81f4a21f19

See more details on using hashes here.

File details

Details for the file finder_git_viz-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for finder_git_viz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a17a1a15a6d28585d918546a047b6a9987a5de6dfa28097fd8c7f6ca6ebea3
MD5 075fce3bfc933a623d53fb1c8936fdca
BLAKE2b-256 fa8472e951b23d55d3e39d2cefea01d88fef6c956a2673e7b856d34835798b89

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