On Sat, 26 Jul 2025 08:19:06 +0200 Christian Marillat
<[email protected]> wrote:
Package: glow
Version: 2.0.0-1+b5
Severity: normal
Dear Maintainer,
Please add completion files generated by glow itself.
,----
| $ glow completion
| completions
| bash -- Generate the autocompletion script for bash
| fish -- Generate the autocompletion script for fish
| powershell -- Generate the autocompletion script for powershell
| zsh -- Generate the autocompletion script for zsh
`----
Hi, looking at completions for glow, I found that:
- bash - completion is already included by 'bash-completion' package
[1]. It's a symlink to a stub that runs `eval -- $($1 completion bash)`.
You can view it locally [2] if you have bash-completion installed.
- zsh - no completion there.
While not there, a quick workaround, is either:
`glow completion zsh > .oh-my-zsh/cache/completions/_glow`
`glow completion zsh > /usr/share/zsh/vendor-completions`
However, IMO, the completion gets in the way slightly as it doesn't
complete files/dirs unless you specify part of their name or './' to get
it started. Not even after '--' does it show files.
The main completions shown for commands {completion,config,help} would
be rarely used as opposed to reading files.
1.
https://salsa.debian.org/debian/bash-completion/-/blob/master/completions/_golangci-lint?ref_type=heads
2. /usr/share/bash-completion/completions/_glow
--
Regards,
Ahmad