IPB

Welcome Guest ( Log In | Register )

30 Pages V   1 2 3 > »   
Reply to this topicStart new topic
foo_uie_quicksearch, Improved from foo_uie_search
NEMO7538
post Apr 26 2006, 00:12
Post #1





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



This component is now deprecated ....
please use foo_quicksearch instead.

As I was tired to wait for such a plugin I decided to code it myself. It is derived from foo_uie_search [Credit goes to Peter, Foosion, Mister P & tbhoerer] and provides with a very basic search toolbar that will send results of the search to a playlist of your choice.
The playlist name and the tags to search for are configurable, as well as other options (See config. page). Other options are configurable on the fly from the toolbar icon. Extended search (playlist gen syntax) and context menus (Search for same ...) are also supported.

Download <--Version 2.8l, for Foobar version 0.9.x
Download <--Version 1.5i, for Foobar version 0.8.x



Change log :
    Versions 2.8l and 1.5i (2007-05-18)
  • Fixed metadb handle leak when using "Quicksearch for same ..." and toolbar not active
  • Deactivated "Inline playlist search" as default
    Version 2.8k (2007-01-03)
  • Fixed crash whith "Now playing" button group and "Quicksearch for same ..."
    Version 2.8j (2006-10-15)
  • Recompiled with the latest SDK to improve Windows Vista compatibility
    Version 2.8i (2006-09-30)
  • Bugfix: "Reset search string" is now deactivated when Autosearch is used
    Versions 2.8h & 1.5h (2006-08-27)
  • Fixed bug: Improper playlist reactivation when recall history/favorites with "All Playlist" as criteria
  • Console shows playlist name when playlist not found following reactivation of a search within a playlist during recall of History/Favorites
    Versions 2.8g & 1.5g (2006-08-16)
  • Search pattern is now selected when the toolbar receives focus
  • Fixed unproper toolbar colors after undock when autosearch is selected (1.5g only)
    Versions 2.8f & 1.5f (2006-06-20)
  • Reorganized code and fixed a bug (wrong search results happening in extremely rare circumstances with "Exact" mode)
    Versions 2.8e & 1.5e (2006-06-19)
  • Improved reactiveness and speed of inline playlist search
  • Added "Search for same/Directory" to context menu
    Version 1.5 (2006-06-16)
  • Ported from 2.8 for Foobar 0.8.3
    Version 2.8 (2006-06-15)
  • Added configurable delay for autosearch
  • Reorganized prefs & help pages
    Version 2.7 (beta) (2006-06-11)
  • New: Autosearch feature ... (for people too lazy to hit the Enter Key)
  • New: Added option to manage preferences (record of favorites search)
  • Fixed weird bug (search not working with searchstrings of length 12 or 26)
  • Changed "override keys" settings (Now: Alt+Enter=All Playlist, Shift+Enter=Playlist,Ctrl+Shift+enter=DB, Alt+Keydown=Menu)
  • Reorganized menu
  • Fixed auto selection of searchstring when not found. Added additional colors settings to manage unfound situations (See prefs colors)
  • Various bugfix & improvements
    Quick updates to V1.4 & 2.6 (2006-06-07)
  • Menu shortcut is now Alt+Down instead of Alt
  • Added tooltip for reminding which options were chosen
  • Added "Same genre" in context menus
    Version 1.4 (2006-06-04)
  • Port of features from 2.0 to 2.6 in 1.4 (for foobar 0.8.3 users)
    Version 2.6 (2006-06-04)
  • Added "Search as you type" option (for inline playlist search only)
  • QuickFixed searchstring not reset properly after a successfull search (bug appeared in V2.5)
  • QuickFixed tab key blocked from within control
  • Prevented deletion of search results playlist when searching inline
  • Fixed redrawing of frame style in prefs page
    Version 2.5 (2006-06-03)
  • Added menu option, available through Alt Key
  • Added options to override on the fly the "Search in ..." settings. Shift+Enter = Force search in playlist, Ctrl+Enter = Force search in all playlists, Ctrl+Shift+Enter=Force search in database.
    Version 2.4 (2006-06-03)
  • Added an option to setfocus on the playlist window after a search (complete mouseless utilization is now possible)
  • Implemented "Escape" key. Will set focus on the playlist window.
  • New option to search "inline" when "playlist" is selected as the search domain (will highlight results in the current playlist, navigation is available through up and down arrow keys) .... mimics old playlistfind plugin
    Version 2.3 (2006-06-01)
  • Hotfix : Search in "all playlist" was only searching in the last playlist
  • Fixed text not scrolling when longer than the text box
  • Prefs page now supports XP themes
  • Fixed icon switch enabled/disabled spinbutton status
  • Minor bugfix and improvement
    Version 2.2 (2006-05-28)
  • Fixed text entry/display/overlapping selection problem
    Version 2.1 (2006-05-27)
  • Fixed Tagz strings reset happening even when user cancels operation
  • Better vertical sizing of search string area
  • Changed Tagz string "Delete" button enabled/disabled state (only last remaining item can't be deleted)
    Version 2.0 (2006-05-27)
  • Ported (from version 1.3) to Foobar 0.9 version
    Version 1.3 (2006-05-27)
  • Added option to include %artist% in %album% search from context menu (fixes the "greatest hits" problem, requires a VA string to be entered)
  • Added option to automaticall switch to extended search mode when a '%' char is entered in the searchstring (and back when none is present in the search string)
  • Added option to override current settings with recall from history search
  • Fixed toolbar disappearing under albumart
    Version 1.2 (2006-05-21)
  • Context menu (and shortcuts) is now available through [context]Now Playing and Playlist entries
  • New : Ability to load custom bitmaps (H=16, W= 20, .bmp only)
  • New : Playlist_gen queries are now available
  • Fixed lowercased search strings when appended to playlist name
  • New processing of history with memorization/recall of all variables
  • Added customization of toolbar frame (None, Grey, Sunken)
  • Restructured config. page & help, including playlist_gen syntax overview
    Version 1.1 (2006-05-16)
  • Implemented hourglass
  • Added repainting of icon during resizing
  • Fixed possible vertical resizing (top right)
  • Improved cursor management for resizing (top, bottom)
    Version 1.0 (2006-05-15)
  • Implemented context menus to search for same Artist/Album/Title (search in database only and with "Exact" match ... will temporarily overide the current settings).
  • Implemented toolbar resizing (horizontal only)
    Version 0.9.3 (2006-05-14)
  • Fixed icons not displayed properly on Windows XP
  • Centered vertically the test edit control
    Version 0.9 (2006-05-12)
  • Added clickable search icon on the toolbar, customizable through the prefs; moved right click options (except undock) to icon standard click
  • Added menu entry to access the preferences
  • Minor bugfixes and improvements
  • Increased max history size to 32
    Version 0.8 (2006-05-08)
  • Added list of Tagz presets to choose from for searching
  • Avoided duplicates in the history of search strings
  • Reorganized prefs page
    Version 0.7 (2006-05-05)
  • Added history of search strings with recall option (rightclick the toolbar)
  • Fixed unwanted duplication of target playlist with different search strings
    Version 0.6 (2006-05-04)
  • Added customized color scheme
  • Fixed unwanted resizers appearing after undock
  • Reorganized prefs page
    Version 0.5 (2006-05-01)
  • New option to append the search string to the name of the target playlist
  • Revisited the preferences dialog
  • Changed the behavior when nothing is found (searchstring highlited, playlist selection unchanged)
  • Added an option to reset the searchstring after a successfull search
    Version 0.4 (2006-05-01)
  • Added ability to perform a search in all playlists (Search results playlist is excluded in this case)
  • Undock function now fixed
  • Added ability to search by prefix
  • Code cleaned, reorg. and commented
    Version 0.3 (2006-04-27)
  • Performance dramatically improved
To do list :
  • Fix metadb handle leak when "search for same ..." is used and the toolbar is not in the layout
  • Fix unproper reset of searchstring in autosearch mode (2.8 only)
  • Fix crash whith "Now playing" button group and "Quicksearch for same ..."
  • Change default initialization of inline playlist search
  • Fix unproper display of searchstring background after unsuccessfull search for same ....
  • Restore undock function (2.8 only, requires new ui_columns version)
  • Focus on search results playlist after successfull search
  • Investigate some playlistfind like behaviour (when playlist is the search domain)
  • Do something with Ctrl+Enter, Alt+Enter ....
  • Release version 1.4 for 0.8.3 users
  • Fix undock function / Implement menu for independant window
  • Customize colors
  • Fix the toolbar giving the illusion it could be resized (happens only when undocked)
  • Implement history of search strings
  • Create special command to search for same (Selection/Now playing)
  • Special behavior when nothing is found [Do not switch to target playlist]
  • Manage a list of presets for Tagz search strings
  • Add an option to add the search string to the name of the playlist
  • Implement "All playlist" search
  • Add an hourglass
  • Fix weird behavior with album art panel
  • Add search button / icon
  • Port to 0.9
Please also note :
  • This is a beta version
  • I am a complete noob with C++ and this is my first plugin, so maybe not totally bug free
  • It has been tested on W2K only


This post has been edited by NEMO7538: Oct 8 2010, 06:12
Go to the top of the page
+Quote Post
Lycox
post Apr 26 2006, 00:41
Post #2





Group: Members
Posts: 58
Joined: 24-October 04
From: near Berlin
Member No.: 17807



Nice work. Hope it will be ported to 0.9 soon.

This post has been edited by Lycox: Apr 26 2006, 10:50
Go to the top of the page
+Quote Post
Shade[ST]
post Apr 26 2006, 04:26
Post #3





Group: Members
Posts: 1189
Joined: 19-May 05
From: Montreal, Canada
Member No.: 22144



QUOTE (NEMO7538 @ Apr 25 2006, 07:12 PM) *
[*]Improve performance [searching is damned slow on large databases]

What search algorithm are you using?

Also, you should consider making it possible to use the currently active playlist as the search source, when a query is entered. Or maybe put a button (toggleable?) which could say "search in this playlist" or whatever. Maybe a menu entry, and the button could be added with columnsui.
Go to the top of the page
+Quote Post
NEMO7538
post Apr 26 2006, 06:22
Post #4





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



QUOTE
Also, you should consider making it possible to use the currently active playlist as the search source,

Already done (Right click on the toolbar).

This post has been edited by NEMO7538: Apr 26 2006, 06:24
Go to the top of the page
+Quote Post
carmenm
post Apr 26 2006, 09:03
Post #5





Group: Members
Posts: 720
Joined: 24-November 05
From: Grenoble
Member No.: 25981



Was foo_uie_search the one which searched in Firefox way?
And you say that it is already possible to search into the active playlist, but it is checkbox or do we have each time we want to search in the active playlist to do a right click?
Go to the top of the page
+Quote Post
david_dl
post Apr 26 2006, 09:13
Post #6





Group: Members
Posts: 604
Joined: 17-December 05
From: New Zealand
Member No.: 26461



QUOTE (carmenm @ Apr 26 2006, 09:03 PM) *
Was foo_uie_search the one which searched in Firefox way?


AFAIK that was foo_uie_playlistfind
Go to the top of the page
+Quote Post
simmosn
post Apr 26 2006, 09:51
Post #7





Group: Members
Posts: 24
Joined: 10-June 03
Member No.: 7117



This looks pretty good. Can't wait for the 0.9 port smile.gif
Go to the top of the page
+Quote Post
mil3s
post Apr 26 2006, 11:23
Post #8





Group: Members
Posts: 400
Joined: 22-February 06
Member No.: 27971



^Me too.
Go to the top of the page
+Quote Post
Jimbo51
post Apr 26 2006, 15:21
Post #9





Group: Members
Posts: 65
Joined: 2-October 04
Member No.: 17440



I'm really glad someone took this on, can't wait for it to be ported.
Go to the top of the page
+Quote Post
Zurman
post Apr 26 2006, 15:33
Post #10





Group: Members
Posts: 238
Joined: 22-February 04
Member No.: 12193



nice plugin smile.gif
Go to the top of the page
+Quote Post
Seldaek
post Apr 26 2006, 21:35
Post #11





Group: Members
Posts: 134
Joined: 7-October 05
From: Belgium
Member No.: 24935



Don't want to fire up the good old .8 to try this out but I'm looking forward for the .9 port.
Some idea would be to make a hotkey that makes the panel grab the focus, something that would allow to press F3 and then type your query in, no mouse involved.
As for the performance, you might want to look at foo_dbsearch sources (ask foosion), it works pretty good with my big db.
Go to the top of the page
+Quote Post
mil3s
post Apr 26 2006, 21:57
Post #12





Group: Members
Posts: 400
Joined: 22-February 06
Member No.: 27971



QUOTE (Seldaek @ Apr 26 2006, 02:35 PM) *
Don't want to fire up the good old .8 to try this out but I'm looking forward for the .9 port.
Some idea would be to make a hotkey that makes the panel grab the focus, something that would allow to press F3 and then type your query in, no mouse involved.
As for the performance, you might want to look at foo_dbsearch sources (ask foosion), it works pretty good with my big db.

I like the hotkey idea.

I also thought of something else. 2 modes. Mode 1: Searching the playlist. And mode 2: Searching Library, adding/removing tracks to a playlist as you type. This would be the ultimate track finder and best Library browser imo. smile.gif
Go to the top of the page
+Quote Post
NEMO7538
post Apr 27 2006, 05:38
Post #13





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



Version 0.3 is out. The performance issue should be fixed (Please confirm).
Go to the top of the page
+Quote Post
Zurman
post Apr 27 2006, 12:04
Post #14





Group: Members
Posts: 238
Joined: 22-February 04
Member No.: 12193



QUOTE (NEMO7538 @ Apr 26 2006, 08:38 PM) *
Version 0.3 is out. The performance issue should be fixed (Please confirm).

It's really fast with my 15,000 songs database cool.gif
Go to the top of the page
+Quote Post
mil3s
post Apr 27 2006, 16:37
Post #15





Group: Members
Posts: 400
Joined: 22-February 06
Member No.: 27971



0.9 support please. sad.gif
Go to the top of the page
+Quote Post
avatar_888
post Apr 27 2006, 18:45
Post #16





Group: Members
Posts: 29
Joined: 24-April 05
Member No.: 21655



I'm no expert here, but I noticed foosion post this in the database search plugin thread:
QUOTE (foosion @ Apr 26 2006, 09:35 PM) *
However, the upcoming release (v1.4) will finally allow all the relevant backend code (data sources, filter modes, background search, even format presets) to be re-used by other components.

Am I right in thinking that this means that you could use the methods employed by his plugin in this one? Maybe saving a lot of work??

And yes I too am really waiting for this to come to v0.9 smile.gif
Go to the top of the page
+Quote Post
NEMO7538
post Apr 29 2006, 00:33
Post #17





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



QUOTE (mil3s @ Apr 26 2006, 12:57 PM) *
QUOTE (Seldaek @ Apr 26 2006, 02:35 PM) *

Some idea would be to make a hotkey that makes the panel grab the focus, something that would allow to press F3 and then type your query in, no mouse involved.

I like the hotkey idea.
I also thought of something else. 2 modes. Mode 1: Searching the playlist. And mode 2: Searching Library, adding/removing tracks to a playlist as you type. This would be the ultimate track finder and best Library browser imo. smile.gif
  • You can already map a hot key to the Component/Quicksearch toolbar menu. It will make the toolbar grab the focus
  • Mode 1. and Mode 2. are already available as well
  • I will probably not implement the "add remove as you type" feature
QUOTE (carmenm @ Apr 26 2006, 12:03 AM) *
And you say that it is already possible to search into the active playlist, but it is checkbox or do we have each time we want to search in the active playlist to do a right click?

I may implement Ctrl+Enter/Alt+Enter later in order to switch between DB and Playlist.
QUOTE (avatar_888 @ Apr 27 2006, 09:45 AM) *
QUOTE (foosion @ Apr 26 2006, 09:35 PM) *

However, the upcoming release (v1.4) will finally allow all the relevant backend code (data sources, filter modes, background search, even format presets) to be re-used by other components.

Am I right in thinking that this means that you could use the methods employed by his plugin in this one? Maybe saving a lot of work??

Thanks for the suggestion, but the search code is already functional and I want to keep this plugin as simple as possible, and configuration options minimal.
Go to the top of the page
+Quote Post
metal_termite
post Apr 30 2006, 04:13
Post #18





Group: Members
Posts: 538
Joined: 10-July 04
Member No.: 15248



QUOTE (NEMO7538 @ Apr 25 2006, 07:12 PM) *
To do list :
  • Add search button / icon


Something like this?

Go to the top of the page
+Quote Post
metal_termite
post Apr 30 2006, 04:56
Post #19





Group: Members
Posts: 538
Joined: 10-July 04
Member No.: 15248



When search type is set to EXACT my queries yield no results whatsoever.
Go to the top of the page
+Quote Post
NEMO7538
post Apr 30 2006, 08:39
Post #20





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



QUOTE (metal_termite @ Apr 29 2006, 07:13 PM) *
Something like this?

Yes

QUOTE (metal_termite @ Apr 29 2006, 07:56 PM) *
When search type is set to EXACT my queries yield no results whatsoever.

"Exact" mean we will search for the exact concatenation of the Tagz string entered in the preferences. So if for instance you use "%artist% %album% %title%", it means you have to enter all of these tags values, separated with a blank (and without errors). Works fine here. Can you post an example? I will look after it.

Edit : It seems however that there is problem with the way long strings are handled when they are longer than the visible field size. Will investigate/fix for the next version.

This post has been edited by NEMO7538: Apr 30 2006, 09:04
Go to the top of the page
+Quote Post
metal_termite
post Apr 30 2006, 13:27
Post #21





Group: Members
Posts: 538
Joined: 10-July 04
Member No.: 15248



QUOTE (NEMO7538 @ Apr 30 2006, 03:39 AM) *
"Exact" mean we will search for the exact concatenation of the Tagz string entered in the preferences. So if for instance you use "%artist% %album% %title%", it means you have to enter all of these tags values, separated with a blank (and without errors). Works fine here. Can you post an example? I will look after it.

Edit : It seems however that there is problem with the way long strings are handled when they are longer than the visible field size. Will investigate/fix for the next version.


My mistake, I did not know one had to enter all the tag values. I assumed it would find exact matches per tag.

When using MATCH ALL or MATCH ANY if I query for a string like abba, I will also get results like black sabbath. Is there a way to make my searches boundary specific? So if I query abba I only get tags containing the word abba. Using quotations perhaps [in future versions]?

Also what's the difference between MATCH ALL and MATCH ANY?
Go to the top of the page
+Quote Post
Storm
post Apr 30 2006, 13:33
Post #22





Group: Members
Posts: 164
Joined: 9-July 04
Member No.: 15188



0.9, 0.9! smile.gif
Go to the top of the page
+Quote Post
NEMO7538
post Apr 30 2006, 14:45
Post #23





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



QUOTE (metal_termite @ Apr 30 2006, 04:27 AM) *
Also what's the difference between MATCH ALL and MATCH ANY?

Match All means that a track will only be selected if all keywords (separated by blanks) entered as the search string are found in the track tags.
Match any means that the track will be selected if at least one of the keywords is found in the track tags.
Go to the top of the page
+Quote Post
NEMO7538
post May 1 2006, 02:30
Post #24





Group: Developer
Posts: 814
Joined: 28-November 03
Member No.: 10088



Version 0.4 is out [See changelog in the first post].
Go to the top of the page
+Quote Post
Shade[ST]
post May 1 2006, 03:33
Post #25





Group: Members
Posts: 1189
Joined: 19-May 05
From: Montreal, Canada
Member No.: 22144



QUOTE (NEMO7538 @ Apr 30 2006, 09:30 PM) *
Version 0.4 is out [See changelog in the first post].

Can you post a zip with the source / do you have a release date on the .9 version?
Go to the top of the page
+Quote Post

30 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th April 2014 - 12:00