New Search Editor focuses results instead of query input when seeded (use focusResults: false by default) #105597
Labels
insiders-released
Patch has been released in VS Code Insiders
polish
Cleanup and polish issue
search-editor
Milestone
Steps to Reproduce:
1 result - 1 file
)Does this issue occur when all extensions are disabled?: Yes/No
Yes
TL;DR:
"focusResults": false
might be a more expected default for Search Editor: New Search EditorExpected Behavior: I expected that upon opening a Search Editor: New Search Editor the query term would be highlighted and the focus would remain on the query term. In the below screenshot I would expect "Foo" is highlighted and the query bar has focus.
Note that when there is no highlighted text this is the behavior when opening a New Search Editor:
I expected this behavior because it is the same behavior as the other two search cases:
Find:
...and Search: Find in Files
This often becomes an annoyance for me because of the following use case:
I believe this might be relatively recent behavior that was added w/ #95582 and/or #97823
Based on those I found that I could get the functionality I expected by setting
"focusResults": false
inkeybindings.json
, i.e:...at which point I considered just not bothering posting an issue 😅 But because the behavior seems to be inconsistent I think
"focusResults": false
might be a more sensible default forsearch.action.openNewEditor
.Complete conjecture but I imagine the current behavior might have led to issues like: #105034 as my first instinct was to wonder why the search results were editable at all.
The text was updated successfully, but these errors were encountered: