Find and Replace Search Direction defaults to down

Bug #1390933 reported by Elfy on 2014-11-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mousepad
Confirmed
Medium
xubuntu-default-settings (Ubuntu)
Undecided
Sean Davis

Bug Description

In a text file when using search and replace, search direction is set to Down by default.

That assumes that you've started search at file beginning.

Especially in a longer text file you might well start somewhere other than the start.

Changing default search to Both makes more sense when searching somewhere other than the start or end - a more likely scenario.

In , Elfy (elfy) wrote :

In a text file when using search and replace, search direction is set to Down by default.

That assumes that you've started search at file beginning.

Especially in a longer text file you might well start somewhere other than the start.

Changing default search to Both makes more sense when searching somewhere other than the start or end - a more likely scenario.

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu Package testing tracker.

A list of all reports related to this bug can be found here:
http://packages.qa.ubuntu.com/qatracker/reports/bugs/1390933

tags: added: package-qa-testing
Changed in mousepad:
importance: Unknown → Medium
status: Unknown → Confirmed

IMHO this "Both" option is confusing, a additional option like "Wrap search" or "Wrap around" is much more sane (and is the way pretty much text editors handle this).
Also, when the "Replace all in:" option is active, "Search direction" is
useless and could deactivated.

@Andre: From what I've tested "both" just wraps the search after searching "down" is done.

Yeah, I know, what I mean is that "Both" as a search direction is strange, how can a search be done up and down? Instead it just goes down and then wraps to the beginning.

So basically you're saying that the string is misleading? I guess we should check how this option is named in other editors.

Yep, it's confusing.
As I stated in comment #1, this would be a case to create another option(chechbox) for Wrap Search.

Pasi Lallinaho (knome) wrote :
Changed in mousepad (Ubuntu):
status: New → Fix Released
assignee: nobody → Sean Davis (bluesabre)
affects: mousepad (Ubuntu) → xubuntu-default-settings (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.