<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - request for a more intuitive behavior when search in document has zero results ("search key not found") -- and at displaying matches"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131142">131142</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>request for a more intuitive behavior when search in document has zero results ("search key not found")  -- and at displaying matches
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.1.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jepe@cspv.hu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
when you search for a string in a document and there's zero result, 
it is not obvious enough that there's no point in hitting enter again...
and I'll hit enter again, hoping that now the search will start from the
beginning... like in Geany, if I'm not mistaken...

in any case, Firefox is a very good example...
when a search string does not exist, the search field will be red...
making it obvious that it does not exist...

Writer, no doubt, makes it obvious, too, by displaying "search key not found"
in the status bar, at the far right...
it's just the farthest place to look at... if one reds left to right, top to
bottom

the worst thing, however is, which could be easily eliminated, that when
hitting enter again, the cursor will jump to the beginning of the document...

this is really an annoying behavior


Steps to Reproduce:
1. search for a string that has zero appearances in a document
2. hit enter
3. hit enter again

Actual Results:
the cursor will jump to the beginning of the document

Expected Results:
the cursor should stay where it was..

and.. in some intuitive way, the fact that the "search key was not found" could
be emphasized... like turning the search field red, for example...




Reproducible: Always


User Profile Reset: No



Additional Info:
next to the search field the number of matches could be displayed, too..

like 0 matches, 14 matches... this could help handling the situation already...
including using or not even trying to use the up and down arrow icons (to
navigate through the matches)


- - - thank you for developing LO Writer - - -</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>