Complete in bash #46

Closed
opened 2026-10-22 23:44:52 -05:00 by jeff · 0 comments
Owner

Part of #44

zfj completion bash and src/cli/completions/zfj.bash.

  • Hands __complete the words up to the cursor (COMP_WORDS / COMP_CWORD), with the current word last, even when it's empty.
  • Drops the descriptions; bash cannot show them.
  • :files / :dirs use compgen -f / compgen -d, with compopt -o filenames so directories get their slash. An unknown directive is :none.
  • Works with plain complete -F and doesn't require the bash-completion package, though it shouldn't fight it.
  • Joins the shell check: zfj iss and zfj issue list --st in bash.
Part of #44 `zfj completion bash` and `src/cli/completions/zfj.bash`. - Hands `__complete` the words up to the cursor (`COMP_WORDS` / `COMP_CWORD`), with the current word last, even when it's empty. - Drops the descriptions; bash cannot show them. - `:files` / `:dirs` use `compgen -f` / `compgen -d`, with `compopt -o filenames` so directories get their slash. An unknown directive is `:none`. - Works with plain `complete -F` and doesn't require the bash-completion package, though it shouldn't fight it. - Joins the shell check: `zfj iss` and `zfj issue list --st` in bash.
jeff referenced this issue from a commit 2026-10-23 00:40:19 -05:00
jeff closed this issue 2026-10-23 00:40:19 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
jeff/zfj#46
No description provided.