Complete in PowerShell #48

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

Part of #44

zfj completion powershell and src/cli/completions/zfj.ps1.

  • Register-ArgumentCompleter -Native -CommandName zfj, zfj.exe. Hands __complete the command's elements up to the cursor, adding an empty one when the cursor is past a space.
  • Each candidate becomes a CompletionResult, with the description as its tooltip.
  • :files / :dirs fall back to PowerShell's own path completion (return nothing, or complete paths explicitly; whichever actually works). An unknown directive is :none.
  • Must work in Windows PowerShell 5.1 as well as pwsh 7, quoting arguments the way native commands receive them on Windows.
  • Joins the shell check with pwsh from nixpkgs: TabExpansion2 on zfj iss and zfj issue list --st.
Part of #44 `zfj completion powershell` and `src/cli/completions/zfj.ps1`. - `Register-ArgumentCompleter -Native -CommandName zfj, zfj.exe`. Hands `__complete` the command's elements up to the cursor, adding an empty one when the cursor is past a space. - Each candidate becomes a `CompletionResult`, with the description as its tooltip. - `:files` / `:dirs` fall back to PowerShell's own path completion (return nothing, or complete paths explicitly; whichever actually works). An unknown directive is `:none`. - Must work in Windows PowerShell 5.1 as well as `pwsh` 7, quoting arguments the way native commands receive them on Windows. - Joins the shell check with `pwsh` from nixpkgs: `TabExpansion2` on `zfj iss` and `zfj issue list --st`.
jeff referenced this issue from a commit 2026-10-23 00:40:20 -05:00
jeff closed this issue 2026-10-23 00:40:20 -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#48
No description provided.