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)
Tracking
(Not tracked)
NEW
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");
Comment 1•17 years ago
|
||
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.)
Updated•17 years ago
|
OS: Windows XP → All
Hardware: PC → All
Comment 2•17 years ago
|
||
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?
Comment 3•17 years ago
|
||
I think the current behavior is a feature, and "logical", as you say, Wayne.
Comment 4•16 years ago
|
||
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)
Comment 5•15 years ago
|
||
>ENH, to be buddy, buddy with several other quick search ideas
Severity: normal → enhancement
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•