Repository navigation
Rewrite the custom completions in the completion language - #1316
Draft
philocalyst wants to merge 93 commits into
Draft
philocalyst wants to merge 93 commits into
philocalyst wants to merge 93 commits into
Conversation
Socket specs parse; devices, packages and pids come from adb.
Workspaces, windows, monitors and modes come from aerospace; --format strings parse.
Cover 64 routes; s3:// URIs parse and resources complete live. Undeclared commands fall back to aws_completer, as in nushell#1315.
--style and --map-syntax values parse; languages and themes come from bat.
Folders, collections, organizations and items come from an unlocked vault.
Cover 36 routes, up from 19; packages, targets, features and profiles come from cargo metadata.
Cover 44 routes, up from 33; MCP servers, plugins and agents complete from config.
Models, profiles, features and sessions complete from CODEX_HOME.
Cover 31 routes, up from 3; dependencies come from pubspec.yaml.
Cover 120 routes, up from 44; containers, images, networks, volumes, contexts and compose services complete live.
Cover 38 routes, up from one extern; projects, package references and tools complete live.
Devices, partitions and variables come from fastboot.
Cover 29 routes, up from 3; devices, platforms and flavors complete live.
Valued --option:value options are modelled as taking the next word.
Valued --option:value options are modelled as taking the next word.
philocalyst
force-pushed
the
completion-language
branch
from
December 1, 2026 00:23
27979cf to
717bc1e
Compare
Cover every route, alias and flag from nushell#1312, with its completers and alias expansion; keep the nushell#1307 fix.
Hosts, users, keys and ciphers come from ssh/ssh-hosts.nu.
Covers chown, chgrp, su, id, groups, killall, pkill and pgrep.
Cover 11 routes, up from 5; templates come from the local package cache.
Collapse 230 externs into 90 routes; domains, networks, pools and snapshots complete live.
Cover 28 routes, up from 21; keep the nushell#1305 fixes and the cache check.
Cover 128 routes, up from 19; sessions and layouts complete live.
Codecs, formats, pixel formats, filters and hwaccels come from ffmpeg.
Covers BSD and GNU find; -exec owns a nested command line.
Contexts, namespaces, resources and names come from read-only kubectl calls.
Sessions, windows and blocks come from the running rex.
Targets parse as session:window.pane, each part completing from the running server.
philocalyst
force-pushed
the
completion-language
branch
from
December 1, 2026 01:29
717bc1e to
b7fabd6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This rewrites 84 custom completion modules as declarations in Nushell's new completion language and adds completions for 8 more tools. An
export completeblock describes each command route once: its flags, positionals, value domains and the rules between options. Separateexport syntaxgrammars parse structured arguments such ass3://URIs, git ranges and tmux targets. Live data comes from@non-destructiveproviders that only read and return nothing on error, so completion can run them on every keystroke.@non-destructive,@interactiveand@example; 100 files, +53,987/−28,043.ssh-hosts.nu.git addcompletions #1306, fix(gh): pass update cells columns as rest args #1307), rustup (make rustup completions more robust #1311) and winget (fix(completions): Fix winget custom completions for nu 0.117.0 #1305).nu-checkon that build.git/testsandgh/testsnow load the new modules; 12 of 91 and 3 of 37 assertions still fail on engine gaps (providers cannot see switches or the typed text, and values are not offered on a bare flag name).