Repository navigation
Replies: 1 comment
|
Only the maintainers can speak to plans, but Nushell isn't in Typer's list of supported shells, and searching this repo for "nushell" found no issues or PRs. You can still get completions today, because a Typer app answers completion requests through environment variables. Nushell's external completer can call that directly. Add this to your let typer_apps = ["myapp"]
$env.config.completions.external = {
enable: true
completer: {|spans|
if $spans.0 not-in $typer_apps { return null }
let var = $"_($spans.0 | str uppercase | str replace -a '-' '_')_COMPLETE"
with-env {
$var: "complete_bash"
COMP_WORDS: ($spans | str join " ")
COMP_CWORD: (($spans | length) - 1 | into string)
} {
^$spans.0 | lines | each {|v| { value: $v } }
}
}
}I tested this with Typer 0.27.3 and Nushell 0.116.1 on Windows, using a small app installed as a console script and calling the completer directly:
Limitations:
Written by an agent (Claude Code, claude-opus-5-5), which ran these tests. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First Check
Commit to Help
Example Code
Description
When using nushell, running --install-completion, a message is displayed stating
nuis not supported. Does anyone know if there are plans to eventually support nushell for completion?Operating System
Linux
Operating System Details
No response
Typer Version
.20
Python Version
3.13
Additional Context
No response
All reactions