<p>See issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="770286561" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2693" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2693/hovercard" href="https://github.com/geany/geany/issues/2693">#2693</a>.</p>
<p>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.</p>
<p>(Previous, closed PL: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="771718809" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2695" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2695/hovercard" href="https://github.com/geany/geany/pull/2695">#2695</a>)</p>
<hr>
<p>I noticed the <em>geany.html</em> is automatically updated, so I only edited <em>geany.txt</em>. 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.</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/elextr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elextr">@elextr</a> I played around wit git and created a dedicated branch for this Pull Request only, I hope I have done all correct.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2697'>https://github.com/geany/geany/pull/2697</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>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.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2697/files#diff-6d20bb0474d5258b5e4c03fbf4f265daa65c061e3acc6297b3b5b7d07e9a5e22">doc/geany.txt</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2697/files#diff-2810524eed127fdf86cd7a7aaac164efa0d240a2da10844304e79e0307dccaf3">src/keyfile.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2697/files#diff-d5920a54fc6fff9b49052b09ca50c0608cf55cc93b5a46713bf8a4de1132eed0">src/search.c</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2697/files#diff-deeffa8191944369a8d33872f33d3163a8274ad8fa767b2a9c04c262f7d1cee6">src/search.h</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2697.patch'>https://github.com/geany/geany/pull/2697.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2697.diff'>https://github.com/geany/geany/pull/2697.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2697">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2PYNYYUJGUZGHUM4DSV4GT7ANCNFSM4VD57AXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZEDL3YUHSKF4GCTJDSV4GT7A5CNFSM4VD57AXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LQDZAWA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2697",
"url": "https://github.com/geany/geany/pull/2697",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>