Skip to content

Releases

0.1.0

Choose a tag to compare

@TangoMan75 TangoMan75 released this 03 Dec 16:12

🎉 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:text and bare paths.
  • Line-aware links — grep matches 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 — --template accepts 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 | taco is 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 --stat rows and git status --porcelain columns.
  • Hunks: @@ -old[,n] +new[,n] @@ links to the current file at the first modified line of the new file.
  • Search results: path:line: text from grep -n and git 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 install

The 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.