Repository navigation
🎉 First release
taco turns file paths in terminal output into clickable OSC 8 hyperlinks. Pipe git, diff or grep output through it and every recognised path opens in your editor, at the right line when the input carries one. One Python file, standard library only.
⚡ Clickable diff and grep output
- Wide line-shape coverage —
diff --git,---/+++,Binary files,rename/copy,git log --stat,git status --porcelain, hunk headers,grep path:line:textand bare paths. - Line-aware links —
grepmatches and hunk headers jump to the first changed line of the new file, not just the top of the file. - Repository-scoped resolution — relative paths resolve against the Git root, and paths that escape it are left untouched.
⚡ Editor integration
- Presets for 11 editors — Atom, VS Code, Emacs, Nano, PhpStorm, PyCharm, PyCharm Community, Sublime Text, Vim, WebStorm and Windsurf.
- Persistent choice — one preset flag writes the template to
~/.config/TangoMan75/taco/config.json; later runs reuse it. - One-off templates —
--templateaccepts any URL scheme with{path}/{file}and optional{line}placeholders, without touching the config.
⚡ Safe by design
- Idempotent — output that already contains OSC 8 sequences is passed through, so
taco | tacois a no-op after the first pass. - Non-destructive paging — colours and hyperlinks survive
less -R, and redirected output is never paged. - No crash on bad input — malformed configs, missing pagers and broken pipes are reported or ignored, never fatal.
📡 Recognised line shapes
- Diff headers:
diff --git a/x b/x,--- a/x,+++ b/x,Binary files a/x and b/x differ. - Git metadata:
rename from/rename to,copy from/copy to,git log --statrows andgit status --porcelaincolumns. - Hunks:
@@ -old[,n] +new[,n] @@links to the current file at the first modified line of the new file. - Search results:
path:line: textfromgrep -nandgit grep -n. - Plain paths: a line that is nothing but a path is linked whole.
Commit messages, hunk content and unrecognised text pass through byte-for-byte. /dev/null is never linked.
📦 Install
git clone https://github.com/TangoMan75/taco.git
cd taco
./entrypoint installThe installer copies taco.py to /usr/bin/taco (using sudo when needed) and sets git config --global core.pager 'taco', so Git output is filtered automatically from then on.
git diff | taco
taco --code # persist the VS Code template
grep -rn foo . | taco --template 'vscode://file/{path}:{line}'
git diff | taco --no-pager🧪 Quality
210 tests passing and ruff clean.