martinrotter / textosaurus

Cross-platform text editor based on Qt and Scintilla.
GNU General Public License v3.0
284 stars 44 forks source link

Feature request: Wrap search around #60

Closed lenrok258 closed 4 years ago

lenrok258 commented 5 years ago

Brief description of the issue.

Would be great to have an option to "Wrap search around". It should be enabled by default. Otherwise it may be confusing when clicking on "Find next" and not getting any results because of having cursor at incorrect position.

How to reproduce the bug?

  1. Put a cursor at the end of the file
  2. Open search dialogue, search for any phrase
  3. Even if phrase is present in the file there will be no results

What is the expected result?

Searching should start from the begging of the file unless user disabled option "Wrap search around".

Other information (logs, see Wiki)

Related issue: https://github.com/martinrotter/textosaurus/issues/57