OSC 8 hyperlinks for the terminal

Make every file path clickable.

Pipe git, diff, or grep output through taco and every path becomes a link that opens in your editor — at the right line when the input carries one.

  • Single file
  • Python 3.10+
  • Zero dependencies
Terminal running git diff through taco. The file paths in the diff header and hunk are underlined to show the OSC 8 hyperlinks.
git diff src/acme/routes.py | taco OSC 8 links are underlined in the captures so you can see them.

Why taco

Small tool.
Sharp edges.

No plugins, no daemon, no dependencies. Just a stdin filter that understands the paths your tools already print.

Every common line shape

Diff headers, ---/+++, hunks, binary lines, renames, git status, git log --stat (plain or --graph), grep results, and bare paths.

Line-aware, not just file-aware

Grep matches and hunk headers jump to the first changed line, not just the top of the file. Your editor lands where the action is.

Scoped to your repository

Relative paths resolve against the Git root. Anything that escapes the repository is left untouched instead of becoming a misleading link.

Eleven editor presets

Atom, VS Code, Emacs, Nano, PhpStorm, PyCharm, PyCharm Community, Sublime Text, Vim, WebStorm, and Windsurf. Pick one once; it persists.

Pager-safe by design

Colours and hyperlinks survive less -R. Redirected output is written directly, so git diff | taco > patch.diff still works.

Idempotent, quiet, resilient

Running taco | taco is a no-op. Malformed configs, missing pagers, and broken pipes are reported or ignored — never fatal.

In the wild

Links where you
already look.

These captures come from a small billing service. The dotted underlines are OSC 8 links; without them, the output looks exactly like your terminal.

Search results

Jump straight to the match

grep -n path:line:text and git grep -n output become one line-aware link per result.

Terminal showing grep results piped through taco. Each file path and line number is underlined as a clickable link.
grep -rn "tax" src tests | taco
Git log

Stats that open files

Every row in git log --stat — with or without --graph — is linked, from README.md to the test suite.

Terminal showing git log --stat piped through taco. Every changed file path is underlined as a link.
git log --stat -1 | taco
Working tree

See what changed — and open it

git status --short paths become links without stealing the two status columns.

Terminal showing git status --short piped through taco. Modified and untracked file paths are underlined as links.
git status --short | taco

Get started

One file.
Two commands.

taco.py is a single standard-library script. install puts it on your PATH; config points Git at it. Nothing to install with pip and nothing to keep in sync.

  • Python 3.10+ — the only hard requirement.
  • Git recommended — used to find the repository root automatically.
  • A pager optional — less is the default; any command works.
Read the installation notes
install · config
1 · install the command
$ ./entrypoint.sh install
2 · point Git at taco (optional)
$ ./entrypoint.sh config

install copies taco.py to /usr/bin/taco, using sudo when needed, and leaves your Git config untouched. config then sets the global Git pager to taco, so git output is filtered automatically.

Undo the pager change

Removes core.pager from your global Git config. The taco command stays installed.

$ ./entrypoint.sh unconfig

Daily use

Pipe it. Click it.

Use taco wherever you would use cat. When stdout is a terminal it pages; when it is redirected it stays out of the way.

Common invocations
# review a change
git diff | taco

# browse a history
git log -p | taco

# inspect the working tree
git status | taco

# search a codebase
grep -rn "TODO" . | taco

Pick an editor once

Preset flags persist to ~/.config/TangoMan75/taco/config.json and are reused on every run.

One-off templates

Override the URL for a single run. {path} and {file} are interchangeable; {line} is optional.

grep -rn foo . | taco --template 'vscode://file/{path}:{line}'

Key options

All options on GitHub
FlagDefaultWhat it does
--template URLStored templateOne-off URL template with {path}/{file} and optional {line}.
--code, --vim, …—Use an editor preset and persist it to the config file.
--root PATHGit rootRepository root used to resolve relative paths.
--pager CMD$TACO_PAGER, $PAGER, lessPager used when stdout is a terminal.
--no-pager—Write straight to stdout, even when it is a terminal.