Skip to content
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

Preview variables in command palette #10

Closed
Taitava opened this issue Sep 7, 2021 · 2 comments
Closed

Preview variables in command palette #10

Taitava opened this issue Sep 7, 2021 · 2 comments
Milestone

Comments

@Taitava
Copy link
Owner

@Taitava Taitava commented Sep 7, 2021

Currently, if a command contains a variable, the command palette shows the variable's name:

kuva

A preview feature could show the variable content before the command gets executed. In this example case, the date could be shown like this:

kuva

This feature could be turned off in the settings. It will be on by default.

Support for aliases: You could write variables in aliases too. They would have no practical change to how a command would be executed, but this way your alias can show all the variable values that the command is going to use. For example, the above mkdir {{date:YYYY-MM-DD}} command could have an alias like this: Create today's folder {{date:YYYY-MM-DD}}, which would show up in the command palette as Create today's folder 2021-09-07.

@FelipeRearden
Copy link

@FelipeRearden FelipeRearden commented Sep 8, 2021

@Taitava !!
Great idea !This is an amazing feature! Brings this plug-in UI to a new level

@Taitava
Copy link
Owner Author

@Taitava Taitava commented Sep 11, 2021

Released. 🙂

@Taitava Taitava closed this Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants