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
Adds hidden preference 'always_set_from_selected' (default: FALSE) [...] #2695
Conversation
Where is the preference set? It should be on the There has been no discussion about it applying to replace. Needs to be documented in the manual (no it can't be left, it will be forgotten, answering your question from #2693). |
Since I don't think there is a need to often turn on/off this preference, I don't think we should extend the search/replace dialog with this setting, so I choosed the way of making it a hidden preference. It can be found and easily toggled at Edit > Preferences > Various, so there is no need to manually edit any config files:
I don't think users which want to use this preference want a different behaviour between search/replace, so the setting applies to both of them. However, it would be no problem to make two (hidden) preferences if needed.
Okay, then I will create a new PL later with the second commit which updates the manual. |
We are very much trying to not dump things in Don't make a new PR, just push changes to this one. |
For what it's worth, this is not shared by all core developers; personally I feel that the Preferences dialog already has loads of options and that it's better for preferences that are obscure or rarely used to be dumped into the |
Sure, but if we don't ask we don't know if the OP is happy to do it. |
Seems there may have been a misunderstanding, I was saying that there needs to be an option if the search is automatically updated on selection, not if it requires user action like pressing ctrl-f. The name of the option If @etkaar confirms thats the case then I agree with @codebrainz it doesn't need an option, just mentioning in the manual. |
@etkaar also just noticed you made the changes in master, not in a branch, when you update can you please make the changes in a branch, that way committers can switch back from your changes to master or another set of changes easily. |
Correct, the update of "Search phrase:" with the selected text only happens on the "reopen" event of the already visible dialog initiated by using the shortcut or menu Search > Find... or Search > Replace...
Thanks for the note, I will try that! |
@etkaar did you make your query about the docs on a commit that you have now deleted? Anyway, edit |
@elextr Yes, the next time I should better use |
Ahh yeah, you are right, we took it out, so only the |
See issue #2693.
Adds hidden preference 'always_set_from_selected' (default: FALSE) which updates search phrase with selected text when search/replace dialog is reopened (means, if the dialog is still opened). Default behaviour is not changed.