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.2.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.2.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: finder_git_viz-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 1dd0f6ed7a139b62960543b2dc19cff02a2ed781d79032edbdad86c79fc7cdd1
MD5 b20b1515d08e3f3c0d72e14de6a9719c
BLAKE2b-256 eade531402aedd9b19247d22373be35794f2e8d55b60595996577e8050eea1ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finder_git_viz-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd841137046dcdb998ad285e4e873c588aa27c0caaab38cf7c9172a689c98f2
MD5 802bcc08742acc816e830b746a66a6ab
BLAKE2b-256 9897fbc0c780e495ebf7ebc8aeed6e9fcb1b1608b2ac706932582425dc698e98

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