Written by
in
A cat(1) clone with wings. https://github.com/sharkdp/bat 1,556 forks. 58,825 stars. 356 open issues. Recent commits: Merge pull request #3737 from truffle-dev/fix/zsh-completion-language-onlyfix: only offer language names in zsh tab completion for `-l`, GitHub fix(zsh): drop redundant awk pipeline in language completion`bat –list-languages` already emits each entry in `name:matchers`form, which is the format `_describe` consumes directly. The previousawk script split each line on `:` and re-emitted `$1:$2`, which isbyte-identical to the input.Verified with `diff <(bat –list-languages) <(bat –list-languages |awk -F: '{ printf("%s:%s\n", $1, $2) }')` against the currentsyntax set., truffle fix: reference PR number in changelog entry, truffle 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 acompletion candidate, including the second column. That column listsfile matchers, which can be plain extensions (`rs`), globs (`*.rs`),absolute paths (`/etc/profile`), or filenames (`Containerfile`). Noneof those parse as `-l` arguments, so completing them produces`unknown syntax` errors.Switch to splitting on `:` only and emit the language name as thecompletion value with the file-matcher list as its description, whichmatches the bash completion's behavior.Closes #3735., truffle Merge pull request #3734 from kimjune01/fix/zsh-completion-force-plainfix: pass –color=never –decorations=never in zsh completions, GitHub
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy.
Leave a Reply