Open Bug 404001 Opened 17 years ago Updated 2 years ago

trim whitespace from ends of quick search text

Categories

(Thunderbird :: Mail Window Front End, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: moco, Unassigned)

Details

trim whitespace from ends of quick search text steps to reproduce: 1) have a message with the subject "[Bug 403159] New: Switch location bar auto-complete to a two line view" in your inbox 2) go to the quick search box and type in "403159 " (notice the extra space) you won't match. 3) type in " bug 403159" you won't match. before doing the search, why not strip off all whitespace from the front and end of the search term? fwiw: we do this for the location bar in firefox in C++, by doing: mCurrentSearchString.Trim(" \r\n\t\b");
Dunno about anyone else, but I regularly make use of the way we *don't* trim whitespace - "search" matches search, searchbar and quicksearch, " search " matches search. (Though I have to admit that I'd like it better if a space also matched the start or end of a line.)
OS: Windows XP → All
Hardware: PC → All
current behavior seems more "logical" to me, and matches find's behavior. Is there a defined spec that makes this a bug rather and not enh request?
I think the current behavior is a feature, and "logical", as you say, Wayne.
i too agree that triming the quick search text - at least by default - is not good. i, like to other commenters too, often use searches where i have leading/trailing whitespaces. the submitter states, that trimming is used in firefox. for firefox, where no spaces are permitted in urls, this of course makes more sense. so, imho, this is either made an optional feature or should be closed as wonfix (or similar)
>ENH, to be buddy, buddy with several other quick search ideas
Severity: normal → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.