Closed Bug 162542 Opened 22 years ago Closed 22 years ago

Quick Search bar for Bookmarks Manager

Categories

(SeaMonkey :: Bookmarks & History, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: janv)

References

Details

(Whiteboard: px)

Attachments

(5 files, 4 obsolete files)

RFE: quick search of bookmarks one of the reasons this is cool is I'd no longer have to organize my bookmarks. I could add at will, and use QS to find stuff. like addressbook and the addressbook sidebar panel, both bookmarks manager dialog and the bookmarks sidebar panel would have QS.
OS: Windows 2000 → All
since this RFE doesn't specify how this feature can be added, I'll just mark it as dupe of bug 137794 (Add Search Bookmarks, Search History to browser search menu) reporter, for now you can search bookmarks by clicking "search" button in the bookmarks sidebar channel. Or you can do so via custom bookmarks (see the "Technology Demonstration" bookmark folder. If you can't see it, create a new user profile and you will see it.) *** This bug has been marked as a duplicate of 137794 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
I don't agree with that resolution; this is a nice clean specific rfe for quicksearch to match mailnews & addressbook (quite specifically same as bug 137794 comment 7) whereas bug 137794 is something about (menu) access points and invocation specifics for current search functionality... or something...?
I agree, no dup. But I don't see a need for quicksearch in the bookmarks manager. the poinf ot QS in Mailnews is that it is not in another window (like BM), but right in the app window (like Navigator). I hope you don't want to add bookmark QS to the main win of navigator. Also, full Mailnews search is *way* more complex. it'd be quite easy to add a way to search across fields in the bookmarks using the normal bookmarks search. In that case, i'd have to be easily accessible, though, which is (dependant on) bug 137794.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
BenB> I hope you don't want to add bookmark QS to the main win of navigator. See comment 0: "bookmarks manager dialog and the bookmarks sidebar panel would have QS." Let me just say that this here idea rocks - currently searching bookmarks for a title string and loading a page from the results requires - opening 3 (!) windows (sidebar counts as a window here if going that route) - doing 5 actions (menu use, and search string typing count as 1) With this rfe implemented, this would be reduced to - 1 window - 3 actions Also, perhaps more importantly, narrowing / otherwise editing a search (as if you ever knew what the hell you are looking for exactly beforehand): Current: - 1 window - 3 actions Qs: - 0 windows - 1 action :)
the opera browser has qs of bookmarks and this feature surelly rocks. it could be implemented as a simple search field in the bookmark side tab that filters the bookmarks shown below it as you type your pattern. as an opera migrant, i had found the search feature in mozilla's bookmark quite 'semi-useless'
Blocks: 93058
Summary: RFE: quick search of bookmarks → Quick Search bar for Bookmarks Manager
*** Bug 118393 has been marked as a duplicate of this bug. ***
Keywords: nsbeta1
taking
Assignee: ben → varga
Status: REOPENED → NEW
Attached patch patch (obsolete) (deleted) — Splinter Review
patch ported from Phoenix + sidebar integration
Attached image bookmarks manager (deleted) —
Attached image bookmarks sidebar (deleted) —
Attached patch additional patch (obsolete) (deleted) — Splinter Review
additional patch to correctly collapse scrollbar when there is no match
good job! ...but it would be even better if it could search bookmarks itens by url, description and/or keyword, instead of just by name. in the ``find bookmarks` window, one choses between name - location - desc - keyword to search within. i dont believe such a combo in the sidebar would be a great idea. a simpler solution would be just to _always_ search by name desc and keyword, which is how opera works (i guess).
I added the currentIndex=-1 line to prevent a hang (maybe your last patch fixes it, I haven't checked). It's a work around and it would be nice if you could bring the real fix.
Attached patch new patch (obsolete) (deleted) — Splinter Review
Removed |selectedIndex = -1| + statusbar fix
Attachment #101147 - Attachment is obsolete: true
bruno, yeah it would be even better, but search component only supports searching by one property. pch, I removed that line and I don't see any hang, even w/o content/ fix
> ...but search component only supports searching by one property what a pitty.but still, what would be the best way out? (a) open a rfe for the owner of the seach component, (b) make the qs do many searches and merge the results or (c) forget about it? I'm more or less inclined towards (a), since (b) would be huge ugly workaround.
a) sounds good
i had taken a look and it seems that bug #72799 ask exactly for multi-field search in bookmarks. now the bad news: the last entry in the bug dates back to oct 2001 and it says something like 'not any time soon'. maybe a whole year isnt exactly 'soon' so we could press the guy ('ben', i guess) to have a look at it again...
nsbeta1+
Keywords: nsbeta1nsbeta1+
Jag, does it look good to you ? I mean a new textbox binding.
Status: NEW → ASSIGNED
Sure, it's a clean way to add this functionality. Looks good, sr=jag.
pch: yeah, "additional patch" fixes the problem with selection too
Attachment #101400 - Flags: review+
Attachment #101158 - Attachment is obsolete: true
Attachment #101400 - Attachment is obsolete: true
Comment on attachment 103864 [details] [diff] [review] fixing nits proposed by timeless r=timeless, sr=jag
Attachment #103864 - Flags: superreview+
Attachment #103864 - Flags: review+
checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
Comment on attachment 103864 [details] [diff] [review] fixing nits proposed by timeless >Index: xpfe/global/resources/content/bindings/textbox.xml >=================================================================== >RCS file: /cvsroot/mozilla/xpfe/global/resources/content/bindings/textbox.xml,v >retrieving revision 1.16 >diff -u -r1.16 textbox.xml >--- xpfe/global/resources/content/bindings/textbox.xml 16 Oct 2002 22:22:07 -0000 1.16 >+++ xpfe/global/resources/content/bindings/textbox.xml 23 Oct 2002 16:22:18 -0000 >@@ -100,6 +100,42 @@ > </handlers> > </binding> > >+ <binding id="timed-textbox" extends="chrome://global/content/bindings/textbox.xml#textbox"> >+ <content> >+ <xul:hbox class="textbox-input-box" flex="1"> >+ <html:input class="textbox-input" flex="1" anonid="input" >+ xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,tabindex"/> >+ </xul:hbox> >+ </content> Was it necessary to duplicate the content, instead of inheriting it? >+ <implementation> >+ <field name="_timer">null</field> >+ <property name="callback" >+ onset="this.setAttribute('callback', val); return val;" >+ onget="return this.getAttribute('callback');"/> Shouldn't this use a command event, rather than eval(!) of inline script? >+ <property name="timeout" >+ onset="this.setAttribute('timeout', val); return val;" >+ onget="var t = parseInt(this.getAttribute('timeout')); return t ? t : 0;"/> (parseInt(...) || 0; also works) >+ </implementation> >+ <handlers> >+ <handler event="input"> >+ <![CDATA[ >+ if (this._timer) >+ clearTimeout(this._timer); >+ this._timer = setTimeout(this.callback, this.timeout); >+ ]]> >+ </handler> >+ <handler event="keypress"> >+ <![CDATA[ >+ if (event.keyCode == 13) { >+ if (this._timer) >+ clearTimeout(this._timer); >+ eval(this.callback); Becomes this.doCommand(); >+ } >+ ]]> >+ </handler> >+ </handlers> >+ </binding> >+ > <binding id="textarea" extends="chrome://global/content/bindings/textbox.xml#textbox"> > <content> > <xul:hbox class="textbox-input-box" flex="1">
good catch Neil, command event is better than eval
I thought the content was overridden to get rid of some other anonymous content that wasn't needed.
Attached patch additional patch (deleted) — Splinter Review
this additional patch should make it better Neil, Jag, could you take a look ?
Comment on attachment 105356 [details] [diff] [review] additional patch clear button doesn't work with this patch and I'll try to reuse timed textbox in address book too
Attachment #105356 - Flags: needs-work+
I filed bug 179050 to fix issues pointed by Neil.
Comment on attachment 105356 [details] [diff] [review] additional patch >+ if ("onFocus" in this) >+ this.onFocus(); What's this for? >+ function timeoutHandler(subject) { >+ subject.doCommand(); I don't think mTimer gets cleared otfen enough. > <handler event="keypress"> keycode="VK_RETURN"? I've attached my independent patch in your new bug.
> What's this for? take a look at mailnews implementation of quick search
Whiteboard: px
Bah, has anyone noticed that the F access key conflicts with the File menu?
Attached patch fix for accesskey (obsolete) (deleted) — Splinter Review
Comment on attachment 107425 [details] [diff] [review] fix for accesskey I really wish that we would use "Search" or something similar and use an "S" accesskey. "n" just doesn't do justice for Find, IMO.... But my opinion doesn't count :-)
Attachment #107425 - Flags: review+
Attached patch better patch (deleted) — Splinter Review
caillon, your opinion does count
Attachment #107425 - Attachment is obsolete: true
bookmarks quicksearch works fine in both bm mgr and sidebar (only with Name, as noted earlier). vrfy'ing with 2003.02.19 comm trunk builds.
Status: RESOLVED → VERIFIED
Hardware: PC → All
*** Bug 106049 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: