Open cnanney opened 5 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.
Would it be possible to have a keyboard shortcut for putting the highlighted result into the text box instead?
Or just hitting ENTER?
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
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:
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.