Skip to content

Add completion spec: starship - #426

Open
itsyunnie wants to merge 1 commit into
warpdotdev:mainfrom
itsyunnie:codex/starship-completions
Open

itsyunnie wants to merge 1 commit into
warpdotdev:mainfrom
itsyunnie:codex/starship-completions

Conversation

@itsyunnie

Copy link
Copy Markdown

Closes warpdotdev/warp#4333.

Adds a Starship command spec, including module-name completion for the issue's starship toggle <NAME> workflow. Module names come from the installed Starship's module --list output and are also offered for starship module. The optional second toggle argument is a configuration key, with disabled suggested as its default.

The spec covers the public commands and flags verified against Starship 1.27.0, with shell-name suggestions, directory/file arguments, and preset-name completion from starship preset --list. Hidden and optional-build-feature commands are omitted. Module and preset listing use cross-platform Starship commands without shell pipelines; custom module names can still be entered manually for starship module.

Validation:

  • Windows script/presubmit passed: JSON formatting, Rust formatting, Clippy, and 186 tests with 0 failures.
  • Windows Warp build succeeded with this local command-signatures candidate; source hashes match the tested candidate.
  • Three new regression tests cover module-list headers, whitespace, LF/CRLF output, empty lists, and spec/generator wiring including toggle argument cardinality.
  • Starship CLI verification used an isolated configuration: starship toggle kubernetes changed its disabled value from false to true, and an explicit disabled argument changed it back without changing the other module.
  • In a local Windows Warp build using this candidate, Tab completion displayed module names for starship toggle k and preset names for starship preset no-; selecting kubernetes inserted the expected argument. The screenshots below capture the two populated dropdowns and the inserted module name.

Module completions for starship toggle k:

Starship toggle module dropdown showing kotlin and kubernetes

The selected module name inserted into the command (the gray disabled text is a suggestion for the next argument):

Starship toggle command with kubernetes inserted

Preset completions for starship preset no-:

Starship preset dropdown showing no-empty-icons, no-nerd-font and no-runtime-versions

@cla-bot cla-bot Bot added the cla-signed label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tab-completion for starship command

1 participant