-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(
argparser
): ✨ add auto-completion support (#911)
When a command enables the `argparser`, omni will now provide automatically `autocompletion` for that command using the information that was provided to configure the `argparser`. This means that we can auto-complete enum values for instance, as well as all parameters. New argument types are introduced as `dir`, `file` and `repopath` allowing to respectively auto-complete directories, files and repository paths. When using those types, the value passed to the command will be an absolute path. Commands that have auto-completion enabled (`true`) will skip the argparser auto-completion. There is also a new `partial` auto-completion that is available when the argparser is configured, if the command provider wants to offer extended auto-completion for the values of specific parameters. The `partial` auto-completion will callout to the underlying, trusted, command if and only if a _value_ should be auto-completed for the current cursor position. Closes #854
- Loading branch information
Showing
22 changed files
with
1,056 additions
and
327 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.