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
Because I'm in a monorepo, there are many files with that name. I select the one I think I wanted.
Oops I chose the wrong one! So I hit Cmd-P again, to look for the right one.
Problem: I have to type "package.json" again.
Solution: I should be able to press something to get the previous search text "package.json" back in the text box.
In the Find In Files search box, we can cycle previous search terms with Up and Down keys, but we cannot use those in Go To File... because they are already used to cycle through the visible list of files.
A keystroke like Cmd-Up would be fine for me.
Or any of the keys Cmd-K / O / L would be conveniently placed on US keyboards. They currently trigger completely separate features, but I think it might be reasonable to give them a different behaviour within this context. Complete keystroke: Cmd-P Cmd-K
(Alternatively, the ^ key could do this, instead of being entered as a literal character. I think that is rarely used to search filenames. Or the ! key, which nods to bash history search, although it seems that is already doing something, but I'm not sure what exactly.)
The text was updated successfully, but these errors were encountered:
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
An example use case:
I hit Cmd-P and search for "
package.json
"Because I'm in a monorepo, there are many files with that name. I select the one I think I wanted.
Oops I chose the wrong one! So I hit Cmd-P again, to look for the right one.
Problem: I have to type "
package.json
" again.Solution: I should be able to press something to get the previous search text "
package.json
" back in the text box.In the Find In Files search box, we can cycle previous search terms with Up and Down keys, but we cannot use those in Go To File... because they are already used to cycle through the visible list of files.
A keystroke like Cmd-Up would be fine for me.
Or any of the keys Cmd-K / O / L would be conveniently placed on US keyboards. They currently trigger completely separate features, but I think it might be reasonable to give them a different behaviour within this context. Complete keystroke: Cmd-P Cmd-K
(Alternatively, the ^ key could do this, instead of being entered as a literal character. I think that is rarely used to search filenames. Or the ! key, which nods to
bash
history search, although it seems that is already doing something, but I'm not sure what exactly.)The text was updated successfully, but these errors were encountered: