You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fig-style command completion (flags with descriptions, subcommands, paths) — client-side, no server install
#1028
Input suggestions currently come only from command history and Quick Commands (command_suggestions + command_search). There is no completion for flags, subcommands or paths. If you manage hundreds of servers, installing shell-side tools (fish, zsh plugins, bash-completion, inshellisense) on every host is not realistic.
Proposal
A client-side completion popup, no changes on the server:
ls - → flags with short descriptions
git ch → subcommands
cd /va + Tab → paths
Works for any session type that already feeds the input tracker (SSH, local, Telnet).
Design (built to stay fast)
Data: bundle specs compiled from withfig/autocomplete (MIT) into compact JSON, embedded in the app. ~700 specs exist. Index by command name and load a spec lazily on first use, nothing parsed at startup.
Parsing: small serde structs in nyaterm-core (name, description, subcommands, options, args). Static data only; skip the JS "generators".
Matching: walk the spec tree using the already tracked input line, then reuse the existing fuzzy scoring. Runs in the current background search path with its request_id cancellation, never on the render path.
UI: add an optional description to FuzzyResult and a dimmed second column in the popup row; new source = "spec". Accept/execute behaviour unchanged.
Paths (phase 2): for cd, ls, etc. list directories via the existing SFTP list_dir (SSH) or local FS (local terminal), using the cwd already tracked via OSC 7. Async, short TTL cache, timeout. Skipped when SFTP is unavailable (Telnet/Serial).
Safety: respect existing suppression (alternate screen, credential prompts, Low latency mode), add a Settings → Interaction toggle, allow a user spec directory for overrides.
Phases
Flags/subcommands with descriptions for the ~30 most used commands
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
Input suggestions currently come only from command history and Quick Commands (
command_suggestions+command_search). There is no completion for flags, subcommands or paths. If you manage hundreds of servers, installing shell-side tools (fish, zsh plugins, bash-completion, inshellisense) on every host is not realistic.Proposal
A client-side completion popup, no changes on the server:
ls -→ flags with short descriptionsgit ch→ subcommandscd /va+ Tab → pathsWorks for any session type that already feeds the input tracker (SSH, local, Telnet).
Design (built to stay fast)
serdestructs innyaterm-core(name, description, subcommands, options, args). Static data only; skip the JS "generators".request_idcancellation, never on the render path.descriptiontoFuzzyResultand a dimmed second column in the popup row; newsource = "spec". Accept/execute behaviour unchanged.cd,ls, etc. list directories via the existing SFTPlist_dir(SSH) or local FS (local terminal), using the cwd already tracked via OSC 7. Async, short TTL cache, timeout. Skipped when SFTP is unavailable (Telnet/Serial).Phases
Prior art
Netcatty (bundled Fig specs, popup with descriptions), Ghost Complete (Rust, MIT, ~700 JSON specs), inshellisense, Fig.
All reactions