See issue #2693.
Adds hidden preference 'always_set_from_selected' (editable in the various preferences) which always updates the search phrase in search dialogs with selected text after reopening the dialog (esp. using shortcuts), since default behaviour is to insert selected text as search phrase only if the dialog was not already opened before.
(Previous, closed PL: #2695)
---
I noticed the _geany.html_ is automatically updated, so I only edited _geany.txt_. The change now applies to all search dialogs (Find, Find in Files and Replace) because I think it would be confusing if the preference would only apply to Find and Replace.
@elextr I played around wit git and created a dedicated branch for this Pull Request only, I hope I have done all correct. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2697
-- Commit Summary --
* Adds hidden preference 'always_set_from_selected' (editable in the various preferences) which always updates the search phrase in search dialogs with selected text after reopening the dialog (esp. using shortcuts), since default behaviour is to insert selected text as search phrase only if the dialog was not already opened before.
-- File Changes --
M doc/geany.txt (10) M src/keyfile.c (4) M src/search.c (12) M src/search.h (1)
-- Patch Links --
https://github.com/geany/geany/pull/2697.patch https://github.com/geany/geany/pull/2697.diff