Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Add completers for command names and options #64

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

AtkinsSJ
Copy link
Contributor

Resolves #63.

I kept instinctively pressing tab to complete command names while testing, so let's make that work! While doing so, I realised we have option information available, so we can make those tab-completable too. Both only work for builtins right now.

Also correct a == to a ===.
For now, this only completes the names of builtins. If the user <TAB>s
in the first token, we try to match a command name, otherwise we try to
match a file.
This will complete option names when the input starts with `--`. For
now, this can only provide completions for builtins.
@KernelDeimos KernelDeimos merged commit 027e9ca into HeyPuter:trunk Mar 19, 2024
3 checks passed
@AtkinsSJ AtkinsSJ deleted the command-name-completion branch March 19, 2024 15:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete command names
2 participants