qcz / vscode-text-power-tools

Text Power Tools extension for VS Code
https://marketplace.visualstudio.com/items?itemName=qcz.text-power-tools
MIT License
97 stars 14 forks source link

[Feature Request] Populate filter input with content of history entry when highlighted #4

Open cnanney opened 5 years ago

cnanney commented 5 years ago

When invoking a command, most will offer the last 10 used for quick selection. While this input is up, you can use your arrow keys to move through them to select the one you want:

image

I think it would be useful to have the text input populated with the value of the history item you have selected. That way if you want to use a previous entry but with a small tweak to it, this would enable you to arrow down to it, make your edit, then submit.

qcz commented 4 years ago

Originally I wanted to implement history that way, however if I populate the text box, VS Code will filter down the list of results which matches the text entered in the text box. This means that you cannot navigate with arrow keys in the history and edit it at the same time.

meum commented 4 years ago

Would it be possible to have a keyboard shortcut for putting the highlighted result into the text box instead?

alexolog commented 3 years ago

Or just hitting ENTER?

eliavv commented 1 year ago

I really like @alexolog suggestion! selecting a line in the history quick pick would just put it in the text box and allow the user to edit it, if needed