-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the command palette to accept parameters for commands. #909
Comments
I like the idea. It may take a while before I get to it, but PRs are very welcome. |
@dogfootruler-kr can you list the VScode command palette commands that let a user enter parameters to it after selection, looking for some inspiration |
Hey @wallydrag , you can check Go to line or Go to file for example. I had no time to start anything yet so feel free to propose a PR! |
Hi I hope it's ok to continue conversation on this old thread. I was also looking at commands and how VSCode does this.
I think it's important to note that the vscode palette works in a particular way. If you select "Go to line..." note that it really just puts a Similar with the command mode (just a This mode could be implemented by having the palette change out all of the options based on the first character. If the first character is I think this differs a lot from the parameter modes I've seen elsewhere, where you essentially get given a new empty palette after 'activating' a command, and the command can continue prompting for additional parameters after the submission of the previous parameter. |
Describe the solution you'd like
I would like to be able to pass parameters to a command after pressing enter. (e,g: "Go to product #" -> press enter -> enter id -> execute command with the param)
Additional context
VSCode command palette lets you enter parameters to command after selecting it, and I would love to have something similar in this library.
Thank you very much for your hard work!
The text was updated successfully, but these errors were encountered: