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
Is your feature request related to a problem? Please describe.
I'm always frustrated when using the spectre.console library in C# because it lacks autocomplete support. Without autocomplete, it becomes challenging and time-consuming to enter commands, arguments, and their values accurately. I have tried implementing autocomplete on my own for my project, but unfortunately, I was unsuccessful.
Describe alternatives you've considered
I have explored various alternatives in order to implement autocomplete functionality for my project. One approach I tried was to write the autocomplete feature from scratch, but unfortunately, my attempts were unsuccessful. Building a reliable and efficient autocomplete feature requires a considerable amount of time and effort.
As an alternative, I looked for existing libraries or frameworks that provide autocomplete functionality. However, my search did not yield any suitable options. Despite my efforts, I was unable to find a library that specifically addresses my requirements.
Considering the challenges I encountered and the lack of suitable alternatives, I believe it would be highly beneficial to have the autocomplete feature integrated into the spectre.console library as a built-in feature. This would not only save time and effort but also ensure a reliable and efficient implementation of the desired functionality.
Describe the solution you'd like
I would like the spectre.console library to have built-in autocomplete support similar to the "winget complete" command in the Windows Package Manager (winget) tool.
The autocomplete feature should provide:
Context-sensitive suggestions: The autocomplete feature should provide context-sensitive suggestions for command names, argument names, and argument values based on the current command line state.
Support for automatic and user-extensible completions: It should support both automatically generated completions and user-extensible completions, allowing developers to define and register dynamic completions at runtime.
Straightforward integration: The autocomplete functionality should be seamlessly integrated into the spectre.console library, providing a simple API or command that developers can use to enable and customize it within their applications.
For example:
RegisterAutocompleteCommand("spectre",(wordToComplete,commandAst,cursorPosition)=>{// Autocomplete logic goes here// Return a list of completions based on the provided parameters});
Additional context
Here is a sample call of the "winget complete" command for reference:
Nushell can use value + description for auto-completion - listing not only the options but also describing them. It would be nice if command descriptions could be used too (they can already be described with attributes for the help text), and maybe even any suggestions (static and dynamic suggestions).
Is your feature request related to a problem? Please describe.
I'm always frustrated when using the spectre.console library in C# because it lacks autocomplete support. Without autocomplete, it becomes challenging and time-consuming to enter commands, arguments, and their values accurately. I have tried implementing autocomplete on my own for my project, but unfortunately, I was unsuccessful.
Describe alternatives you've considered
I have explored various alternatives in order to implement autocomplete functionality for my project. One approach I tried was to write the autocomplete feature from scratch, but unfortunately, my attempts were unsuccessful. Building a reliable and efficient autocomplete feature requires a considerable amount of time and effort.
As an alternative, I looked for existing libraries or frameworks that provide autocomplete functionality. However, my search did not yield any suitable options. Despite my efforts, I was unable to find a library that specifically addresses my requirements.
Considering the challenges I encountered and the lack of suitable alternatives, I believe it would be highly beneficial to have the autocomplete feature integrated into the spectre.console library as a built-in feature. This would not only save time and effort but also ensure a reliable and efficient implementation of the desired functionality.
Describe the solution you'd like
I would like the spectre.console library to have built-in autocomplete support similar to the "winget complete" command in the Windows Package Manager (winget) tool.
The autocomplete feature should provide:
For example:
Additional context
Here is a sample call of the "winget complete" command for reference:
Expected result:
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: