New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search Editor: Add settings for search option default values #89353
Comments
(Experimental duplicate detection) |
@JacksonKearl This is still an upcoming feature, right? Can we expect it in the March or April releases? |
@karlhorky We'll probably add either default or persistent options, but I don't have a specific timeline for it. |
You can try out |
Going to let this cook as an experimental setting for a bit. If others come across this issue and this works, please upvote so I know it's desired, or comment if this doesn't work as you'd expect. |
@JacksonKearl thanks! Which issue should we give a thumbs-up to? Your comment with the configuration setting (#89353 (comment))? I would suggest against using adamlogic's original description at the top: I think this would be misleading, since a lot of users upvote issues that they want implemented (not even knowing that it is already done), instead of meaning to upvote your implementation thereof. |
Is this available yet (in Insiders)? I can't find that setting |
@carlocardella its hidden - you’ll have to paste the json manually. |
Took the setting out of
Explicitly passed args override prior config. |
Nice! This will appear for users in the stable May 2020 update? |
Yes. And it will be out in the next Insiders release (today or Monday). |
@JacksonKearl When using this, and running it with no text selected, I get Is there a way to define a single keybinding that can default to empty string if there is no text selected? Perhaps a {
"key": "ctrl+shift+g",
"command": "search.action.openNewEditor",
"args": {
"query": "${selectedTextOrEmpty}",
"filesToInclude": "${relativeFileDirname}"
},
"when": "editorTextFocus"
} |
By default it will use your selectedText or the empty string, you don’t need to include anything for |
Just received the VS Code May 2020 (1.46) update and the configuration below works well, thanks @JacksonKearl ! "search.searchEditor.reusePriorSearchConfiguration": true |
Since the new Search Editor treats each search as a new search, it doesn't remember the options for "Match Case", "Match Whole Word", and "Use Regular Expression" (as the sidebar search does). This makes logical sense, but it's inconvenient if you need to toggle those options manually for every search.
It'd be very helpful to specify default search options, so that for example, "Use Regular Expression" was always enabled for each new search.
Ref #88154 (comment)
The text was updated successfully, but these errors were encountered: