New search editor should be pre-filled with selected text when pressing Ctrl + Shift + F #116093
Labels
bug
Issue identified by VS Code Team member as probable bug
insiders-released
Patch has been released in VS Code Insiders
search
Search widget and operation issues
search-editor
verified
Verification succeeded
Milestone
I've been using the new
"search.mode": "newEditor"
setting as default lately and realized that it differs in an important way from"search.mode": "view"
:In contrast to the search view, the search editor is not initialized with the selected text when pressing Ctrl + Shift + F.
Even more inconsistently, when setting
"search.mode": "reuseEditor"
the re-used editor is initialized with the selection (even ignoring theseedSearchStringFromSelection
setting).I think they should behave the same and potentially take into consideration #20768 so that Ctrl + F also behaves consistently.
I tested all combinations and they're a little inconsistent 🙈:
Pre-fill behavior legend:
0
: Not pre-filled at all1
: Pre-filled with selection only2
: Pre-filled with selection or word the cursor is currently at (as criticized in #20768)The text was updated successfully, but these errors were encountered: