1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-04 19:01:44 +00:00
Files
sharkdp--bat/assets/completions
truffle 5f952066fb fix: only offer language names in zsh tab completion for -l
The previous awk script in `bat.zsh.in` split each line of
`bat --list-languages` on `:` or `,` and emitted every field as a
completion candidate, including the second column. That column lists
file matchers, which can be plain extensions (`rs`), globs (`*.rs`),
absolute paths (`/etc/profile`), or filenames (`Containerfile`). None
of those parse as `-l` arguments, so completing them produces
`unknown syntax` errors.

Switch to splitting on `:` only and emit the language name as the
completion value with the file-matcher list as its description, which
matches the bash completion's behavior.

Closes #3735.
2026-05-10 09:19:54 +00:00
..
2026-03-03 05:18:49 +02:00
2026-03-03 05:18:49 +02:00
2026-03-03 05:18:49 +02:00