<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hydrogenaudio.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NEMO7538</id>
	<title>Hydrogenaudio Knowledgebase - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hydrogenaudio.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NEMO7538"/>
	<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Special:Contributions/NEMO7538"/>
	<updated>2026-04-29T15:49:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=38050</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=38050"/>
		<updated>2024-06-18T08:23:59Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:Foobar2000 Legacy Default UI components|Legacy Default UI components]]&lt;br /&gt;
[[Category:Foobar2000 Legacy Columns UI components|Legacy Columns UI components]]&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Quick Search Toolbar&lt;br /&gt;
| screenshot           = [[Image:QuickSearch3.png|256px]]&lt;br /&gt;
| caption              = Quick Search View&lt;br /&gt;
| module_name          = foo_quicksearch&lt;br /&gt;
| developer            = NEMO7538&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 3.6&lt;br /&gt;
| stable_release_date  = 2015-10-13&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.3&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = Default UI, Columns UI&lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [https://hydrogenaud.io/index.php/topic,44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [https://hydrogenaud.io/index.php/topic,80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
In addition,  Ctrl+Backspace will delete a &amp;quot;word&amp;quot; in the search box.&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist and highlight the results within the playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg highlighting the current playlist items according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.9&#039;&#039;&#039; [2024-06-18]&lt;br /&gt;
** Fixed a crash that happens when foo_multisource is also installed.&lt;br /&gt;
* &#039;&#039;&#039;V3.8&#039;&#039;&#039; [2024-05-15]&lt;br /&gt;
** Fix the quicksearch window on-close breaking foobar fonts&lt;br /&gt;
** Make the preferences page have a dark mode&lt;br /&gt;
* &#039;&#039;&#039;V3.7&#039;&#039;&#039; [2024-05-08]&lt;br /&gt;
** Updated to the foobar2000 SDK 2023-09-23 with an x86_64 component build now available.&lt;br /&gt;
** Fixed a bug that caused the &amp;quot;Set focus to search results&amp;quot; to activate when the text hasn&#039;t changed.&lt;br /&gt;
** Added a handler for Ctrl+Backspace to delete a &amp;quot;word&amp;quot; in the search box&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37886</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37886"/>
		<updated>2024-05-17T17:34:14Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:Foobar2000 Legacy Default UI components|Legacy Default UI components]]&lt;br /&gt;
[[Category:Foobar2000 Legacy Columns UI components|Legacy Columns UI components]]&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Quick Search Toolbar&lt;br /&gt;
| screenshot           = [[Image:QuickSearch3.png|256px]]&lt;br /&gt;
| caption              = Quick Search View&lt;br /&gt;
| module_name          = foo_quicksearch&lt;br /&gt;
| developer            = NEMO7538&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 3.6&lt;br /&gt;
| stable_release_date  = 2015-10-13&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.3&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = Default UI, Columns UI&lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [https://hydrogenaud.io/index.php/topic,44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [https://hydrogenaud.io/index.php/topic,80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
In addition,  Ctrl+Backspace will delete a &amp;quot;word&amp;quot; in the search box.&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist and highlight the results within the playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg highlighting the current playlist items according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.8&#039;&#039;&#039; [2024-05-15]&lt;br /&gt;
** Fix the quicksearch window on-close breaking foobar fonts&lt;br /&gt;
** Make the preferences page have a dark mode&lt;br /&gt;
* &#039;&#039;&#039;V3.7&#039;&#039;&#039; [2024-05-08]&lt;br /&gt;
** Updated to the foobar2000 SDK 2023-09-23 with an x86_64 component build now available.&lt;br /&gt;
** Fixed a bug that caused the &amp;quot;Set focus to search results&amp;quot; to activate when the text hasn&#039;t changed.&lt;br /&gt;
** Added a handler for Ctrl+Backspace to delete a &amp;quot;word&amp;quot; in the search box&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components&amp;diff=37882</id>
		<title>Foobar2000:Components</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components&amp;diff=37882"/>
		<updated>2024-05-08T08:21:24Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{fb2k}}&lt;br /&gt;
This page contains most [[foobar2000]] components available at time of history last update.&lt;br /&gt;
&lt;br /&gt;
{{panel|This Page will show only components which are built for at least x86 64-bit versions of Foobar2000. Components which exist in 32-bit version &#039;&#039;&#039;only&#039;&#039;&#039;, are now to be found on [[foobar2000:Legacy_components|Legacy Components]] page. Transition of wiki categories will take some time. Read more, here: [[foobar2000:Version_2.0_Release_Notes|Release Notes Version 2.0]]|color=green}}&lt;br /&gt;
&lt;br /&gt;
==Official components==&lt;br /&gt;
The following components are created and maintained by the foobar2000 development team. Support for them should be asked for in the [https://hydrogenaud.io/index.php/board,29.0.html Support forum].&lt;br /&gt;
&lt;br /&gt;
===Included in the installer===&lt;br /&gt;
====Required components====&lt;br /&gt;
The following components are required for installation, in addition to foobar2000 Core module. These components are installed when type of installation is Minimal.&lt;br /&gt;
&lt;br /&gt;
* [[Foobar2000:Components/Default user interface (foo ui std)|Default user interface (foo_ui_std)]] · Allows complex layout using building blocks that are called UI Elements, many of them already present after the installation. Additional Components, which are incorporated in Default user interface, are: Album List, Decoding Speed Test and File Integrity Verifier.&lt;br /&gt;
* Standard DSP Array (foo_dsp_std) · Equalizer, resampler, advanced limiter, hard limiter, stereo to 4 channel upmixer and a couple other effects.&lt;br /&gt;
* Standard Input Array (foo_input_std), which includes additional Components: CD Audio Decoder, FFmpeg Decoders and Monkey&#039;s Audio Decoder.&lt;br /&gt;
&lt;br /&gt;
====Optional components====&lt;br /&gt;
[[Image:Optional_features.png|thumb|The Optional Features screen of the foobar2000 installer]]&lt;br /&gt;
In addition to foobar2000&#039;s core functionality, following components can be installed as needed, through choice of Type of install.&lt;br /&gt;
&lt;br /&gt;
If selected &amp;quot;Normal&amp;quot;, following components will be included, cumulative to Minimal:&lt;br /&gt;
* [[Foobar2000:Converter|Converter (foo_converter)]] · Converts files to WAV or any other formats using command line encoders.&lt;br /&gt;
* [[Foobar2000:Equalizer DSP|Equalizer DSP (foo_dsp_eq)]] · Equalizer DSP (foo_dsp_eq) · An 18-band graphic equalizer based on SuperEQ library.&lt;br /&gt;
&lt;br /&gt;
If selected &amp;quot;Full&amp;quot;, following additional components will be included, cumulative to Normal and Minimal:&lt;br /&gt;
* [[Foobar2000:Archive Reader (foo_unpack)|Archive Reader (foo_unpack)]] · Adds support for playing files directly from ZIP RAR and GZIP archives.&lt;br /&gt;
* [[Foobar2000:Components/Freedb_Tagger_(foo_freedb2)|Freedb Tagger (foo_freedb2)]] · Tag retrieving support from freedb service for any set of files (mp3,mpc,flac,...-not only CDDA tracks).&lt;br /&gt;
* [[Foobar2000:File Operations (foo_fileops)|File Operations (foo_fileops)]] · Renames, moves, or copies files according to specified patterns.&lt;br /&gt;
&lt;br /&gt;
===Additional components===&lt;br /&gt;
These components are provided as separate downloads, found on the [http://www.foobar2000.org/components/author/Peter Official Components page]. &lt;br /&gt;
*[[Foobar2000:Components/ABX Comparator (foo abx)|ABX comparator (foo_abx)]] · Performs a double-blind listening test between two tracks.&lt;br /&gt;
*[[Foobar2000:Components/AdPlug (foo_adplug)|AdPlug (foo_adplug)]] Decoding support for all Adlib FM chip formats supported by the AdPlug library.&lt;br /&gt;
*[[Foobar2000:Components/ASIO Output (foo_out_asio)|ASIO Output (foo_out_asio)]] · Provides ASIO output support.&lt;br /&gt;
*[[Foobar2000:Components/Audio CD Writer (foo_burninate)|Audio CD Writer (foo_burninate)]] · CD burning support.&lt;br /&gt;
*[[Foobar2000:Components/Classical User Interface (foo_ui_classic)|Classical User Interface (foo_ui_classic)]] · The Default User Interface from early foobar2000 versions.&lt;br /&gt;
*[[Foobar2000:Components/Command-Line Decoder Wrapper (foo_input_exe)|Command-Line Decoder Wrapper (foo_input_exe)]] · Allows to play or convert any audio format with a standalone command-line decoder available.&lt;br /&gt;
*[[Foobar2000:Components/DEAF Module Decoder (foo_deaf)|DEAF Module Decoder (foo_deaf)]] · Plays module files: MOD, S3M, XM, IT, 669, PTM, PSM, MTM and UMX.&lt;br /&gt;
*[[Foobar2000:Components/FFmpeg Decoder Wrapper (foo_input_ffmpeg)|FFmpeg Decoder Wrapper (foo_input_ffmpeg)]] · Allows foobar2000 to read arbitrary file formats via user-supplied ffmpeg.exe and ffprobe.exe.&lt;br /&gt;
* [[Foobar2000:Components/Game Music Emu Decoder (foo_input_gme)|Game Music Emu Decoder (foo_input_gme)]]· plays several emulation formats, based on the &amp;quot;Game_Music_Emu&amp;quot; audio library by Shay Green&lt;br /&gt;
*[[Foobar2000:Components/Masstagger (foo_masstag)|Masstagger (foo_masstag)]] · Automates various tag editing operations.&lt;br /&gt;
* [[Foobar2000:Components/Monkey&#039;s Audio Decoder (foo_input_monkey)|Monkey&#039;s Audio Decoder (foo_input_monkey)]] Adds decoding support for Monkey&#039;s Audio files (.[[APE]]) as well as APE Link files (.[[APL]]).&lt;br /&gt;
*[[Foobar2000:Components/OpenMPT Module Decoder (foo_openmpt54)|OpenMPT Module Decoder (foo_openmpt54)]] · This component decodes modules, or music files combining both samples and sequence data and effects, using libopenmpt.&lt;br /&gt;
*[[Foobar2000:Components/Playback Statistics v3.x (foo playcount)|Playback Statistics (foo playcount)]] Collects playback statistics for your Media Library content.&lt;br /&gt;
*[[Foobar2000:Components/Quick Tagger (foo_quicktag)|Quick Tagger (foo_quicktag)]] · Adds customizable context menu commands for quickly setting tag fields to preconfigured values.&lt;br /&gt;
*[[Foobar2000:Components/Text Tools (foo texttools)|Text Tools (foo_texttools)]] · Adds customizable context menu commands for copying information about the selected tracks to Windows Clipboard. &lt;br /&gt;
*[[Foobar2000:Components/Utility DSP Array (foo_dsp_utility)|Utility DSP Array (foo_dsp_utility)]] · Contains the following utility DSP modules: Add Noise, DC Offset, Sample Offset, Scale, Upmix, Stereo Balance.&lt;br /&gt;
*[[Foobar2000:Components/UPnP MediaRenderer Output (foo_out_upnp)|UPnP MediaRenderer Output (foo_out_upnp)]] · Presents any UPnP MediaRenderer devices present on your home network as foobar2000 output devices.&lt;br /&gt;
*[[Foobar2000:Components/VST 2.x/3.x Adapter (foo_dsp_vst3)|VST 2.x/3.x Adapter (foo_dsp_vst3)]] · Allows VST effects to be used as DSPs in foobar2000.&lt;br /&gt;
&lt;br /&gt;
==3rd party components==&lt;br /&gt;
The following components are created and maintained by 3rd-party authors, using foobar2000&#039;s [http://www.foobar2000.org/SDK.html SDK]. Support for these components should be asked for in the [https://hydrogenaud.io/index.php/board,33.0.html 3rd Party Plugins forum]. Asking for help directly in the component&#039;s thread is usually preferred.&lt;br /&gt;
=== User Interface Modules ===&lt;br /&gt;
&lt;br /&gt;
==== Columns UI ====&lt;br /&gt;
[[Foobar2000:Components/Columns UI (foo_ui_columns)|Columns UI (foo_ui_columns)]] · Very popular alternate interface for foobar2000 based on a columns and panel layout.&lt;br /&gt;
&lt;br /&gt;
Columns UI introduced components with [[#Panels|panel]] capability which extend the user interface.&lt;br /&gt;
&lt;br /&gt;
=== User interface add-ons ===&lt;br /&gt;
==== UI elements ====&lt;br /&gt;
The [[Foobar2000:Components/Default user interface (foo_ui_std)|default user interface (foo_ui_std)]] · Included in the standard installation package, can be extended with the following component(s):&lt;br /&gt;
* [[Foobar2000:Components/Coverflow (foo coverflow)|Coverflow (foo_coverflow)]] · Interactive 3D Coverflow.&lt;br /&gt;
* [[Foobar2000:Components/Floating window (foo_flowin)|Floating window (foo_flowin)]] ·  a component that host Default UI elements.&lt;br /&gt;
* [[Foobar2000:Components/JScript Panel 3 (foo_jscript_panel3)|JScript Panel 3 (foo_jscript_panel3)]] · a component which allows creation of customisable panels that can be written with JavaScript rather than the C++ required by the foobar2000 SDK.&lt;br /&gt;
* [[Foobar2000:Components/Waveform Minibar (mod) (foo_wave_minibar_mod)|Waveform Minibar (mod) (foo_wave_minibar_mod)]] · Element for DUI with seekbar functionality on top of the waveform of the playing song.&lt;br /&gt;
&lt;br /&gt;
==== Panels ====&lt;br /&gt;
Panels extend the functionality of Columns UI components.&lt;br /&gt;
* [[Foobar2000:Components/Album List Panel (foo_uie_albumlist)|Album List Panel (foo_uie_albumlist)]] · Displays the database in a treeview using customizable sorting methods (by genre, artist, directory, etc.)&lt;br /&gt;
* [[Foobar2000:Components/Console_(foo_uie_console)|Console (foo_uie_console)]] · Panel version of console. Displays diagnostic messages. Requires Columns UI 0.1.3 beta 1 or newer.&lt;br /&gt;
* [[Foobar2000:Components/JScript Panel 3 (foo_jscript_panel3)|JScript Panel 3 (foo_jscript_panel3)]] · a component which allows creation of customisable panels that can be written with JavaScript rather than the C++ required by the foobar2000 SDK.&lt;br /&gt;
* [[Foobar2000:Components/Popup Panels (foo_popup_panels)|Popup Panels (foo_popup_panels)]] · This component allows displaying ColumnsUI panels in a popup window.&lt;br /&gt;
* [[Foobar2000:Components/Waveform Minibar (mod) (foo_wave_minibar_mod)|Waveform Minibar (mod) (foo_wave_minibar_mod)]] · Waveform Minibar (mod) is a seekbar that shows the waveform of the track.&lt;br /&gt;
&lt;br /&gt;
===DSP===&lt;br /&gt;
====Converters====&lt;br /&gt;
* [[Foobar2000:Components/SRC Resampler DSP (foo_dsp_src_resampler)|SRC Resampler DSP (foo_dsp_src_resampler)]] · Secret Rabbit Code resampler.&lt;br /&gt;
&lt;br /&gt;
====Effects====&lt;br /&gt;
* [[Foobar2000:Components/Crossmix DSP (foo_dsp_crossmix)|Crossmix DSP (foo_dsp_crossmix)]] · Mixes the beginning of the next track over the ending of the previous track without any fading.&lt;br /&gt;
* [[Foobar2000:Components/Effect DSP (foo_dsp_effect)|Effect DSP (foo_dsp_effect)]] · Adds miscellaneous effects.&lt;br /&gt;
* [[Foobar2000:Components/Fade In-Out DSP (foo_dsp_fadeinout)|Fade In/Out DSP (foo_dsp_fadeinout)]] · Allows adding linear, sine, cosine, or logarithmic shaped fade-in and fade-out effects.&lt;br /&gt;
* [[Foobar2000:Components/Vocal Exciter DSP (foo_dsp_vocal_exciter)|Vocal Exciter DSP (foo_dsp_vocal_exciter)]] · Adds harmonically related distortion to high frequencies to give more presence.&lt;br /&gt;
&lt;br /&gt;
====Headphones====&lt;br /&gt;
* [[Foobar2000:Components/MathAudio Headphone EQ (foo_headphone_eq)|MathAudio Headphone EQ (foo_headphone_eq)]] · Helps to detect and compensate for the unwanted resonances in high-quality headphones and earphones.&lt;br /&gt;
&lt;br /&gt;
====Multichannel audio====&lt;br /&gt;
* [[Foobar2000:Components/Downmixer DSP (foo_dsp_downmixer)|Downmixer DSP (foo_dsp_downmixer)]] · Downmixes source to the selected output format.&lt;br /&gt;
* [[Foobar2000:Components/Trifield LR-LRC Decoder DSP (foo_dsp_trifield)|Trifield LR→LRC Decoder DSP (foo_dsp_trifield)]] · Implementation of Michael Gerzon&#039;s Trifield decoder.&lt;br /&gt;
&lt;br /&gt;
====Multi-purpose====&lt;br /&gt;
* [[Foobar2000:Components/MathAudio Room EQ (foo_room_eq)|MathAudio Room EQ (foo_room_eq)]] · Corrects deficiencies of room acoustics (multipoint compensation).&lt;br /&gt;
* [[Foobar2000:Components/mda Dither DSP (foo_dsp_mdadither)|mda Dither DSP (foo_dsp_mdadither)]] · Range of dither types for word-length reduction.&lt;br /&gt;
* [[Foobar2000:Components/Stereo Convolver (foo_dsp_stereoconv)|Stereo Convolver (foo_dsp_stereoconv)]] · Take stereo audio and convolve each channel with two impulse responses.&lt;br /&gt;
&lt;br /&gt;
====Utilities====&lt;br /&gt;
* [[Foobar2000:Components/Post-track Silence (foo_dsp_silence)|Affix silence (foo_dsp_silence)]] Inserts a configurable amount of silence after each track to help external devices like MiniDisc players to sync track changes.&lt;br /&gt;
* [[Foobar2000:Components/Amplifier DSP (foo_dsp_amp)|Amplifier DSP (foo_dsp_amp)]] · A simple volume adjustment DSP allowing the signal amplitude to be both boosted and lowered.&lt;br /&gt;
* [[Foobar2000:Components/EBU R128 Normalizer (foo_r128norm)|EBU R128 Normalizer (foo_r128norm)]] · This component provides a simple DSP for normalizing audio tracks using a running windowed calculation of the EBU R-128 standard.&lt;br /&gt;
* [[Foobar2000:Components/Fake Gapless DSP (foo_dsp_fakegapless)|Fake Gapless DSP (foo_dsp_fakegapless)]] · Briefly fades track changes to silence to avoid glitches with gapless tracks when encoded with lossy codecs.&lt;br /&gt;
* [[Foobar2000:Components/GAP Killer (foo_dsp_nogaps)|Gap Killer DSP (foo_dsp_nogaps)]] · Removes silence from track transitions.&lt;br /&gt;
* [[Foobar2000:Components/Hard Clip DSP (foo_dsp_hardclip)|Hard Clip DSP (foo_dsp_hardclip)]] · Clips peaks forcing foobar2000 output to match players that don&#039;t support floating point output.&lt;br /&gt;
* [[foobar2000:Components/Noise Sharpening (foo_dsp_delta)|Noise Sharpening (foo_dsp_delta)]] · This component boosts high frequencies.&lt;br /&gt;
* [[Foobar2000:Components/Pregap DSP (foo_dsp_pregap)|Pregap DSP (foo_dsp_pregap)]] · Inserts silence before real playback begins.&lt;br /&gt;
* [[Foobar2000:Components/ReplayGain DSP (foo_dsp_replaygain)|ReplayGain DSP (foo_dsp_replaygain)]] · ﻿Alternative ReplayGain implementation with support for smarter automatic mode selection.&lt;br /&gt;
* [[Foobar2000:Components/Skip Silence DSP (foo_dsp_skip_silence)|Skip Silence DSP (foo_dsp_skip_silence)]] · Automatically fast forwards over extended periods of silence.&lt;br /&gt;
* [[Foobar2000:Components/Smart Dither DSP (foo_dsp_dither)|Smart Dither DSP (foo_dsp_dither)]] · TPDF dither DSP that leaves digital silence untouched.&lt;br /&gt;
&lt;br /&gt;
===Input===&lt;br /&gt;
====Music decoders====&lt;br /&gt;
* [[Foobar2000:Components/DVD Audio Decoder (foo_input_dvda)|DVD Audio Decoder (foo_input_dvda)]] · Decodes DVD Audio ([[DVD Audio]]) Disks.&lt;br /&gt;
* [[Foobar2000:Components/OptimFROG Decoder_(foo_input_ofr)|OptimFROG Decoder (foo_input_ofr)]] · Decodes OptimFROG audio format.&lt;br /&gt;
* [[foobar2000:Components/QOA Audio Decoder (foo_qoa)|QOA Audio Decoder (foo_qoa)]] · Decodes the Quite OK Audio (QOA) format.&lt;br /&gt;
* [[Foobar2000:Components/TAK Decoder (foo_input_tak)|TAK Decoder (foo_input_tak)]] · Adds support for decoding and tagging [[TAK]] files as well as reading embedded album art.&lt;br /&gt;
* [[Foobar2000:Components/TTA Audio Decoder (foo_input_tta)|TTA Audio Decoder (foo_input_tta)]] · Decodes True Audio ([[TTA]]) audio format.&lt;br /&gt;
&lt;br /&gt;
====Other decoders====&lt;br /&gt;
* [[Foobar2000:Components/Another Slight Atari Player (foo_asap)|Another Slight Atari Player (foo_asap)]]· adds playback of Atari 8-bit chiptunes to foobar2000.&lt;br /&gt;
* [[Foobar2000:Components/MIDI Player (foo_midi)|MIDI Player (foo_midi)]] · adds playback of MIDI files to foobar2000.&lt;br /&gt;
* [[Foobar2000:Components/sidplay (foo_sid)|SID Player (foo_sid)]] · adds playback of SID and MUS files to foobar2000.&lt;br /&gt;
* [[Foobar2000:Components/V2M Decoder (foo_input_v2m)|V2M Decoder (foo_input_v2m)]] · Farbrausch V2 module (V2M) decoder.&lt;br /&gt;
* [[Fobar2000:Components/vgmstream decoder (foo_input_vgmstrean)|vgmstream decoder]] (foo_input_vgmstrean) · allows playback of hundreds of streamed (prerecorded) audio formats used in video games.&lt;br /&gt;
&lt;br /&gt;
===Visualisation===&lt;br /&gt;
* [[Foobar2000:Components/ProjectM Visualisation (foo_vis_projectM)|ProjectM Visualisation (foo_vis_projectM)]] Based on the ProjectM project, which is a reimplementation of Milkdrop under OpenGL.&lt;br /&gt;
* [[Foobar2000:Components/Enhanced Spectrum Analyzer (foo enhanced spectrum analyzer)|Enhanced Spectrum Analyzer (foo_enhanced_spectrum_analyzer)]] Displays a detailed FFT spectrum in a logarithmic frequency scale.&lt;br /&gt;
* [[Foobar2000:Components/Loudness Peakmeter (foo loudness peakmeter)|Loudness Peakmeter (foo_loudness_peakmeter)]] Displays a loudness meter and graph in real-time.&lt;br /&gt;
* [[Foobar2000:Components/Spectrum Analyzer (foo vis spectrum analyzer)|Spectrum Analyzer (foo_vis_spectrum_analyzer)]] Display an audio spectrum visualization. Currently a remake of [[foobar2000:Components/Musical Spectrum (foo_musical_spectrum)|Musical Spectrum]] component for foobar2000 64-bit versions&lt;br /&gt;
* [[foobar2000:Components/MIDI Visualizer (foo_vis_midi)|MIDI Visualizer (foo_vis_midi)]] Visualize MIDI events.&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
====General====&lt;br /&gt;
* [[Foobar2000:Components/Cover Info (foo_cover_info)|Cover Info (foo_cover_info)]] · This component scans a selection of files for embedded album art and stores the results in a database.&lt;br /&gt;
* [[Foobar2000:Components/Cover Resizer (foo_cover_resizer)|Cover Resizer (foo_cover_resizer)]] · Utilities for manipulating embedded art of files from within of foobar 2000.&lt;br /&gt;
* [[Foobar2000:Components/Loop (foo_loop)|Loop (foo_loop)]] · This component offers looping in a track.&lt;br /&gt;
* [[Foobar2000:Components/Metronome (foo_metronome)|Metronome (foo_metronome)]] · a simple console metronome.&lt;br /&gt;
* [[Foobar2000:Components/No Display Standby (foo_nds)|No Display Standby (foo_nds)]] · This component disables monitor power saving feature while music is playing.&lt;br /&gt;
* [[Foobar2000:Components/No Sleep (foo_nosleep)|No Sleep (foo_nosleep)]] · Prevents system from entering standby mode while foobar2000 is running.&lt;br /&gt;
* [[Foobar2000:Components/Preview (foo_preview)|Preview (foo_preview)]] · Plays first seconds of consecutive tracks.&lt;br /&gt;
* [[Foobar2000:Components/QSearch (foo_qsearch|QSearch (foo_qsearch)]] · Provides 6 context menu items to create playlists or open a search window from the selected track&#039;s metadata.&lt;br /&gt;
* [[Foobar2000:Components/Quicksearch UI Element (foo quicksearch)|Quicksearch UI Element (foo_quicksearch)]] Search toolbar that sends results to a playlist.&lt;br /&gt;
* [[Foobar2000:Components/Replaygain Override (foo rg trn)|Replaygain Override (foo rg trn)]] · Provides a way to specify which replaygain modes to use for each playback order.&lt;br /&gt;
* [[Foobar2000:Components/Renamer (foo_renamer)|Renamer (foo_renamer)]] · An alternative file renamer for people who wish to configure reserved character replacement rules manually.&lt;br /&gt;
* [[Foobar2000:Components 0.9/Run (foo_run)|Run Services (foo_run)]] · Allows you to run a external program with the foobar syntax.&lt;br /&gt;
* [[Foobar2000:Components/Run Main (foo_run_main)|Run Main (foo_run_main)]] · This component has full support for dynamically generated menu commands.&lt;br /&gt;
* [[Foobar2000:Components/Scheduler Mod (foo_scheduler_mod)|Scheduler Mod (foo_scheduler_mod)]] Plugin for scheduling actions like play, stop, system shutdown/wake up and many more.&lt;br /&gt;
* [[Foobar2000:Components/Seekbox (foo_seek_box)|Seekbox (foo_seek_box)]] · Main menu item that pops up a box for seeking to a particular hh:mm:ss time in the current track.&lt;br /&gt;
* [[Foobar2000:Components/Seek to Time (foo_seek_to_time)|Seek to Time (foo_seek_to_time)]] · This component allows defining timestamps to directly seek to with keyboard shortcuts.&lt;br /&gt;
* [[Foobar2000:Components/Stop after Album (foo_stopafteralbum)|Stop after Album (foo_stopafteralbum)]] · This component allows stop playing according to defined tags.&lt;br /&gt;
* [[Foobar2000:Components/SQL Tree (foo_uie_sql_tree)|SQL Tree (foo_uie_sql_tree)]] · This component makes possible viewing the media library in a tree structure using SQL queries.&lt;br /&gt;
* [[Foobar2000:Components/SQLite Utilities (foo_sqlite)|SQLite Utilities (foo_sqlite)]] · This component allows viewing and changing the contents of the media library and the playlists by using SQL statements.&lt;br /&gt;
* [[Foobar2000:Components/SVG services (foo_svg_services)|SVG services (foo_svg_services)]] · This component provides an SVG renderer, for use by other foobar2000 components.&lt;br /&gt;
* [[Foobar2000:Components/Timebomb (foo_timebomb)|Timebomb (foo_timebomb)]] · Stop playback / exit program after a specified time.&lt;br /&gt;
* [[Foobar2000:Components/Timebomb2 (foo_timebomb2)|Timebomb2 (foo_timebomb2)]] · Stop playing after predefined time.&lt;br /&gt;
* [[Foobar2000:Components/PGGB-RT (foo pggb rt)|PGGB-RT (foo_pggt_rt)]] Real-time implementation of Remastero&#039;s PGGB resampling algorithm implemented as foobar2000 component. Only available as 64-bit component.&lt;br /&gt;
* [[Foobar2000:Components/Vital_Bookmarks_(foo_vbookmark)|Vital Bookmarks (foo_vbookmark)]] · Provides playback bookmark functionality.&lt;br /&gt;
&lt;br /&gt;
====Lyrics====&lt;br /&gt;
* [[Foobar2000:Components/ESlyric (foo_uie_eslyric)|ESlyrics (foo_uie_eslyric)]] · Alternative lyric show component.&lt;br /&gt;
* [[Foobar2000:Components/Lyrics Show Panel 3 (foo_uie_lyrics3)|Lyrics Show Panel 3 (foo_uie_lyrics3)]] · Component which can download and display both timestamped and text only lyrics.&lt;br /&gt;
* [[foobar2000:Components/OpenLyrics (foo_openlyrics)|OpenLyrics (foo_openlyrics)]] · Modern replacement for Lyric Show Panel 3.&lt;br /&gt;
&lt;br /&gt;
====Notifier====&lt;br /&gt;
* [[Foobar2000:Components/Taskbar Playback Progress Bar (foo_taskbar_playback_progress_bar)|Taskbar Playback Progress Bar (foo_taskbar_playback_progress_bar)]] · Recompile of foo_taskbar_playback_progress_bar by Alexey V. Grishin. Fixed potential divide by zero crash and added 64-bit support.&lt;br /&gt;
&lt;br /&gt;
====Online database====&lt;br /&gt;
* [[Foobar2000:Components 0.9/Audioscrobbler (foo_audioscrobbler)|Audioscrobbler (foo_audioscrobbler)]] · Audioscrobbler will send the name of every song you play on your computer to [https://www.last.fm/ Last.fm].&lt;br /&gt;
* [[Foobar2000:Components/Last.fm. Playcount Sync (foo_lastfm_playcount_sync)|Last.fm. Playcount Sync (foo_lastfm_playcount_sync)]] · This component fetches [https://www.last.fm/ Last.fm] playcounts and first played/last played dates as you listen.&lt;br /&gt;
* [[Foobar2000:Components/Scrobble (foo_scrobble)|Scrobble (foo_scrobble)]] · This is component for scrobbling to [https://www.last.fm/ Last.fm]&lt;br /&gt;
&lt;br /&gt;
====Online radio/video ====&lt;br /&gt;
* [[Foobar2000:Components/Youtube (foo_youtube)|Youtube (foo_youtube)]] · This component adds possibility to play Youtube, Vimeo and Dailymotion clips directly by their URL.&lt;br /&gt;
&lt;br /&gt;
====Playlist tools====&lt;br /&gt;
* [[Foobar2000:Components/Cue Fix (foo_cue_fix)|Cue Fix (foo_cue_fix)]] · Component for foobar2000 to fix CUE/FLAC,APE,WAVE problems.&lt;br /&gt;
* [[Foobar2000:Components/Cuesheet_Creator_(foo_cuesheet_creator)|Cuesheet Creator(foo_cuesheet_creator)]] · Component for generating cuesheet from playlist.&lt;br /&gt;
* [[Foobar2000:Components/Play Next (foo_play_next)|Play Next (foo_play_next)]] · Adds the selected track to the beginning of the playback queue to be played next.&lt;br /&gt;
* [[Foobar2000:Components/Play Track (foo_play_track)|Play Track (foo_play_track)]] · Adds a Play Track submenu to the main Playback menu.&lt;br /&gt;
* [[Foobar2000:Components/Playlist Attributes (foo_playlist_attributes)|Playlist Attributes (foo_playlist_attributes)]] · This component uses allows assigning various attributes to a playlist.&lt;br /&gt;
* [[Foobar2000:Components/Playlist Fix (foo_playlist_fix)|Playlist Fix (foo_playlist_fix)]] · This component uses title formatting to match dead playlist items against library items and updates the playlist entries.&lt;br /&gt;
* [[Foobar2000:Components/Playlist_Tour_(foo_playlisttour)|Playlist Tour (foo_playlisttour)]] · Recently activated playlists prev/next history navigation.&lt;br /&gt;
* [[Foobar2000:Components/Random Pools (foo_random_pools)|Random Pools (foo_random_pools)]] · is component for creating random playlist entries selected and grouped by various pool definitions.&lt;br /&gt;
* [[Foobar2000:Components/Inactive Tracks (foo_skip)|Skip Track (foo_skip)]] · Skips tracks that are marked via a tag as inactive.&lt;br /&gt;
&lt;br /&gt;
====Playback statistics====&lt;br /&gt;
* [[Foobar2000:Components/foo enhanced playcount|Enhanced Playback Statistics (foo_enhanced_playcount)]] · This component collects and maintains enhanced statistics for played songs.&lt;br /&gt;
* [[Foobar2000:Components/Statistics (foo_statistics)|Statistics (foo_statistics)]] · Collects all kind of foobar2000 statistics and prints them to console.&lt;br /&gt;
&lt;br /&gt;
====Remote control====&lt;br /&gt;
&lt;br /&gt;
* [[Foobar2000:Components/Beefweb Remote Control (foo_beefweb)|Beefweb Remote Control (foo_beefweb)]] · Provides web interface and REST-like API for controlling player remotely.&lt;br /&gt;
* [[Foobar2000:Components/HTTP Remote Control (foo_httpcontrol)|HTTP Remote Control (foo_httpcontrol)]] · is a remote control component for the foobar2000 player.&lt;br /&gt;
&lt;br /&gt;
====Tagging====&lt;br /&gt;
* [[Foobar2000:Components/BPM Analyser (foo_bpm)|BPM Analyser (foo_bpm)]] Automatically calculate the BPM of songs. Manual BPM calculation also available.&lt;br /&gt;
* [[Foobar2000:Components/Discogger_(foo_discogger)|Discogger (foo_discogger)]] · Retrieve info and album art from Discogs.com database.&lt;br /&gt;
* [[Foobar2000:Components/External Tags (foo_external_tags)|External Tags (foo_external_tags)]] · This component adds tagging support for non-taggable file formats.&lt;br /&gt;
* [[Foobar2000:Components/MusicBrainz Tagger_(foo_musicbrainz)|MusicBrainz Tagger_(foo_musicbrainz)]] · Musicbrainz tagger.&lt;br /&gt;
* [[Foobar2000:Components/MusicBrainz64_(foo_musicbrainz64)|MusicBrainz64 (foo_musicbrainz64)]] · Musicbrainz tagger (alternative).&lt;br /&gt;
* [[Foobar2000:Components 1.0/TagBox component (foo_tagbox)|TagBox (foo_tagbox))]] · Tag editing UI element (no pop-up dialog needed) and standalone window.&lt;br /&gt;
* [[Foobar2000:Components/Tag Normalizer (foo_tag_normalizer)|Tag Normalizer (foo_tag_normalizer)]] · This component Normalizes Unicode characters in tags.&lt;br /&gt;
&lt;br /&gt;
====Utilities====&lt;br /&gt;
* [[Foobar2000:Components/Audio MD5 (foo_audiomd5)|Audio MD5 (foo_audiomd5)]] · Component for generating and verifying MD5 checksum of audio data.&lt;br /&gt;
* [[Foobar2000:Components/Feature Watcher (foo_whatsnew)|Feature Watcher (foo_whatsnew)]] · This Component watches available features and reports changes.&lt;br /&gt;
* [[Foobar2000:Components/Recorder (foo_record)|Recorder (foo_record)]] · Record audio from selected sound card input.&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
====Interfaces====&lt;br /&gt;
* [[Foobar2000:Components/WASAPI shared output (foo_out_wasapis)|WASAPI shared output (foo_out_wasapis)]] · Shared mode WASAPI output for Vista and newer Windows versions.&lt;br /&gt;
* [[Foobar2000:Components/WASAPI shared output (debug) (foo_out_wasapis_debug)|WASAPI shared output (foo_out_wasapis_debug)]] · Shared mode WASAPI output for Vista and newer Windows versions, with additional debugging capabilities.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* {{foobar2000|http://www.foobar2000.org/components|Components Repository}}&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37881</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37881"/>
		<updated>2024-05-08T05:02:14Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Special Keys */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:Foobar2000 Legacy Default UI components|Legacy Default UI components]]&lt;br /&gt;
[[Category:Foobar2000 Legacy Columns UI components|Legacy Columns UI components]]&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Quick Search Toolbar&lt;br /&gt;
| screenshot           = [[Image:QuickSearch3.png|256px]]&lt;br /&gt;
| caption              = Quick Search View&lt;br /&gt;
| module_name          = foo_quicksearch&lt;br /&gt;
| developer            = NEMO7538&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 3.6&lt;br /&gt;
| stable_release_date  = 2015-10-13&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.3&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = Default UI, Columns UI&lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [https://hydrogenaud.io/index.php/topic,44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [https://hydrogenaud.io/index.php/topic,80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
In addition,  Ctrl+Backspace will delete a &amp;quot;word&amp;quot; in the search box.&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist and highlight the results within the playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg highlighting the current playlist items according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.7&#039;&#039;&#039; [2024-05-08]&lt;br /&gt;
** Updated to the foobar2000 SDK 2023-09-23 with an x86_64 component build now available.&lt;br /&gt;
** Fixed a bug that caused the &amp;quot;Set focus to search results&amp;quot; to activate when the text hasn&#039;t changed.&lt;br /&gt;
** Added a handler for Ctrl+Backspace to delete a &amp;quot;word&amp;quot; in the search box&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37880</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37880"/>
		<updated>2024-05-08T05:01:06Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:Foobar2000 Legacy Default UI components|Legacy Default UI components]]&lt;br /&gt;
[[Category:Foobar2000 Legacy Columns UI components|Legacy Columns UI components]]&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Quick Search Toolbar&lt;br /&gt;
| screenshot           = [[Image:QuickSearch3.png|256px]]&lt;br /&gt;
| caption              = Quick Search View&lt;br /&gt;
| module_name          = foo_quicksearch&lt;br /&gt;
| developer            = NEMO7538&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 3.6&lt;br /&gt;
| stable_release_date  = 2015-10-13&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.3&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = Default UI, Columns UI&lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [https://hydrogenaud.io/index.php/topic,44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [https://hydrogenaud.io/index.php/topic,80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist and highlight the results within the playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg highlighting the current playlist items according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.7&#039;&#039;&#039; [2024-05-08]&lt;br /&gt;
** Updated to the foobar2000 SDK 2023-09-23 with an x86_64 component build now available.&lt;br /&gt;
** Fixed a bug that caused the &amp;quot;Set focus to search results&amp;quot; to activate when the text hasn&#039;t changed.&lt;br /&gt;
** Added a handler for Ctrl+Backspace to delete a &amp;quot;word&amp;quot; in the search box&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37879</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37879"/>
		<updated>2024-05-04T06:16:35Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Toolbar Menu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:Foobar2000 Legacy Default UI components|Legacy Default UI components]]&lt;br /&gt;
[[Category:Foobar2000 Legacy Columns UI components|Legacy Columns UI components]]&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Quick Search Toolbar&lt;br /&gt;
| screenshot           = [[Image:QuickSearch3.png|256px]]&lt;br /&gt;
| caption              = Quick Search View&lt;br /&gt;
| module_name          = foo_quicksearch&lt;br /&gt;
| developer            = NEMO7538&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 3.6&lt;br /&gt;
| stable_release_date  = 2015-10-13&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.3&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = Default UI, Columns UI&lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [https://hydrogenaud.io/index.php/topic,44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [https://hydrogenaud.io/index.php/topic,80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist and highlight the results within the playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg highlighting the current playlist items according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37878</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=37878"/>
		<updated>2024-05-04T06:15:10Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Toolbar Icon Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:Foobar2000 Legacy Default UI components|Legacy Default UI components]]&lt;br /&gt;
[[Category:Foobar2000 Legacy Columns UI components|Legacy Columns UI components]]&lt;br /&gt;
{{infobox foobar2000 component&lt;br /&gt;
| name                 = Quick Search Toolbar&lt;br /&gt;
| screenshot           = [[Image:QuickSearch3.png|256px]]&lt;br /&gt;
| caption              = Quick Search View&lt;br /&gt;
| module_name          = foo_quicksearch&lt;br /&gt;
| developer            = NEMO7538&lt;br /&gt;
| repository           = &lt;br /&gt;
| released             = &lt;br /&gt;
| released_ref         = &lt;br /&gt;
| stable_release       = 3.6&lt;br /&gt;
| stable_release_date  = 2015-10-13&lt;br /&gt;
| preview_release      = &lt;br /&gt;
| preview_release_date = &lt;br /&gt;
| foobar2000_minimum   = 1.3&lt;br /&gt;
| foobar2000_maximum   = &lt;br /&gt;
| foobar2000_ui_module = Default UI, Columns UI&lt;br /&gt;
| use                  = &lt;br /&gt;
| license              = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [https://hydrogenaud.io/index.php/topic,44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [https://hydrogenaud.io/index.php/topic,80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg highlighting the current playlist items according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=26516</id>
		<title>Foobar2000:Components/Playlist Organizer (foo plorg)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=26516"/>
		<updated>2015-10-13T07:43:59Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Playlist Organizer (foo plorg)]]&lt;br /&gt;
[[Image:Foo_plorg.png|thumb|right|480px|Playlist Organizer Main view]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_plorg&#039;&#039;&#039; is a simple component that will let your organize your playlists in a treeview fashion. It is available as either a Column UI panel or an UI element for the default UI. It enables your to create folders, hierarchies and move around folders and playlists by dragging and dropping them wherever  you want in the panel.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from  [http://www.foobar2000.org/components/view/foo_plorg here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1).&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use  [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705 this thread]  to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 1.9.1 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Install the toolbar as an UI element (Default UI) or a column UI panel. The commands are available with a right click on the panel.&lt;br /&gt;
Folders and Playlists be can selected by a left click, then moved and dropped around.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The component implements a treeview control, basically made of playlist and folders.&lt;br /&gt;
When the component is used for the first time, a &amp;quot;Default&amp;quot; folder will be created and all playlists placed in this folder.&lt;br /&gt;
&lt;br /&gt;
The basic usage is to create folders (right click anywhere on the panel to access this function) and move your playlists within those newly created folders.&lt;br /&gt;
Folders can be nested.&lt;br /&gt;
Playlists and folders can be moved (e.g. Drag &amp;amp; Dropped) to their desired location within the hierarchy.&lt;br /&gt;
[[Image:Foo_plorg_vis.png|thumb|right|260px|Playlist Organizer Visual status of playlists]]&lt;br /&gt;
==Visual Indication for playlists==&lt;br /&gt;
&lt;br /&gt;
Based on the general or customized color scheme, foo_playlist_organizer will give an indication of Selected, Active and Playing playlists, as well as the source of Drag &amp;amp; Drop operations.&lt;br /&gt;
&lt;br /&gt;
Please note that Selected and Active playlists will be kept equal (except for instance when selecting folders) when the &amp;quot;Activate on single click&amp;quot; option is chosen.&lt;br /&gt;
&lt;br /&gt;
==Windows Management==&lt;br /&gt;
Using foo_plorg as a standalone (popup) window may lead to losing part of your playlists organization if some changes (addition, deletion, reordering, ...) are applied with other playlist managers while the window is closed. The window startup tries to recognize such situations but it is by nature limited. It is recommended that you use it as a &amp;quot;permanent&amp;quot; panel or UI element rather.&lt;br /&gt;
&lt;br /&gt;
The last known tree configuration is however memorized and will be recalled when a new panel or UI element instance is created, so that the tree can be somehow rebuilt.&lt;br /&gt;
&lt;br /&gt;
=Drag &amp;amp; Drop=&lt;br /&gt;
==Basic Drag &amp;amp; Drop==&lt;br /&gt;
Basic drag &amp;amp; drop is triggered by selecting an item and keeping the left button presssed. A visual indication (dotted line around the item, small square below the mouse pointer) will be given that dragging has taken place.&lt;br /&gt;
The selected item can be moved to the desired location and a visual indication (Colored insertion mark or rectangle for folders) of the drop target. Releasing the mouse button will move the dragged item in the requested location.&lt;br /&gt;
===Note:===&lt;br /&gt;
* During a Drag &amp;amp; Drop operation, folders will expand after a short delay to expand their contents&lt;br /&gt;
* Automatic scrolling of the treeview is triggered when the mouse approaches the top or bottom of the treeview.&lt;br /&gt;
* Folders cannot be dropped into their childrens&lt;br /&gt;
* Drag &amp;amp; Drop can take place across foobar windows (for instance in the playlist view), and also to other applications or windows (See &#039;&#039;Exporting playlists or contents&#039;&#039; below)&lt;br /&gt;
* The contents of a playlist can be added to another playlist, when selected as the target of a drop operation. A &#039;&#039;&#039;+&#039;&#039;&#039; sign will appear under the mouse cursor to indicate that this mode is active. Please note that when the target playlist is locked for some reason (e.g. autoplaylists), no content can be added. A visual indication (small circle) is provided in this case below the mouse cursor.&lt;br /&gt;
&lt;br /&gt;
==Exporting playlists==&lt;br /&gt;
Playlists selected as the source of a drag &amp;amp; drop operations can be exported to windows folder (or potentially other applications). Export uses the .fpl format to create playlists in the dropped location.&lt;br /&gt;
Playlist contents (i.e. tracks) can be exported as well but only when the Ctrl key is pressed &#039;&#039;at the start&#039;&#039; of the dragging operation, in which case the files will be copied to the target location.&lt;br /&gt;
&lt;br /&gt;
==Importing playlists or content==&lt;br /&gt;
Similarly, foo_playlist_organizer can act as the target of a drag &amp;amp; drop operation initiated in other foobar windows, windows explorer or other applications. The behavior in this case is similar to the basic drag &amp;amp; drop and a visual indication of the target location will be given, together with an indication in the status bar that content is being imported.&lt;br /&gt;
===Note===&lt;br /&gt;
* The .fpl format is recognized as a valid source and playlists names will be preserved in this case.For other sources (e.g. other playlists formats, tracks, ...) a new playlist will be generated with some &#039;&#039;intelligent&#039;&#039; name generation based on similar fields (e.g. artist, album, genre, ...) found in the tracks being imported.&lt;br /&gt;
&lt;br /&gt;
=Context Menu=&lt;br /&gt;
[[Image:Foo_plorg_contextmenu.png|thumb|left|240px|Playlist Organizer Context Menu]]&lt;br /&gt;
A context menu is available from everywhere in the treeview, from a mouse right click or using the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; short cut.&lt;br /&gt;
Options are the following :&lt;br /&gt;
&lt;br /&gt;
===Activate===&lt;br /&gt;
Will activate the chosen playlist. Note that activation happens automatically when &amp;quot;Activate on single click&amp;quot; is chosen in the preferences page. This option is also available using the &#039;&#039;&#039;Enter&#039;&#039;&#039; key. &lt;br /&gt;
&lt;br /&gt;
===Rename===&lt;br /&gt;
Will rename the selected playlist or folder. This option is also available using the &#039;&#039;&#039;F2&#039;&#039;&#039; key.&lt;br /&gt;
&lt;br /&gt;
===Remove===&lt;br /&gt;
Will remove (delete) the selected playlist or folder. This option is also available using the &#039;&#039;&#039;Del&#039;&#039;&#039; key.&lt;br /&gt;
Note that folders cannot be removed while they still contain playlists or other folders.&lt;br /&gt;
&lt;br /&gt;
===Sort===&lt;br /&gt;
&lt;br /&gt;
Will sort the content of the selected folder alphabetically.&lt;br /&gt;
&lt;br /&gt;
===Autoplaylist (or lock) properties===&lt;br /&gt;
&lt;br /&gt;
Will give access to the properties of an autoplaylist (when selected) or whatever is provided for other playlist locks.&lt;br /&gt;
&lt;br /&gt;
===Contents===&lt;br /&gt;
&lt;br /&gt;
Will give access to the standard context menu, based on the content of the selected playlist.&lt;br /&gt;
&lt;br /&gt;
===Options===&lt;br /&gt;
&lt;br /&gt;
Enables the customization of the Treeview appearance (Playlist information to show on the right side, Framestyle and Colors).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Show Playlist&#039;&#039;&#039; entry enables to select between Number of items, Duration, Size or Nothing.&lt;br /&gt;
&lt;br /&gt;
Please note that customizable colors are limited to Text, Background, Background (selected) and Active playlist, in order to remain consistent with the standard DUI color scheme. For CUI, the Active playlist colors defaults to the custom item frame color (See CUI standard color preferences).&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Reset&amp;quot; option is available to revert to the standard colors, frame style and item count.&lt;br /&gt;
&lt;br /&gt;
===Preferences===&lt;br /&gt;
&lt;br /&gt;
Will link to the general preferences page.&lt;br /&gt;
&lt;br /&gt;
===Restore===&lt;br /&gt;
&lt;br /&gt;
This entry will present the list of previously deleted playlists and enable to restore them. A menu entry (&amp;quot;Clear History&amp;quot;) is available at the bottom of the list and will permanently delete the playlists. Note that the history is not remembered across session and deleted playlists will be permanently lost if foobar is closed.&lt;br /&gt;
&lt;br /&gt;
===Create Playlist, Create Folder===&lt;br /&gt;
&lt;br /&gt;
These options will create new playlist and folders. Note that the newly created playlist or folder will be positioned  after a currently selected playlist or as the first child of a currently selected folder.&lt;br /&gt;
&lt;br /&gt;
==Note==&lt;br /&gt;
* When activated with the the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; shortcut, regular shortcuts are available for each of the menu entries (underlined letter, see picture for details).&lt;br /&gt;
&lt;br /&gt;
=Preferences=&lt;br /&gt;
[[Image:Foo_plorg_preferences.png|right|thumb|484px|Playlist Organizer Preferences]]&lt;br /&gt;
The preferences page is available from the preferences dialog (General-&amp;gt;Playlist Organizer) and provides with the following options.&lt;br /&gt;
==Behavior==&lt;br /&gt;
* &#039;&#039;&#039;Activate on single click&#039;&#039;&#039; will activate (e.g. make visible on the playlist renderer) the selected playlist on a single click. Please note that when this option is selected and a playlist is activated by other means (for example the standard playlist switcher), it will be automatically selected and thus made visible as a result of the standard treeview behavior. &lt;br /&gt;
* &#039;&#039;&#039;Play on double click&#039;&#039;&#039; will play the next item (according to the currently selected playback order) in the selected playlist.&lt;br /&gt;
* &#039;&#039;&#039;Make playing playlist visible on activation&#039;&#039;&#039; will ensure that the playing playlist is visible when activated (for instance when double clicking on the status bar). This option only make sense when &amp;quot;Activate on single click&amp;quot; is unchecked.&lt;br /&gt;
==Nodes==&lt;br /&gt;
* &#039;&#039;&#039;Title formatting&#039;&#039;&#039; enables the customization of how playlists and folders are displayed in the treeview. The formatting of nodes uses foobar [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference formatting language] and the following variables are available : &lt;br /&gt;
**&#039;&#039;%node_name%&#039;&#039; is the name of the node, either a playlist or a folder.&lt;br /&gt;
**&#039;&#039;%is_folder%&#039;&#039; is a boolean value for use in  &#039;&#039;$if( ...)&#039;&#039;  expressions and is true when the node is a folder.&lt;br /&gt;
**&#039;&#039;%count%&#039;&#039; will provide the number of children (folders or playlists) for each folder or the number of items for playlists.&lt;br /&gt;
**&#039;&#039;%playlist_duration%&#039;&#039; will provide the duration of playlists.&lt;br /&gt;
**&#039;&#039;%playlist_size%&#039;&#039; will provide the size of playlists (in kB, MB or GB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default formatting string is  &#039;&#039;%node_name%$if(%is_folder%,&#039; [&#039;%count%&#039;]&#039;,)&#039;&#039;  and will give an indication of the number of children (folders or playlists) for each folder in the tree.&lt;br /&gt;
&lt;br /&gt;
Another popular string is &#039;&#039;%node_name%$if($and(%is_folder%,$strcmp(%count%,0)),&#039; []&#039;)&#039;&#039; which will not show the children count but just provide an indication of empty folders.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;Upcoming - tbc&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Changed shared selection type as caller_playlist_manager and revisited shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2011-05-03]&lt;br /&gt;
** Fixed small cursor glitch after folder expansion&lt;br /&gt;
** Fixed some menu entries skipped (standard &amp;quot;contents&amp;quot; menu)during their execution&lt;br /&gt;
** Checked behavior for nicer &amp;quot;Library Viewer Selection&amp;quot; playlist management (with Facets)&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2011-04-26]&lt;br /&gt;
** Fixed [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=753430 this bug]&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2011-04-25]&lt;br /&gt;
** Re-engineering of drag&amp;amp;drop operations, Various bugfix&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2011-04-23]&#039;&#039;&#039; Do Not use&#039;&#039;&#039;&lt;br /&gt;
** Ctrl-key is no longer needed to add tracks to a playlist and it&#039;s behavior has been merged with the standard one, depending on the mouse position. &lt;br /&gt;
* &#039;&#039;&#039;V1.9.1&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Recompiled with /MD run time library option.&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2011-04-15]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039; [2010-10-21]&lt;br /&gt;
** Selected playlist is now unchanged after dropping files into a playlist from external source or other panel&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
** Implemented shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039; [2010-10-03]&lt;br /&gt;
** Provide real lock name instead of &amp;quot;Lock Properties&amp;quot;&lt;br /&gt;
** Fixed keyboard shortcuts not working in CUI when poo_plorg had focus&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039; [2010-10-01]&lt;br /&gt;
** New option in contexte menu to show playlist Duration and Size&lt;br /&gt;
** New variables in node titleformatting to show playlist Duration and Size&lt;br /&gt;
** Replaced %children_count% with %count% (available for playlists and folders) in node titleformatting&lt;br /&gt;
** Included &#039;Show Playlist&#039; reset to default (item count) in Options-&amp;gt;Reset menu&lt;br /&gt;
** Fixed erratic behavior of selection after a playlist is removed&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Simple Recompilation&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039; [2010-08-21]&lt;br /&gt;
** Fixed preferences appearing in so called &amp;quot;Broken Components&amp;quot; section (in Foobar V1.1)&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039; [2010-05-22]&lt;br /&gt;
** Fixed bug in standard context menu activation&lt;br /&gt;
** Removed selection of target playlist when copying content&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039; [2010-05-20]&lt;br /&gt;
** Fixed bug in playing playlist detection&lt;br /&gt;
** Hack to replace &amp;quot;Filter Results&amp;quot; playlist (CUI) next to &amp;quot;Filter Results (Playback)&amp;quot; playlist&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039; [2010-05-15]&lt;br /&gt;
** &#039;&#039;&#039;1.0.1&#039;&#039;&#039; Fixed minor bug in colors of active playlist not refreshed after activation when clicking on the status bar.&lt;br /&gt;
** Reworked Drag &amp;amp; drop and introduce content copy from one playlist to another (with Ctrl Key), or copy inside a playlist when Drag &amp;amp; Drop is from &amp;quot;external&amp;quot; source&lt;br /&gt;
** Introduced titleformatting script for nodes (See Preferences page)&lt;br /&gt;
** Memorized last known tree configuration for recall when new instance is initialized&lt;br /&gt;
** Eliminated flickering during single click and resize (to be confirmed on Vista/Seven)&lt;br /&gt;
** Implemented options to restore deleted playlists&lt;br /&gt;
** Fixed Reset function not working in preferences&lt;br /&gt;
** Forced playlist activation (after double click) when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Added indication of external drop operations in status bar&lt;br /&gt;
** Autonamed newly created playlists and folders&lt;br /&gt;
** Ensured active playlist is selected at initialization&lt;br /&gt;
** Fixed dialog not getting focus when using Tab key&lt;br /&gt;
** Reworked tree display (rectangles mgt.)&lt;br /&gt;
** Fixed bug in framestyle setting&lt;br /&gt;
** Fixed bug (with potential crash) in accented characters display&lt;br /&gt;
** Miscellaneous bug fixes and improvements&lt;br /&gt;
* &#039;&#039;&#039;V0.9&#039;&#039;&#039;&lt;br /&gt;
** Implemented external drag &amp;amp; drop support (Thanks kerpondile !)&lt;br /&gt;
** Fixed preferences page activated from 1st item of standard context menu&lt;br /&gt;
** Fixed improper colors on selection (drop highlight) rectangle&lt;br /&gt;
* &#039;&#039;&#039;V0.8&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;&#039;0.8.3&#039;&#039;&#039; Fixed glitch in active item display. Applied theme. Introduced a new option to make playing playlist visible upon activation. Fixed background color of preferences page.&lt;br /&gt;
** &#039;&#039;&#039;0.8.2&#039;&#039;&#039; Fixed crash in debug mode due to resize called before window activation (OnInit).&lt;br /&gt;
** &#039;&#039;&#039;0.8.1&#039;&#039;&#039; CUI colors when not restored properly after unselecting custom background color &lt;br /&gt;
** Fixed playback continuation (after double click) happening in same playlist when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Fixed improper display of playlists or folders containing &amp;quot;&amp;amp;&amp;quot;&lt;br /&gt;
** Improved look for Vista/seven (Custom Draw for all items, No lines)&lt;br /&gt;
** Added visual indication of playing playlist&lt;br /&gt;
* &#039;&#039;&#039;V0.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed DUI context menu not appearing in edit mode&lt;br /&gt;
** Neutralized  selection of first playlist if clicking on an empty region&lt;br /&gt;
** Double click now jumps to next track when &amp;quot;Play on double click&amp;quot; option is selected&lt;br /&gt;
* &#039;&#039;&#039;V0.5&#039;&#039;&#039;&lt;br /&gt;
** Fixed unwanted column ui context menu&lt;br /&gt;
** Neutralized keyboard shortcuts while editing an item&lt;br /&gt;
** Various changes on click/double click handling&lt;br /&gt;
* &#039;&#039;&#039;V0.4&#039;&#039;&#039;&lt;br /&gt;
** Added options to hide item count (Context Menu-&amp;gt; Options)&lt;br /&gt;
** Tentatively introduced Vista / Seven style (to be confirmed)&lt;br /&gt;
** Implemented &amp;quot;Preferences&amp;quot; entry in context menu&lt;br /&gt;
** Implemented &amp;quot;Activate on single click&amp;quot; option (Preferences)&lt;br /&gt;
** Implemented &amp;quot;Play on double click&amp;quot; option (Preferences)&lt;br /&gt;
** Fix glitch with drophightlight rectangle (dotted rectangle sometimes breaks and takes on strange colors)&lt;br /&gt;
** Re engineered  visual appearance + drag &amp;amp; drop operations, fixed some glitches&lt;br /&gt;
** Implemented minimum width/height&lt;br /&gt;
** Fixed active playlist not appearing at startup&lt;br /&gt;
** Fixed &amp;quot;active playlist&amp;quot; status/color lost after move&lt;br /&gt;
** Fixed glitch during window scrolling (drag&amp;amp; drop)&lt;br /&gt;
** New border drawing to integrate nicely with DUI&lt;br /&gt;
* &#039;&#039;&#039;V0.3&#039;&#039;&#039;&lt;br /&gt;
** Fixed item count not refreshing instantaneously&lt;br /&gt;
** Fixed double click not working outside of playlist name&lt;br /&gt;
* &#039;&#039;&#039;V0.2&#039;&#039;&#039;&lt;br /&gt;
** Link to this page from the preferences page (Help button)&lt;br /&gt;
** Fixed bug in managing (Enter/Delete) keys for label editing&lt;br /&gt;
** Make the matching (at startup) of tree content vs. actual playlists more intelligent (usefull for utilization of the popup window)&lt;br /&gt;
** Fixed panel appearing twice in column UI layout&lt;br /&gt;
* &#039;&#039;&#039;V0.1&#039;&#039;&#039; [2010-05-03] &lt;br /&gt;
** Initial release&lt;br /&gt;
&lt;br /&gt;
=To Do=&lt;br /&gt;
* Check panel always made visible inside tabs&lt;br /&gt;
* Implement copy/paste settings across instances&lt;br /&gt;
* Synchronize playlist order with tree (on request and maybe automatically)&lt;br /&gt;
* Generate super set of contained playlists when activating a folder (maybe)&lt;br /&gt;
* Add capability to copy a playlist (create a new one) whith Ctrl Key (for internal drop source)&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=752994 bug]&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=734630 bug]&lt;br /&gt;
* Provide option to focus on target playlist after D&amp;amp;D (maybe)&lt;br /&gt;
* Provide Lockname as a variable&lt;br /&gt;
* Improve placement of restored playlist&lt;br /&gt;
* Make external dropsource return asynchronous (maybe)&lt;br /&gt;
* Eliminate drawing of drophighlighted item (source) on click without dragging (maybe)&lt;br /&gt;
* Prevent the panel from appearing in the toolbar menu (CUI)&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=26515</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=26515"/>
		<updated>2015-10-13T07:42:28Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match any&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.6&#039;&#039;&#039; [2015-10-13]&lt;br /&gt;
** Recompiled with the latest SDK (2015-08-03)&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=23649</id>
		<title>Foobar2000:Components/Playlist Organizer (foo plorg)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=23649"/>
		<updated>2012-11-21T20:50:25Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* To Do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Playlist Organizer (foo plorg)]]&lt;br /&gt;
[[Image:Foo_plorg.png|thumb|right|480px|Playlist Organizer Main view]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_plorg&#039;&#039;&#039; is a simple component that will let your organize your playlists in a treeview fashion. It is available as either a Column UI panel or an UI element for the default UI. It enables your to create folders, hierarchies and move around folders and playlists by dragging and dropping them wherever  you want in the panel.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from  [http://www.foobar2000.org/components/view/foo_plorg here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1).&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use  [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705 this thread]  to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 1.9.1 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Install the toolbar as an UI element (Default UI) or a column UI panel. The commands are available with a right click on the panel.&lt;br /&gt;
Folders and Playlists be can selected by a left click, then moved and dropped around.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The component implements a treeview control, basically made of playlist and folders.&lt;br /&gt;
When the component is used for the first time, a &amp;quot;Default&amp;quot; folder will be created and all playlists placed in this folder.&lt;br /&gt;
&lt;br /&gt;
The basic usage is to create folders (right click anywhere on the panel to access this function) and move your playlists within those newly created folders.&lt;br /&gt;
Folders can be nested.&lt;br /&gt;
Playlists and folders can be moved (e.g. Drag &amp;amp; Dropped) to their desired location within the hierarchy.&lt;br /&gt;
[[Image:Foo_plorg_vis.png|thumb|right|260px|Playlist Organizer Visual status of playlists]]&lt;br /&gt;
==Visual Indication for playlists==&lt;br /&gt;
&lt;br /&gt;
Based on the general or customized color scheme, foo_playlist_organizer will give an indication of Selected, Active and Playing playlists, as well as the source of Drag &amp;amp; Drop operations.&lt;br /&gt;
&lt;br /&gt;
Please note that Selected and Active playlists will be kept equal (except for instance when selecting folders) when the &amp;quot;Activate on single click&amp;quot; option is chosen.&lt;br /&gt;
&lt;br /&gt;
==Windows Management==&lt;br /&gt;
Using foo_plorg as a standalone (popup) window may lead to loosing part of your playlists organization if some changes (addition, deletion, reordering, ...) are applied with other playlist managers while the window is closed. The window startup tries to recognize such situations but it is by nature limited. It is recommended that you use it as a &amp;quot;permanent&amp;quot; panel or UI element rather.&lt;br /&gt;
&lt;br /&gt;
The last known tree configuration is howered memorized and will be recalled when a new panel or UI element instance is created, so that the tree can be somehow rebuilt.&lt;br /&gt;
&lt;br /&gt;
=Drag &amp;amp; Drop=&lt;br /&gt;
==Basic Drag &amp;amp; Drop==&lt;br /&gt;
Basic drag &amp;amp; drop is triggered by selecting an item and keeping the left button presssed. A visual indication (dotted line around the item, small square below the mouse pointer) will be given that dragging has taken place.&lt;br /&gt;
The selected item can be moved to the desired location and a visual indication (Colored insertion mark or rectangle for folders) of the drop target. Releasing the mouse button will move the dragged item in the requested location.&lt;br /&gt;
===Note:===&lt;br /&gt;
* During a Drag &amp;amp; Drop operation, folders will expand after a short delay to expand their contents&lt;br /&gt;
* Automatic scrolling of the treeview is triggered when the mouse approaches the top or bottom of the treeview.&lt;br /&gt;
* Folders cannot be dropped into their childrens&lt;br /&gt;
* Drag &amp;amp; Drop can take place across foobar windows (for instance in the playlist view), and also to other applications or windows (See &#039;&#039;Exporting playlists or contents&#039;&#039; below)&lt;br /&gt;
* The contents of a playlist can be added to another playlist, when selected as the target of a drop operation. A &#039;&#039;&#039;+&#039;&#039;&#039; sign will appear under the mouse cursor to indicate that this mode is active. Please note that when the target playlist is locked for some reason (e.g. autoplaylists), no content can be added. A visual indication (small circle) is provided in this case below the mouse cursor.&lt;br /&gt;
&lt;br /&gt;
==Exporting playlists==&lt;br /&gt;
Playlists selected as the source of a drag &amp;amp; drop operations can be exported to windows folder (or potentially other applications). Export uses the .fpl format to create playlists in the dropped location.&lt;br /&gt;
Playlist contents (i.e. tracks) can be exported as well but only when the Ctrl key is pressed &#039;&#039;at the start&#039;&#039; of the dragging operation, in which case the files will be copied to the target location.&lt;br /&gt;
&lt;br /&gt;
==Importing playlists or content==&lt;br /&gt;
Similarly, foo_playlist_organizer can act as the target of a drag &amp;amp; drop operation initiated in other foobar windows, windows explorer or other applications. The behavior in this case is similar to the basic drag &amp;amp; drop and a visual indication of the target location will be given, together with an indication in the status bar that content is being imported.&lt;br /&gt;
===Note===&lt;br /&gt;
* The .fpl format is recognized as a valid source and playlists names will be preserved in this case.For other sources (e.g. other playlists formats, tracks, ...) a new playlist will be generated with some &#039;&#039;intelligent&#039;&#039; name generation based on similar fields (e.g. artist, album, genre, ...) found in the tracks being imported.&lt;br /&gt;
&lt;br /&gt;
=Context Menu=&lt;br /&gt;
[[Image:Foo_plorg_contextmenu.png|thumb|left|240px|Playlist Organizer Context Menu]]&lt;br /&gt;
A context menu is available from everywhere in the treeview, from a mouse right click or using the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; short cut.&lt;br /&gt;
Options are the following :&lt;br /&gt;
&lt;br /&gt;
===Activate===&lt;br /&gt;
Will activate the chosen playlist. Note that activation happens automatically when &amp;quot;Activate on single click&amp;quot; is chosen in the preferences page. This option is also available using the &#039;&#039;&#039;Enter&#039;&#039;&#039; key. &lt;br /&gt;
&lt;br /&gt;
===Rename===&lt;br /&gt;
Will rename the selected playlist or folder. This option is also available using the &#039;&#039;&#039;F2&#039;&#039;&#039; key.&lt;br /&gt;
&lt;br /&gt;
===Remove===&lt;br /&gt;
Will remove (delete) the selected playlist or folder. This option is also available using the &#039;&#039;&#039;Del&#039;&#039;&#039; key.&lt;br /&gt;
Note that folders cannot be removed while they still contain playlists or other folders.&lt;br /&gt;
&lt;br /&gt;
===Sort===&lt;br /&gt;
&lt;br /&gt;
Will sort the content of the selected folder alphabetically.&lt;br /&gt;
&lt;br /&gt;
===Autoplaylist (or lock) properties===&lt;br /&gt;
&lt;br /&gt;
Will give access to the properties of an autoplaylist (when selected) or whatever is provided for other playlist locks.&lt;br /&gt;
&lt;br /&gt;
===Contents===&lt;br /&gt;
&lt;br /&gt;
Will give access to the standard context menu, based on the content of the selected playlist.&lt;br /&gt;
&lt;br /&gt;
===Options===&lt;br /&gt;
&lt;br /&gt;
Enables the customization of the Treeview appearance (Playlist information to show on the right side, Framestyle and Colors).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Show Playlist&#039;&#039;&#039; entry enables to select between Number of items, Duration, Size or Nothing.&lt;br /&gt;
&lt;br /&gt;
Please note that customizable colors are limited to Text, Background, Background (selected) and Active playlist, in order to remain consistent with the standard DUI color scheme. For CUI, the Active playlist colors defaults to the custom item frame color (See CUI standard color preferences).&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Reset&amp;quot; option is available to revert to the standard colors, frame style and item count.&lt;br /&gt;
&lt;br /&gt;
===Preferences===&lt;br /&gt;
&lt;br /&gt;
Will link to the general preferences page.&lt;br /&gt;
&lt;br /&gt;
===Restore===&lt;br /&gt;
&lt;br /&gt;
This entry will present the list of previously deleted playlists and enable to restore them. A menu entry (&amp;quot;Clear History&amp;quot;) is available at the bottom of the list and will permanently delete the playlists. Note that the history is not remembered across session and deleted playlists will be permanently lost if foobar is closed.&lt;br /&gt;
&lt;br /&gt;
===Create Playlist, Create Folder===&lt;br /&gt;
&lt;br /&gt;
These options will create new playlist and folders. Note that the newly created playlist or folder will be positioned  after a currently selected playlist or as the first child of a currently selected folder.&lt;br /&gt;
&lt;br /&gt;
==Note==&lt;br /&gt;
* When activated with the the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; shortcut, regular shortcuts are available for each of the menu entries (underlined letter, see picture for details).&lt;br /&gt;
&lt;br /&gt;
=Preferences=&lt;br /&gt;
[[Image:Foo_plorg_preferences.png|right|thumb|484px|Playlist Organizer Preferences]]&lt;br /&gt;
The preferences page is available from the preferences dialog (General-&amp;gt;Playlist Organizer) and provides with the following options.&lt;br /&gt;
==Behavior==&lt;br /&gt;
* &#039;&#039;&#039;Activate on single click&#039;&#039;&#039; will activate (e.g. make visible on the playlist renderer) the selected playlist on a single click. Please note that when this option is selected and a playlist is activated by other means (for example the standard playlist switcher), it will be automatically selected and thus made visible as a result of the standard treeview behavior. &lt;br /&gt;
* &#039;&#039;&#039;Play on double click&#039;&#039;&#039; will play the next item (according to the currently selected playback order) in the selected playlist.&lt;br /&gt;
* &#039;&#039;&#039;Make playing playlist visible on activation&#039;&#039;&#039; will ensure that the playing playlist is visible when activated (for instance when double clicking on the status bar). This option only make sense when &amp;quot;Activate on single click&amp;quot; is unchecked.&lt;br /&gt;
==Nodes==&lt;br /&gt;
* &#039;&#039;&#039;Title formatting&#039;&#039;&#039; enables the customization of how playlists and folders are displayed in the treeview. The formatting of nodes uses foobar [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference formatting language] and the following variables are available : &lt;br /&gt;
**&#039;&#039;%node_name%&#039;&#039; is the name of the node, either a playlist or a folder.&lt;br /&gt;
**&#039;&#039;%is_folder%&#039;&#039; is a boolean value for use in  &#039;&#039;$if( ...)&#039;&#039;  expressions and is true when the node is a folder.&lt;br /&gt;
**&#039;&#039;%count%&#039;&#039; will provide the number of children (folders or playlists) for each folder or the number of items for playlists.&lt;br /&gt;
**&#039;&#039;%playlist_duration%&#039;&#039; will provide the duration of playlists.&lt;br /&gt;
**&#039;&#039;%playlist_size%&#039;&#039; will provide the size of playlists (in kB, MB or GB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default formatting string is  &#039;&#039;%node_name%$if(%is_folder%,&#039; [&#039;%count%&#039;]&#039;,)&#039;&#039;  and will give an indication of the number of children (folders or playlists) for each folder in the tree.&lt;br /&gt;
&lt;br /&gt;
Another popular string is &#039;&#039;%node_name%$if($and(%is_folder%,$strcmp(%count%,0)),&#039; []&#039;)&#039;&#039; which will not show the children count but just provide an indication of empty folders.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;Upcoming&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Changed shared selection type as caller_playlist_manager and revisited shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2011-05-03]&lt;br /&gt;
** Fixed small cursor glitch after folder expansion&lt;br /&gt;
** Fixed some menu entries skipped (standard &amp;quot;contents&amp;quot; menu)during their execution&lt;br /&gt;
** Checked behavior for nicer &amp;quot;Library Viewer Selection&amp;quot; playlist management (with Facets)&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2011-04-26]&lt;br /&gt;
** Fixed [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=753430 this bug]&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2011-04-25]&lt;br /&gt;
** Re-engineering of drag&amp;amp;drop operations, Various bugfix&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2011-04-23]&#039;&#039;&#039; Do Not use&#039;&#039;&#039;&lt;br /&gt;
** Ctrl-key is no longer needed to add tracks to a playlist and it&#039;s behavior has been merged with the standard one, depending on the mouse position. &lt;br /&gt;
* &#039;&#039;&#039;V1.9.1&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Recompiled with /MD run time library option.&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2011-04-15]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039; [2010-10-21]&lt;br /&gt;
** Selected playlist is now unchanged after dropping files into a playlist from external source or other panel&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
** Implemented shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039; [2010-10-03]&lt;br /&gt;
** Provide real lock name instead of &amp;quot;Lock Properties&amp;quot;&lt;br /&gt;
** Fixed keyboard shortcuts not working in CUI when poo_plorg had focus&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039; [2010-10-01]&lt;br /&gt;
** New option in contexte menu to show playlist Duration and Size&lt;br /&gt;
** New variables in node titleformatting to show playlist Duration and Size&lt;br /&gt;
** Replaced %children_count% with %count% (available for playlists and folders) in node titleformatting&lt;br /&gt;
** Included &#039;Show Playlist&#039; reset to default (item count) in Options-&amp;gt;Reset menu&lt;br /&gt;
** Fixed erratic behavior of selection after a playlist is removed&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Simple Recompilation&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039; [2010-08-21]&lt;br /&gt;
** Fixed preferences appearing in so called &amp;quot;Broken Components&amp;quot; section (in Foobar V1.1)&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039; [2010-05-22]&lt;br /&gt;
** Fixed bug in standard context menu activation&lt;br /&gt;
** Removed selection of target playlist when copying content&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039; [2010-05-20]&lt;br /&gt;
** Fixed bug in playing playlist detection&lt;br /&gt;
** Hack to replace &amp;quot;Filter Results&amp;quot; playlist (CUI) next to &amp;quot;Filter Results (Playback)&amp;quot; playlist&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039; [2010-05-15]&lt;br /&gt;
** &#039;&#039;&#039;1.0.1&#039;&#039;&#039; Fixed minor bug in colors of active playlist not refreshed after activation when clicking on the status bar.&lt;br /&gt;
** Reworked Drag &amp;amp; drop and introduce content copy from one playlist to another (with Ctrl Key), or copy inside a playlist when Drag &amp;amp; Drop is from &amp;quot;external&amp;quot; source&lt;br /&gt;
** Introduced titleformatting script for nodes (See Preferences page)&lt;br /&gt;
** Memorized last known tree configuration for recall when new instance is initialized&lt;br /&gt;
** Eliminated flickering during single click and resize (to be confirmed on Vista/Seven)&lt;br /&gt;
** Implemented options to restore deleted playlists&lt;br /&gt;
** Fixed Reset function not working in preferences&lt;br /&gt;
** Forced playlist activation (after double click) when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Added indication of external drop operations in status bar&lt;br /&gt;
** Autonamed newly created playlists and folders&lt;br /&gt;
** Ensured active playlist is selected at initialization&lt;br /&gt;
** Fixed dialog not getting focus when using Tab key&lt;br /&gt;
** Reworked tree display (rectangles mgt.)&lt;br /&gt;
** Fixed bug in framestyle setting&lt;br /&gt;
** Fixed bug (with potential crash) in accented characters display&lt;br /&gt;
** Miscellaneous bug fixes and improvements&lt;br /&gt;
* &#039;&#039;&#039;V0.9&#039;&#039;&#039;&lt;br /&gt;
** Implemented external drag &amp;amp; drop support (Thanks kerpondile !)&lt;br /&gt;
** Fixed preferences page activated from 1st item of standard context menu&lt;br /&gt;
** Fixed improper colors on selection (drop highlight) rectangle&lt;br /&gt;
* &#039;&#039;&#039;V0.8&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;&#039;0.8.3&#039;&#039;&#039; Fixed glitch in active item display. Applied theme. Introduced a new option to make playing playlist visible upon activation. Fixed background color of preferences page.&lt;br /&gt;
** &#039;&#039;&#039;0.8.2&#039;&#039;&#039; Fixed crash in debug mode due to resize called before window activation (OnInit).&lt;br /&gt;
** &#039;&#039;&#039;0.8.1&#039;&#039;&#039; CUI colors when not restored properly after unselecting custom background color &lt;br /&gt;
** Fixed playback continuation (after double click) happening in same playlist when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Fixed improper display of playlists or folders containing &amp;quot;&amp;amp;&amp;quot;&lt;br /&gt;
** Improved look for Vista/seven (Custom Draw for all items, No lines)&lt;br /&gt;
** Added visual indication of playing playlist&lt;br /&gt;
* &#039;&#039;&#039;V0.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed DUI context menu not appearing in edit mode&lt;br /&gt;
** Neutralized  selection of first playlist if clicking on an empty region&lt;br /&gt;
** Double click now jumps to next track when &amp;quot;Play on double click&amp;quot; option is selected&lt;br /&gt;
* &#039;&#039;&#039;V0.5&#039;&#039;&#039;&lt;br /&gt;
** Fixed unwanted column ui context menu&lt;br /&gt;
** Neutralized keyboard shortcuts while editing an item&lt;br /&gt;
** Various changes on click/double click handling&lt;br /&gt;
* &#039;&#039;&#039;V0.4&#039;&#039;&#039;&lt;br /&gt;
** Added options to hide item count (Context Menu-&amp;gt; Options)&lt;br /&gt;
** Tentatively introduced Vista / Seven style (to be confirmed)&lt;br /&gt;
** Implemented &amp;quot;Preferences&amp;quot; entry in context menu&lt;br /&gt;
** Implemented &amp;quot;Activate on single click&amp;quot; option (Preferences)&lt;br /&gt;
** Implemented &amp;quot;Play on double click&amp;quot; option (Preferences)&lt;br /&gt;
** Fix glitch with drophightlight rectangle (dotted rectangle sometimes breaks and takes on strange colors)&lt;br /&gt;
** Re engineered  visual appearance + drag &amp;amp; drop operations, fixed some glitches&lt;br /&gt;
** Implemented minimum width/height&lt;br /&gt;
** Fixed active playlist not appearing at startup&lt;br /&gt;
** Fixed &amp;quot;active playlist&amp;quot; status/color lost after move&lt;br /&gt;
** Fixed glitch during window scrolling (drag&amp;amp; drop)&lt;br /&gt;
** New border drawing to integrate nicely with DUI&lt;br /&gt;
* &#039;&#039;&#039;V0.3&#039;&#039;&#039;&lt;br /&gt;
** Fixed item count not refreshing instantaneously&lt;br /&gt;
** Fixed double click not working outside of playlist name&lt;br /&gt;
* &#039;&#039;&#039;V0.2&#039;&#039;&#039;&lt;br /&gt;
** Link to this page from the preferences page (Help button)&lt;br /&gt;
** Fixed bug in managing (Enter/Delete) keys for label editing&lt;br /&gt;
** Make the matching (at startup) of tree content vs. actual playlists more intelligent (usefull for utilization of the popup window)&lt;br /&gt;
** Fixed panel appearing twice in column UI layout&lt;br /&gt;
* &#039;&#039;&#039;V0.1&#039;&#039;&#039; [2010-05-03] &lt;br /&gt;
** Initial release&lt;br /&gt;
&lt;br /&gt;
=To Do=&lt;br /&gt;
* Check panel always made visible inside tabs&lt;br /&gt;
* Implement copy/paste settings across instances&lt;br /&gt;
* Synchronize playlist order with tree (on request and maybe automatically)&lt;br /&gt;
* Generate super set of contained playlists when activating a folder (maybe)&lt;br /&gt;
* Add capability to copy a playlist (create a new one) whith Ctrl Key (for internal drop source)&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=752994 bug]&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=734630 bug]&lt;br /&gt;
* Provide option to focus on target playlist after D&amp;amp;D (maybe)&lt;br /&gt;
* Provide Lockname as a variable&lt;br /&gt;
* Improve placement of restored playlist&lt;br /&gt;
* Make external dropsource return asynchronous (maybe)&lt;br /&gt;
* Eliminate drawing of drophighlighted item (source) on click without dragging (maybe)&lt;br /&gt;
* Prevent the panel from appearing in the toolbar menu (CUI)&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23609</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23609"/>
		<updated>2012-10-29T16:50:59Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* To do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23608</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23608"/>
		<updated>2012-10-29T16:50:46Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.4&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height) &amp;lt;-- for CUI (Done for DUI)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23607</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23607"/>
		<updated>2012-10-29T16:50:36Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-29]&lt;br /&gt;
** Adjusted panel height to account for selected font (CUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font (DUI)&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height) &amp;lt;-- for CUI (Done for DUI)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23605</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23605"/>
		<updated>2012-10-29T06:54:59Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font&lt;br /&gt;
:&#039;&#039;&#039;Requires a restart or changes to the layout to take effect in CUI when fonts are changed&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height) &amp;lt;-- for CUI (Done for DUI)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23604</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23604"/>
		<updated>2012-10-29T06:53:43Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font&lt;br /&gt;
&#039;&#039;&#039;Requires a restart or changes to the layout to take effect in CUI when fonts are changed&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height) &amp;lt;-- for CUI (Done for DUI)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23603</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23603"/>
		<updated>2012-10-28T20:48:42Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* To do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font &#039;&#039;&#039;(Requires restart in CUI)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height) &amp;lt;-- for CUI (Done for DUI)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23602</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23602"/>
		<updated>2012-10-28T20:48:04Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.3&#039;&#039;&#039; [2012-10-28]&lt;br /&gt;
** Adjusted panel height to account for selected font &#039;&#039;&#039;(Requires restart in CUI)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23523</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23523"/>
		<updated>2012-10-13T07:51:39Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* To do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Fix vertical resizing issue (account for container windows height)&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23241</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=23241"/>
		<updated>2012-08-06T13:18:14Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using current playlist, with the &amp;quot;inline&amp;quot; option (eg restricting the current playlist content according to the search criteria)&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22808</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22808"/>
		<updated>2011-06-19T16:27:25Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0. The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22807</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22807"/>
		<updated>2011-06-19T16:27:12Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP &#039;&#039;&#039;SP3&#039;&#039;&#039; or higher and in .NET 3.0.The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22806</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22806"/>
		<updated>2011-06-19T16:26:52Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the &#039;&#039;Windows Imaging Component&#039;&#039; which is included in Windows XP SP[b]3[/b] or higher and in .NET 3.0.The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22805</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22805"/>
		<updated>2011-06-19T16:26:28Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the [i]Windows Imaging Component[/i] which is included in Windows XP SP[b]3[/b] or higher and in .NET 3.0.The WIC can also be downloaded [http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22804</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22804"/>
		<updated>2011-06-19T16:26:13Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* Quicksearch utilizes the [i]Windows Imaging Component[/i] which is included in Windows XP SP[b]3[/b] or higher and in .NET 3.0.The WIC can also be downloaded &lt;br /&gt;
[http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8E011506-6307-445B-B950-215DEF45DDD8&amp;amp;displaylang=en here] separately.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22798</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22798"/>
		<updated>2011-05-29T08:35:16Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows initialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22797</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22797"/>
		<updated>2011-05-29T08:34:56Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
** Fixed bug in text selection (only showing last 16 chars) during windows intialization&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22796</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22796"/>
		<updated>2011-05-29T07:26:28Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [2011-05-29]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22795</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22795"/>
		<updated>2011-05-28T13:48:10Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Added font alignment with default font for DUI and Common (list items) for CUI&lt;br /&gt;
** Fixed bug in feeding history when same entry already present&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22792</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22792"/>
		<updated>2011-05-26T15:49:39Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Added font alignement with default font for DUI and Common (list items) for CUI&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22791</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22791"/>
		<updated>2011-05-25T12:04:30Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.2&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Added font alignement with default font for DUI&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22780</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22780"/>
		<updated>2011-05-23T21:44:58Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Search configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option. Please note that wildcards (e.g. &#039;*&#039; or &#039;?&#039;) can be used in this mode.&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22779</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22779"/>
		<updated>2011-05-23T21:40:20Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.1&#039;&#039;&#039; [2011-05-23]&lt;br /&gt;
** Fixed crash happening in rare circumstances&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22778</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22778"/>
		<updated>2011-05-22T21:09:49Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22777</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22777"/>
		<updated>2011-05-22T21:02:14Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22776</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22776"/>
		<updated>2011-05-22T20:54:42Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22775</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22775"/>
		<updated>2011-05-22T20:46:13Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [2011-05-22]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22774</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22774"/>
		<updated>2011-05-22T20:40:13Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Reworked autoplaylist client, now more robust&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22773</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22773"/>
		<updated>2011-05-22T20:38:47Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* History and Favorites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will re-execute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history (or favorites)and will be recalled together with the search criteria, overriding current parameters&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for re-execution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22772</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22772"/>
		<updated>2011-05-22T20:37:30Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Visual configuration is now saved independently for each autoplaylist client&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=File:QsIcon-AllPlaylists.png&amp;diff=22771</id>
		<title>File:QsIcon-AllPlaylists.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=File:QsIcon-AllPlaylists.png&amp;diff=22771"/>
		<updated>2011-05-22T20:26:00Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: uploaded a new version of &amp;quot;File:QsIcon-AllPlaylists.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22770</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22770"/>
		<updated>2011-05-22T20:04:57Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V3.0&#039;&#039;&#039; [Not yet released]&lt;br /&gt;
** Reworked history recall features, now overrides current search parameters&lt;br /&gt;
** Changed icon for search in all playlists&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
** General code restructuring&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22768</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22768"/>
		<updated>2011-05-20T19:32:10Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22767</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22767"/>
		<updated>2011-05-20T19:31:43Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Basic usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created ,according to the corresponding toolbar menu options or depending on the special keys used to trigger the search.&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&amp;lt;&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22766</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22766"/>
		<updated>2011-05-20T19:30:43Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Toolbar Icon Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created (according to the corresponding toolbar menu options or depending on the special keys used to trigger the search).&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon provides an indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&amp;lt;&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=22764</id>
		<title>Foobar2000:Components/Playlist Organizer (foo plorg)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=22764"/>
		<updated>2011-05-19T06:57:06Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Playlist Organizer (foo plorg)]]&lt;br /&gt;
[[Image:Foo_plorg.png|thumb|right|480px|Playlist Organizer Main view]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_plorg&#039;&#039;&#039; is a simple component that will let your organize your playlists in a treeview fashion. It is available as either a Column UI panel or an UI element for the default UI. It enables your to create folders, hierarchies and move around folders and playlists by dragging and dropping them wherever  you want in the panel.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from  [http://www.foobar2000.org/components/view/foo_plorg here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1).&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use  [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705 this thread]  to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 1.9.1 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Install the toolbar as an UI element (Default UI) or a column UI panel. The commands are available with a right click on the panel.&lt;br /&gt;
Folders and Playlists be can selected by a left click, then moved and dropped around.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The component implements a treeview control, basically made of playlist and folders.&lt;br /&gt;
When the component is used for the first time, a &amp;quot;Default&amp;quot; folder will be created and all playlists placed in this folder.&lt;br /&gt;
&lt;br /&gt;
The basic usage is to create folders (right click anywhere on the panel to access this function) and move your playlists within those newly created folders.&lt;br /&gt;
Folders can be nested.&lt;br /&gt;
Playlists and folders can be moved (e.g. Drag &amp;amp; Dropped) to their desired location within the hierarchy.&lt;br /&gt;
[[Image:Foo_plorg_vis.png|thumb|right|260px|Playlist Organizer Visual status of playlists]]&lt;br /&gt;
==Visual Indication for playlists==&lt;br /&gt;
&lt;br /&gt;
Based on the general or customized color scheme, foo_playlist_organizer will give an indication of Selected, Active and Playing playlists, as well as the source of Drag &amp;amp; Drop operations.&lt;br /&gt;
&lt;br /&gt;
Please note that Selected and Active playlists will be kept equal (except for instance when selecting folders) when the &amp;quot;Activate on single click&amp;quot; option is chosen.&lt;br /&gt;
&lt;br /&gt;
==Windows Management==&lt;br /&gt;
Using foo_plorg as a standalone (popup) window may lead to loosing part of your playlists organization if some changes (addition, deletion, reordering, ...) are applied with other playlist managers while the window is closed. The window startup tries to recognize such situations but it is by nature limited. It is recommended that you use it as a &amp;quot;permanent&amp;quot; panel or UI element rather.&lt;br /&gt;
&lt;br /&gt;
The last known tree configuration is howered memorized and will be recalled when a new panel or UI element instance is created, so that the tree can be somehow rebuilt.&lt;br /&gt;
&lt;br /&gt;
=Drag &amp;amp; Drop=&lt;br /&gt;
==Basic Drag &amp;amp; Drop==&lt;br /&gt;
Basic drag &amp;amp; drop is triggered by selecting an item and keeping the left button presssed. A visual indication (dotted line around the item, small square below the mouse pointer) will be given that dragging has taken place.&lt;br /&gt;
The selected item can be moved to the desired location and a visual indication (Colored insertion mark or rectangle for folders) of the drop target. Releasing the mouse button will move the dragged item in the requested location.&lt;br /&gt;
===Note:===&lt;br /&gt;
* During a Drag &amp;amp; Drop operation, folders will expand after a short delay to expand their contents&lt;br /&gt;
* Automatic scrolling of the treeview is triggered when the mouse approaches the top or bottom of the treeview.&lt;br /&gt;
* Folders cannot be dropped into their childrens&lt;br /&gt;
* Drag &amp;amp; Drop can take place across foobar windows (for instance in the playlist view), and also to other applications or windows (See &#039;&#039;Exporting playlists or contents&#039;&#039; below)&lt;br /&gt;
* The contents of a playlist can be added to another playlist, when selected as the target of a drop operation. A &#039;&#039;&#039;+&#039;&#039;&#039; sign will appear under the mouse cursor to indicate that this mode is active. Please note that when the target playlist is locked for some reason (e.g. autoplaylists), no content can be added. A visual indication (small circle) is provided in this case below the mouse cursor.&lt;br /&gt;
&lt;br /&gt;
==Exporting playlists==&lt;br /&gt;
Playlists selected as the source of a drag &amp;amp; drop operations can be exported to windows folder (or potentially other applications). Export uses the .fpl format to create playlists in the dropped location.&lt;br /&gt;
Playlist contents (i.e. tracks) can be exported as well but only when the Ctrl key is pressed &#039;&#039;at the start&#039;&#039; of the dragging operation, in which case the files will be copied to the target location.&lt;br /&gt;
&lt;br /&gt;
==Importing playlists or content==&lt;br /&gt;
Similarly, foo_playlist_organizer can act as the target of a drag &amp;amp; drop operation initiated in other foobar windows, windows explorer or other applications. The behavior in this case is similar to the basic drag &amp;amp; drop and a visual indication of the target location will be given, together with an indication in the status bar that content is being imported.&lt;br /&gt;
===Note===&lt;br /&gt;
* The .fpl format is recognized as a valid source and playlists names will be preserved in this case.For other sources (e.g. other playlists formats, tracks, ...) a new playlist will be generated with some &#039;&#039;intelligent&#039;&#039; name generation based on similar fields (e.g. artist, album, genre, ...) found in the tracks being imported.&lt;br /&gt;
&lt;br /&gt;
=Context Menu=&lt;br /&gt;
[[Image:Foo_plorg_contextmenu.png|thumb|left|240px|Playlist Organizer Context Menu]]&lt;br /&gt;
A context menu is available from everywhere in the treeview, from a mouse right click or using the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; short cut.&lt;br /&gt;
Options are the following :&lt;br /&gt;
&lt;br /&gt;
===Activate===&lt;br /&gt;
Will activate the chosen playlist. Note that activation happens automatically when &amp;quot;Activate on single click&amp;quot; is chosen in the preferences page. This option is also available using the &#039;&#039;&#039;Enter&#039;&#039;&#039; key. &lt;br /&gt;
&lt;br /&gt;
===Rename===&lt;br /&gt;
Will rename the selected playlist or folder. This option is also available using the &#039;&#039;&#039;F2&#039;&#039;&#039; key.&lt;br /&gt;
&lt;br /&gt;
===Remove===&lt;br /&gt;
Will remove (delete) the selected playlist or folder. This option is also available using the &#039;&#039;&#039;Del&#039;&#039;&#039; key.&lt;br /&gt;
Note that folders cannot be removed while they still contain playlists or other folders.&lt;br /&gt;
&lt;br /&gt;
===Sort===&lt;br /&gt;
&lt;br /&gt;
Will sort the content of the selected folder alphabetically.&lt;br /&gt;
&lt;br /&gt;
===Autoplaylist (or lock) properties===&lt;br /&gt;
&lt;br /&gt;
Will give access to the properties of an autoplaylist (when selected) or whatever is provided for other playlist locks.&lt;br /&gt;
&lt;br /&gt;
===Contents===&lt;br /&gt;
&lt;br /&gt;
Will give access to the standard context menu, based on the content of the selected playlist.&lt;br /&gt;
&lt;br /&gt;
===Options===&lt;br /&gt;
&lt;br /&gt;
Enables the customization of the Treeview appearance (Playlist information to show on the right side, Framestyle and Colors).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Show Playlist&#039;&#039;&#039; entry enables to select between Number of items, Duration, Size or Nothing.&lt;br /&gt;
&lt;br /&gt;
Please note that customizable colors are limited to Text, Background, Background (selected) and Active playlist, in order to remain consistent with the standard DUI color scheme. For CUI, the Active playlist colors defaults to the custom item frame color (See CUI standard color preferences).&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Reset&amp;quot; option is available to revert to the standard colors, frame style and item count.&lt;br /&gt;
&lt;br /&gt;
===Preferences===&lt;br /&gt;
&lt;br /&gt;
Will link to the general preferences page.&lt;br /&gt;
&lt;br /&gt;
===Restore===&lt;br /&gt;
&lt;br /&gt;
This entry will present the list of previously deleted playlists and enable to restore them. A menu entry (&amp;quot;Clear History&amp;quot;) is available at the bottom of the list and will permanently delete the playlists. Note that the history is not remembered across session and deleted playlists will be permanently lost if foobar is closed.&lt;br /&gt;
&lt;br /&gt;
===Create Playlist, Create Folder===&lt;br /&gt;
&lt;br /&gt;
These options will create new playlist and folders. Note that the newly created playlist or folder will be positioned  after a currently selected playlist or as the first child of a currently selected folder.&lt;br /&gt;
&lt;br /&gt;
==Note==&lt;br /&gt;
* When activated with the the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; shortcut, regular shortcuts are available for each of the menu entries (underlined letter, see picture for details).&lt;br /&gt;
&lt;br /&gt;
=Preferences=&lt;br /&gt;
[[Image:Foo_plorg_preferences.png|right|thumb|484px|Playlist Organizer Preferences]]&lt;br /&gt;
The preferences page is available from the preferences dialog (General-&amp;gt;Playlist Organizer) and provides with the following options.&lt;br /&gt;
==Behavior==&lt;br /&gt;
* &#039;&#039;&#039;Activate on single click&#039;&#039;&#039; will activate (e.g. make visible on the playlist renderer) the selected playlist on a single click. Please note that when this option is selected and a playlist is activated by other means (for example the standard playlist switcher), it will be automatically selected and thus made visible as a result of the standard treeview behavior. &lt;br /&gt;
* &#039;&#039;&#039;Play on double click&#039;&#039;&#039; will play the next item (according to the currently selected playback order) in the selected playlist.&lt;br /&gt;
* &#039;&#039;&#039;Make playing playlist visible on activation&#039;&#039;&#039; will ensure that the playing playlist is visible when activated (for instance when double clicking on the status bar). This option only make sense when &amp;quot;Activate on single click&amp;quot; is unchecked.&lt;br /&gt;
==Nodes==&lt;br /&gt;
* &#039;&#039;&#039;Title formatting&#039;&#039;&#039; enables the customization of how playlists and folders are displayed in the treeview. The formatting of nodes uses foobar [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference formatting language] and the following variables are available : &lt;br /&gt;
**&#039;&#039;%node_name%&#039;&#039; is the name of the node, either a playlist or a folder.&lt;br /&gt;
**&#039;&#039;%is_folder%&#039;&#039; is a boolean value for use in  &#039;&#039;$if( ...)&#039;&#039;  expressions and is true when the node is a folder.&lt;br /&gt;
**&#039;&#039;%count%&#039;&#039; will provide the number of children (folders or playlists) for each folder or the number of items for playlists.&lt;br /&gt;
**&#039;&#039;%playlist_duration%&#039;&#039; will provide the duration of playlists.&lt;br /&gt;
**&#039;&#039;%playlist_size%&#039;&#039; will provide the size of playlists (in kB, MB or GB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default formatting string is  &#039;&#039;%node_name%$if(%is_folder%,&#039; [&#039;%count%&#039;]&#039;,)&#039;&#039;  and will give an indication of the number of children (folders or playlists) for each folder in the tree.&lt;br /&gt;
&lt;br /&gt;
Another popular string is &#039;&#039;%node_name%$if($and(%is_folder%,$strcmp(%count%,0)),&#039; []&#039;)&#039;&#039; which will not show the children count but just provide an indication of empty folders.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;Upcoming&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Changed shared selection type as caller_playlist_manager and revisited shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2011-05-03]&lt;br /&gt;
** Fixed small cursor glitch after folder expansion&lt;br /&gt;
** Fixed some menu entries skipped (standard &amp;quot;contents&amp;quot; menu)during their execution&lt;br /&gt;
** Checked behavior for nicer &amp;quot;Library Viewer Selection&amp;quot; playlist management (with Facets)&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2011-04-26]&lt;br /&gt;
** Fixed [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=753430 this bug]&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2011-04-25]&lt;br /&gt;
** Re-engineering of drag&amp;amp;drop operations, Various bugfix&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2011-04-23]&#039;&#039;&#039; Do Not use&#039;&#039;&#039;&lt;br /&gt;
** Ctrl-key is no longer needed to add tracks to a playlist and it&#039;s behavior has been merged with the standard one, depending on the mouse position. &lt;br /&gt;
* &#039;&#039;&#039;V1.9.1&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Recompiled with /MD run time library option.&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2011-04-15]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039; [2010-10-21]&lt;br /&gt;
** Selected playlist is now unchanged after dropping files into a playlist from external source or other panel&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
** Implemented shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039; [2010-10-03]&lt;br /&gt;
** Provide real lock name instead of &amp;quot;Lock Properties&amp;quot;&lt;br /&gt;
** Fixed keyboard shortcuts not working in CUI when poo_plorg had focus&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039; [2010-10-01]&lt;br /&gt;
** New option in contexte menu to show playlist Duration and Size&lt;br /&gt;
** New variables in node titleformatting to show playlist Duration and Size&lt;br /&gt;
** Replaced %children_count% with %count% (available for playlists and folders) in node titleformatting&lt;br /&gt;
** Included &#039;Show Playlist&#039; reset to default (item count) in Options-&amp;gt;Reset menu&lt;br /&gt;
** Fixed erratic behavior of selection after a playlist is removed&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Simple Recompilation&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039; [2010-08-21]&lt;br /&gt;
** Fixed preferences appearing in so called &amp;quot;Broken Components&amp;quot; section (in Foobar V1.1)&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039; [2010-05-22]&lt;br /&gt;
** Fixed bug in standard context menu activation&lt;br /&gt;
** Removed selection of target playlist when copying content&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039; [2010-05-20]&lt;br /&gt;
** Fixed bug in playing playlist detection&lt;br /&gt;
** Hack to replace &amp;quot;Filter Results&amp;quot; playlist (CUI) next to &amp;quot;Filter Results (Playback)&amp;quot; playlist&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039; [2010-05-15]&lt;br /&gt;
** &#039;&#039;&#039;1.0.1&#039;&#039;&#039; Fixed minor bug in colors of active playlist not refreshed after activation when clicking on the status bar.&lt;br /&gt;
** Reworked Drag &amp;amp; drop and introduce content copy from one playlist to another (with Ctrl Key), or copy inside a playlist when Drag &amp;amp; Drop is from &amp;quot;external&amp;quot; source&lt;br /&gt;
** Introduced titleformatting script for nodes (See Preferences page)&lt;br /&gt;
** Memorized last known tree configuration for recall when new instance is initialized&lt;br /&gt;
** Eliminated flickering during single click and resize (to be confirmed on Vista/Seven)&lt;br /&gt;
** Implemented options to restore deleted playlists&lt;br /&gt;
** Fixed Reset function not working in preferences&lt;br /&gt;
** Forced playlist activation (after double click) when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Added indication of external drop operations in status bar&lt;br /&gt;
** Autonamed newly created playlists and folders&lt;br /&gt;
** Ensured active playlist is selected at initialization&lt;br /&gt;
** Fixed dialog not getting focus when using Tab key&lt;br /&gt;
** Reworked tree display (rectangles mgt.)&lt;br /&gt;
** Fixed bug in framestyle setting&lt;br /&gt;
** Fixed bug (with potential crash) in accented characters display&lt;br /&gt;
** Miscellaneous bug fixes and improvements&lt;br /&gt;
* &#039;&#039;&#039;V0.9&#039;&#039;&#039;&lt;br /&gt;
** Implemented external drag &amp;amp; drop support (Thanks kerpondile !)&lt;br /&gt;
** Fixed preferences page activated from 1st item of standard context menu&lt;br /&gt;
** Fixed improper colors on selection (drop highlight) rectangle&lt;br /&gt;
* &#039;&#039;&#039;V0.8&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;&#039;0.8.3&#039;&#039;&#039; Fixed glitch in active item display. Applied theme. Introduced a new option to make playing playlist visible upon activation. Fixed background color of preferences page.&lt;br /&gt;
** &#039;&#039;&#039;0.8.2&#039;&#039;&#039; Fixed crash in debug mode due to resize called before window activation (OnInit).&lt;br /&gt;
** &#039;&#039;&#039;0.8.1&#039;&#039;&#039; CUI colors when not restored properly after unselecting custom background color &lt;br /&gt;
** Fixed playback continuation (after double click) happening in same playlist when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Fixed improper display of playlists or folders containing &amp;quot;&amp;amp;&amp;quot;&lt;br /&gt;
** Improved look for Vista/seven (Custom Draw for all items, No lines)&lt;br /&gt;
** Added visual indication of playing playlist&lt;br /&gt;
* &#039;&#039;&#039;V0.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed DUI context menu not appearing in edit mode&lt;br /&gt;
** Neutralized  selection of first playlist if clicking on an empty region&lt;br /&gt;
** Double click now jumps to next track when &amp;quot;Play on double click&amp;quot; option is selected&lt;br /&gt;
* &#039;&#039;&#039;V0.5&#039;&#039;&#039;&lt;br /&gt;
** Fixed unwanted column ui context menu&lt;br /&gt;
** Neutralized keyboard shortcuts while editing an item&lt;br /&gt;
** Various changes on click/double click handling&lt;br /&gt;
* &#039;&#039;&#039;V0.4&#039;&#039;&#039;&lt;br /&gt;
** Added options to hide item count (Context Menu-&amp;gt; Options)&lt;br /&gt;
** Tentatively introduced Vista / Seven style (to be confirmed)&lt;br /&gt;
** Implemented &amp;quot;Preferences&amp;quot; entry in context menu&lt;br /&gt;
** Implemented &amp;quot;Activate on single click&amp;quot; option (Preferences)&lt;br /&gt;
** Implemented &amp;quot;Play on double click&amp;quot; option (Preferences)&lt;br /&gt;
** Fix glitch with drophightlight rectangle (dotted rectangle sometimes breaks and takes on strange colors)&lt;br /&gt;
** Re engineered  visual appearance + drag &amp;amp; drop operations, fixed some glitches&lt;br /&gt;
** Implemented minimum width/height&lt;br /&gt;
** Fixed active playlist not appearing at startup&lt;br /&gt;
** Fixed &amp;quot;active playlist&amp;quot; status/color lost after move&lt;br /&gt;
** Fixed glitch during window scrolling (drag&amp;amp; drop)&lt;br /&gt;
** New border drawing to integrate nicely with DUI&lt;br /&gt;
* &#039;&#039;&#039;V0.3&#039;&#039;&#039;&lt;br /&gt;
** Fixed item count not refreshing instantaneously&lt;br /&gt;
** Fixed double click not working outside of playlist name&lt;br /&gt;
* &#039;&#039;&#039;V0.2&#039;&#039;&#039;&lt;br /&gt;
** Link to this page from the preferences page (Help button)&lt;br /&gt;
** Fixed bug in managing (Enter/Delete) keys for label editing&lt;br /&gt;
** Make the matching (at startup) of tree content vs. actual playlists more intelligent (usefull for utilization of the popup window)&lt;br /&gt;
** Fixed panel appearing twice in column UI layout&lt;br /&gt;
* &#039;&#039;&#039;V0.1&#039;&#039;&#039; [2010-05-03] &lt;br /&gt;
** Initial release&lt;br /&gt;
&lt;br /&gt;
=To Do=&lt;br /&gt;
* Implement copy/paste settings across instances&lt;br /&gt;
* Synchronize playlist order with tree (on request and maybe automatically)&lt;br /&gt;
* Generate super set of contained playlists when activating a folder (maybe)&lt;br /&gt;
* Add capability to copy a playlist (create a new one) whith Ctrl Key (for internal drop source)&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=752994 bug]&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=734630 bug]&lt;br /&gt;
* Provide option to focus on target playlist after D&amp;amp;D (maybe)&lt;br /&gt;
* Provide Lockname as a variable&lt;br /&gt;
* Improve placement of restored playlist&lt;br /&gt;
* Make external dropsource return asynchronous (maybe)&lt;br /&gt;
* Eliminate drawing of drophighlighted item (source) on click without dragging (maybe)&lt;br /&gt;
* Prevent the panel from appearing in the toolbar menu (CUI)&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=22763</id>
		<title>Foobar2000:Components/Playlist Organizer (foo plorg)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Playlist_Organizer_(foo_plorg)&amp;diff=22763"/>
		<updated>2011-05-19T06:56:44Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* To Do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Playlist Organizer (foo plorg)]]&lt;br /&gt;
[[Image:Foo_plorg.png|thumb|right|480px|Playlist Organizer Main view]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_plorg&#039;&#039;&#039; is a simple component that will let your organize your playlists in a treeview fashion. It is available as either a Column UI panel or an UI element for the default UI. It enables your to create folders, hierarchies and move around folders and playlists by dragging and dropping them wherever  you want in the panel.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from  [http://www.foobar2000.org/components/view/foo_plorg here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1).&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use  [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705 this thread]  to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 1.9.1 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Install the toolbar as an UI element (Default UI) or a column UI panel. The commands are available with a right click on the panel.&lt;br /&gt;
Folders and Playlists be can selected by a left click, then moved and dropped around.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The component implements a treeview control, basically made of playlist and folders.&lt;br /&gt;
When the component is used for the first time, a &amp;quot;Default&amp;quot; folder will be created and all playlists placed in this folder.&lt;br /&gt;
&lt;br /&gt;
The basic usage is to create folders (right click anywhere on the panel to access this function) and move your playlists within those newly created folders.&lt;br /&gt;
Folders can be nested.&lt;br /&gt;
Playlists and folders can be moved (e.g. Drag &amp;amp; Dropped) to their desired location within the hierarchy.&lt;br /&gt;
[[Image:Foo_plorg_vis.png|thumb|right|260px|Playlist Organizer Visual status of playlists]]&lt;br /&gt;
==Visual Indication for playlists==&lt;br /&gt;
&lt;br /&gt;
Based on the general or customized color scheme, foo_playlist_organizer will give an indication of Selected, Active and Playing playlists, as well as the source of Drag &amp;amp; Drop operations.&lt;br /&gt;
&lt;br /&gt;
Please note that Selected and Active playlists will be kept equal (except for instance when selecting folders) when the &amp;quot;Activate on single click&amp;quot; option is chosen.&lt;br /&gt;
&lt;br /&gt;
==Windows Management==&lt;br /&gt;
Using foo_plorg as a standalone (popup) window may lead to loosing part of your playlists organization if some changes (addition, deletion, reordering, ...) are applied with other playlist managers while the window is closed. The window startup tries to recognize such situations but it is by nature limited. It is recommended that you use it as a &amp;quot;permanent&amp;quot; panel or UI element rather.&lt;br /&gt;
&lt;br /&gt;
The last known tree configuration is howered memorized and will be recalled when a new panel or UI element instance is created, so that the tree can be somehow rebuilt.&lt;br /&gt;
&lt;br /&gt;
=Drag &amp;amp; Drop=&lt;br /&gt;
==Basic Drag &amp;amp; Drop==&lt;br /&gt;
Basic drag &amp;amp; drop is triggered by selecting an item and keeping the left button presssed. A visual indication (dotted line around the item, small square below the mouse pointer) will be given that dragging has taken place.&lt;br /&gt;
The selected item can be moved to the desired location and a visual indication (Colored insertion mark or rectangle for folders) of the drop target. Releasing the mouse button will move the dragged item in the requested location.&lt;br /&gt;
===Note:===&lt;br /&gt;
* During a Drag &amp;amp; Drop operation, folders will expand after a short delay to expand their contents&lt;br /&gt;
* Automatic scrolling of the treeview is triggered when the mouse approaches the top or bottom of the treeview.&lt;br /&gt;
* Folders cannot be dropped into their childrens&lt;br /&gt;
* Drag &amp;amp; Drop can take place across foobar windows (for instance in the playlist view), and also to other applications or windows (See &#039;&#039;Exporting playlists or contents&#039;&#039; below)&lt;br /&gt;
* The contents of a playlist can be added to another playlist, when selected as the target of a drop operation. A &#039;&#039;&#039;+&#039;&#039;&#039; sign will appear under the mouse cursor to indicate that this mode is active. Please note that when the target playlist is locked for some reason (e.g. autoplaylists), no content can be added. A visual indication (small circle) is provided in this case below the mouse cursor.&lt;br /&gt;
&lt;br /&gt;
==Exporting playlists==&lt;br /&gt;
Playlists selected as the source of a drag &amp;amp; drop operations can be exported to windows folder (or potentially other applications). Export uses the .fpl format to create playlists in the dropped location.&lt;br /&gt;
Playlist contents (i.e. tracks) can be exported as well but only when the Ctrl key is pressed &#039;&#039;at the start&#039;&#039; of the dragging operation, in which case the files will be copied to the target location.&lt;br /&gt;
&lt;br /&gt;
==Importing playlists or content==&lt;br /&gt;
Similarly, foo_playlist_organizer can act as the target of a drag &amp;amp; drop operation initiated in other foobar windows, windows explorer or other applications. The behavior in this case is similar to the basic drag &amp;amp; drop and a visual indication of the target location will be given, together with an indication in the status bar that content is being imported.&lt;br /&gt;
===Note===&lt;br /&gt;
* The .fpl format is recognized as a valid source and playlists names will be preserved in this case.For other sources (e.g. other playlists formats, tracks, ...) a new playlist will be generated with some &#039;&#039;intelligent&#039;&#039; name generation based on similar fields (e.g. artist, album, genre, ...) found in the tracks being imported.&lt;br /&gt;
&lt;br /&gt;
=Context Menu=&lt;br /&gt;
[[Image:Foo_plorg_contextmenu.png|thumb|left|240px|Playlist Organizer Context Menu]]&lt;br /&gt;
A context menu is available from everywhere in the treeview, from a mouse right click or using the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; short cut.&lt;br /&gt;
Options are the following :&lt;br /&gt;
&lt;br /&gt;
===Activate===&lt;br /&gt;
Will activate the chosen playlist. Note that activation happens automatically when &amp;quot;Activate on single click&amp;quot; is chosen in the preferences page. This option is also available using the &#039;&#039;&#039;Enter&#039;&#039;&#039; key. &lt;br /&gt;
&lt;br /&gt;
===Rename===&lt;br /&gt;
Will rename the selected playlist or folder. This option is also available using the &#039;&#039;&#039;F2&#039;&#039;&#039; key.&lt;br /&gt;
&lt;br /&gt;
===Remove===&lt;br /&gt;
Will remove (delete) the selected playlist or folder. This option is also available using the &#039;&#039;&#039;Del&#039;&#039;&#039; key.&lt;br /&gt;
Note that folders cannot be removed while they still contain playlists or other folders.&lt;br /&gt;
&lt;br /&gt;
===Sort===&lt;br /&gt;
&lt;br /&gt;
Will sort the content of the selected folder alphabetically.&lt;br /&gt;
&lt;br /&gt;
===Autoplaylist (or lock) properties===&lt;br /&gt;
&lt;br /&gt;
Will give access to the properties of an autoplaylist (when selected) or whatever is provided for other playlist locks.&lt;br /&gt;
&lt;br /&gt;
===Contents===&lt;br /&gt;
&lt;br /&gt;
Will give access to the standard context menu, based on the content of the selected playlist.&lt;br /&gt;
&lt;br /&gt;
===Options===&lt;br /&gt;
&lt;br /&gt;
Enables the customization of the Treeview appearance (Playlist information to show on the right side, Framestyle and Colors).&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Show Playlist&#039;&#039;&#039; entry enables to select between Number of items, Duration, Size or Nothing.&lt;br /&gt;
&lt;br /&gt;
Please note that customizable colors are limited to Text, Background, Background (selected) and Active playlist, in order to remain consistent with the standard DUI color scheme. For CUI, the Active playlist colors defaults to the custom item frame color (See CUI standard color preferences).&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Reset&amp;quot; option is available to revert to the standard colors, frame style and item count.&lt;br /&gt;
&lt;br /&gt;
===Preferences===&lt;br /&gt;
&lt;br /&gt;
Will link to the general preferences page.&lt;br /&gt;
&lt;br /&gt;
===Restore===&lt;br /&gt;
&lt;br /&gt;
This entry will present the list of previously deleted playlists and enable to restore them. A menu entry (&amp;quot;Clear History&amp;quot;) is available at the bottom of the list and will permanently delete the playlists. Note that the history is not remembered across session and deleted playlists will be permanently lost if foobar is closed.&lt;br /&gt;
&lt;br /&gt;
===Create Playlist, Create Folder===&lt;br /&gt;
&lt;br /&gt;
These options will create new playlist and folders. Note that the newly created playlist or folder will be positioned  after a currently selected playlist or as the first child of a currently selected folder.&lt;br /&gt;
&lt;br /&gt;
==Note==&lt;br /&gt;
* When activated with the the &#039;&#039;&#039;Alt+Keydown&#039;&#039;&#039; shortcut, regular shortcuts are available for each of the menu entries (underlined letter, see picture for details).&lt;br /&gt;
&lt;br /&gt;
=Preferences=&lt;br /&gt;
[[Image:Foo_plorg_preferences.png|right|thumb|484px|Playlist Organizer Preferences]]&lt;br /&gt;
The preferences page is available from the preferences dialog (General-&amp;gt;Playlist Organizer) and provides with the following options.&lt;br /&gt;
==Behavior==&lt;br /&gt;
* &#039;&#039;&#039;Activate on single click&#039;&#039;&#039; will activate (e.g. make visible on the playlist renderer) the selected playlist on a single click. Please note that when this option is selected and a playlist is activated by other means (for example the standard playlist switcher), it will be automatically selected and thus made visible as a result of the standard treeview behavior. &lt;br /&gt;
* &#039;&#039;&#039;Play on double click&#039;&#039;&#039; will play the next item (according to the currently selected playback order) in the selected playlist.&lt;br /&gt;
* &#039;&#039;&#039;Make playing playlist visible on activation&#039;&#039;&#039; will ensure that the playing playlist is visible when activated (for instance when double clicking on the status bar). This option only make sense when &amp;quot;Activate on single click&amp;quot; is unchecked.&lt;br /&gt;
==Nodes==&lt;br /&gt;
* &#039;&#039;&#039;Title formatting&#039;&#039;&#039; enables the customization of how playlists and folders are displayed in the treeview. The formatting of nodes uses foobar [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference formatting language] and the following variables are available : &lt;br /&gt;
**&#039;&#039;%node_name%&#039;&#039; is the name of the node, either a playlist or a folder.&lt;br /&gt;
**&#039;&#039;%is_folder%&#039;&#039; is a boolean value for use in  &#039;&#039;$if( ...)&#039;&#039;  expressions and is true when the node is a folder.&lt;br /&gt;
**&#039;&#039;%count%&#039;&#039; will provide the number of children (folders or playlists) for each folder or the number of items for playlists.&lt;br /&gt;
**&#039;&#039;%playlist_duration%&#039;&#039; will provide the duration of playlists.&lt;br /&gt;
**&#039;&#039;%playlist_size%&#039;&#039; will provide the size of playlists (in kB, MB or GB).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default formatting string is  &#039;&#039;%node_name%$if(%is_folder%,&#039; [&#039;%count%&#039;]&#039;,)&#039;&#039;  and will give an indication of the number of children (folders or playlists) for each folder in the tree.&lt;br /&gt;
&lt;br /&gt;
Another popular string is &#039;&#039;%node_name%$if($and(%is_folder%,$strcmp(%count%,0)),&#039; []&#039;)&#039;&#039; which will not show the children count but just provide an indication of empty folders.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;Upcoming&#039;&#039;&#039;&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Changed shared selection type as caller_playlist_manager and revisited shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2011-05-03]&lt;br /&gt;
** Fixed small cursor glitch after folder expansion&lt;br /&gt;
** Fixed some menu entries skipped (standard &amp;quot;contents&amp;quot; menu)during their execution&lt;br /&gt;
** Checked behavior for nicer &amp;quot;Library Viewer Selection&amp;quot; playlist management (with Facets)&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2011-04-26]&lt;br /&gt;
** Fixed [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=753430 this bug]&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2011-04-25]&lt;br /&gt;
** Re-engineering of drag&amp;amp;drop operations, Various bugfix&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2011-04-23]&#039;&#039;&#039; Do Not use&#039;&#039;&#039;&lt;br /&gt;
** Ctrl-key is no longer needed to add tracks to a playlist and it&#039;s behavior has been merged with the standard one, depending on the mouse position. &lt;br /&gt;
* &#039;&#039;&#039;V1.9.1&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Recompiled with /MD run time library option.&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2011-04-15]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039; [2010-10-21]&lt;br /&gt;
** Selected playlist is now unchanged after dropping files into a playlist from external source or other panel&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
** Implemented shared selection management&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039; [2010-10-03]&lt;br /&gt;
** Provide real lock name instead of &amp;quot;Lock Properties&amp;quot;&lt;br /&gt;
** Fixed keyboard shortcuts not working in CUI when poo_plorg had focus&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039; [2010-10-01]&lt;br /&gt;
** New option in contexte menu to show playlist Duration and Size&lt;br /&gt;
** New variables in node titleformatting to show playlist Duration and Size&lt;br /&gt;
** Replaced %children_count% with %count% (available for playlists and folders) in node titleformatting&lt;br /&gt;
** Included &#039;Show Playlist&#039; reset to default (item count) in Options-&amp;gt;Reset menu&lt;br /&gt;
** Fixed erratic behavior of selection after a playlist is removed&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Simple Recompilation&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039; [2010-08-21]&lt;br /&gt;
** Fixed preferences appearing in so called &amp;quot;Broken Components&amp;quot; section (in Foobar V1.1)&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039; [2010-05-22]&lt;br /&gt;
** Fixed bug in standard context menu activation&lt;br /&gt;
** Removed selection of target playlist when copying content&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039; [2010-05-20]&lt;br /&gt;
** Fixed bug in playing playlist detection&lt;br /&gt;
** Hack to replace &amp;quot;Filter Results&amp;quot; playlist (CUI) next to &amp;quot;Filter Results (Playback)&amp;quot; playlist&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039; [2010-05-15]&lt;br /&gt;
** &#039;&#039;&#039;1.0.1&#039;&#039;&#039; Fixed minor bug in colors of active playlist not refreshed after activation when clicking on the status bar.&lt;br /&gt;
** Reworked Drag &amp;amp; drop and introduce content copy from one playlist to another (with Ctrl Key), or copy inside a playlist when Drag &amp;amp; Drop is from &amp;quot;external&amp;quot; source&lt;br /&gt;
** Introduced titleformatting script for nodes (See Preferences page)&lt;br /&gt;
** Memorized last known tree configuration for recall when new instance is initialized&lt;br /&gt;
** Eliminated flickering during single click and resize (to be confirmed on Vista/Seven)&lt;br /&gt;
** Implemented options to restore deleted playlists&lt;br /&gt;
** Fixed Reset function not working in preferences&lt;br /&gt;
** Forced playlist activation (after double click) when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Added indication of external drop operations in status bar&lt;br /&gt;
** Autonamed newly created playlists and folders&lt;br /&gt;
** Ensured active playlist is selected at initialization&lt;br /&gt;
** Fixed dialog not getting focus when using Tab key&lt;br /&gt;
** Reworked tree display (rectangles mgt.)&lt;br /&gt;
** Fixed bug in framestyle setting&lt;br /&gt;
** Fixed bug (with potential crash) in accented characters display&lt;br /&gt;
** Miscellaneous bug fixes and improvements&lt;br /&gt;
* &#039;&#039;&#039;V0.9&#039;&#039;&#039;&lt;br /&gt;
** Implemented external drag &amp;amp; drop support (Thanks kerpondile !)&lt;br /&gt;
** Fixed preferences page activated from 1st item of standard context menu&lt;br /&gt;
** Fixed improper colors on selection (drop highlight) rectangle&lt;br /&gt;
* &#039;&#039;&#039;V0.8&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;&#039;0.8.3&#039;&#039;&#039; Fixed glitch in active item display. Applied theme. Introduced a new option to make playing playlist visible upon activation. Fixed background color of preferences page.&lt;br /&gt;
** &#039;&#039;&#039;0.8.2&#039;&#039;&#039; Fixed crash in debug mode due to resize called before window activation (OnInit).&lt;br /&gt;
** &#039;&#039;&#039;0.8.1&#039;&#039;&#039; CUI colors when not restored properly after unselecting custom background color &lt;br /&gt;
** Fixed playback continuation (after double click) happening in same playlist when &amp;quot;Play on double click&amp;quot; option is selected and &amp;quot;Playback follow cursor&amp;quot; is not selected&lt;br /&gt;
** Fixed improper display of playlists or folders containing &amp;quot;&amp;amp;&amp;quot;&lt;br /&gt;
** Improved look for Vista/seven (Custom Draw for all items, No lines)&lt;br /&gt;
** Added visual indication of playing playlist&lt;br /&gt;
* &#039;&#039;&#039;V0.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed DUI context menu not appearing in edit mode&lt;br /&gt;
** Neutralized  selection of first playlist if clicking on an empty region&lt;br /&gt;
** Double click now jumps to next track when &amp;quot;Play on double click&amp;quot; option is selected&lt;br /&gt;
* &#039;&#039;&#039;V0.5&#039;&#039;&#039;&lt;br /&gt;
** Fixed unwanted column ui context menu&lt;br /&gt;
** Neutralized keyboard shortcuts while editing an item&lt;br /&gt;
** Various changes on click/double click handling&lt;br /&gt;
* &#039;&#039;&#039;V0.4&#039;&#039;&#039;&lt;br /&gt;
** Added options to hide item count (Context Menu-&amp;gt; Options)&lt;br /&gt;
** Tentatively introduced Vista / Seven style (to be confirmed)&lt;br /&gt;
** Implemented &amp;quot;Preferences&amp;quot; entry in context menu&lt;br /&gt;
** Implemented &amp;quot;Activate on single click&amp;quot; option (Preferences)&lt;br /&gt;
** Implemented &amp;quot;Play on double click&amp;quot; option (Preferences)&lt;br /&gt;
** Fix glitch with drophightlight rectangle (dotted rectangle sometimes breaks and takes on strange colors)&lt;br /&gt;
** Re engineered  visual appearance + drag &amp;amp; drop operations, fixed some glitches&lt;br /&gt;
** Implemented minimum width/height&lt;br /&gt;
** Fixed active playlist not appearing at startup&lt;br /&gt;
** Fixed &amp;quot;active playlist&amp;quot; status/color lost after move&lt;br /&gt;
** Fixed glitch during window scrolling (drag&amp;amp; drop)&lt;br /&gt;
** New border drawing to integrate nicely with DUI&lt;br /&gt;
* &#039;&#039;&#039;V0.3&#039;&#039;&#039;&lt;br /&gt;
** Fixed item count not refreshing instantaneously&lt;br /&gt;
** Fixed double click not working outside of playlist name&lt;br /&gt;
* &#039;&#039;&#039;V0.2&#039;&#039;&#039;&lt;br /&gt;
** Link to this page from the preferences page (Help button)&lt;br /&gt;
** Fixed bug in managing (Enter/Delete) keys for label editing&lt;br /&gt;
** Make the matching (at startup) of tree content vs. actual playlists more intelligent (usefull for utilization of the popup window)&lt;br /&gt;
** Fixed panel appearing twice in column UI layout&lt;br /&gt;
* &#039;&#039;&#039;V0.1&#039;&#039;&#039; [2010-05-03] &lt;br /&gt;
** Initial release&lt;br /&gt;
&lt;br /&gt;
=To Do=&lt;br /&gt;
* Implement copy/paste settings across instances&lt;br /&gt;
* Synchronize playlist order with tree (on request and maybe automatically)&lt;br /&gt;
* Generate super set of contained playlists when activating a folder (maybe)&lt;br /&gt;
* Add capability to copy a playlist (create a new one) whith Ctrl Key (for internal drop source)&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=752994 bug]&lt;br /&gt;
* check this [http://www.hydrogenaudio.org/forums/index.php?showtopic=80705&amp;amp;view=findpost&amp;amp;p=734630 bug]&lt;br /&gt;
* Provide option to focus on target playlist after D&amp;amp;D (maybe)&lt;br /&gt;
* Provide Lockname as a variable&lt;br /&gt;
* Improve placement of restored playlist&lt;br /&gt;
* Make external dropsource return asynchronous (maybe)&lt;br /&gt;
* Eliminate drawing of drophighlighted item (source) on click without dragging (maybe)&lt;br /&gt;
* Prevent the panel from appearing in the toolbar menu (CUI)&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22761</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22761"/>
		<updated>2011-05-18T22:33:51Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* To do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created (according to the corresponding toolbar menu options or depending on the special keys used to trigger the search).&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon gives and indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&amp;lt;&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22760</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22760"/>
		<updated>2011-05-18T22:33:22Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created (according to the corresponding toolbar menu options or depending on the special keys used to trigger the search).&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon gives and indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.14&#039;&#039;&#039; [2011-05-19]&lt;br /&gt;
** Implemented auto-complete in search pattern based on the content of history&amp;lt;&lt;br /&gt;
** Various bugs fixed&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Implement history dropdown&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22759</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22759"/>
		<updated>2011-05-18T22:14:39Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Preferences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created (according to the corresponding toolbar menu options or depending on the special keys used to trigger the search).&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon gives and indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the search history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Implement history dropdown&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22758</id>
		<title>Foobar2000:Components/Quick Search Toolbar (foo quicksearch)</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Quick_Search_Toolbar_(foo_quicksearch)&amp;diff=22758"/>
		<updated>2011-05-18T22:14:07Z</updated>

		<summary type="html">&lt;p&gt;NEMO7538: /* Search ... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{fb2k}}&lt;br /&gt;
[[Category:foobar2000 3rd-Party Components|Quicksearch UI Element (foo quicksearch)]]&lt;br /&gt;
[[Image:QuickSearch3.png|thumb|right|405px|Quick Search]]&lt;br /&gt;
=General=&lt;br /&gt;
&#039;&#039;&#039;foo_quicksearch&#039;&#039;&#039; is derived from [http://www.hydrogenaudio.org/forums/index.php?showtopic=44012 foo_uie_quicksearch] and ported to foobar2000 V1.0.x. It is now available as either a Column UI panel or an UI element for the default UI. The version has been rewritten (almost) from scratch to benefit from the new SDK and introduce new features such as autoplaylist generation, full customization of the context menu, ....&lt;br /&gt;
&lt;br /&gt;
Configuration has also been simplified with separation of general and toolbar customization, and performances have been improved thanks to new features in the SDK.&lt;br /&gt;
&lt;br /&gt;
===Download link===&lt;br /&gt;
The component is available from [http://www.foobar2000.org/components/view/foo_quicksearch here]. Download an place in your foobar components directory (or use the automatic updater with foobar V1.1)&lt;br /&gt;
&lt;br /&gt;
===Discussion===&lt;br /&gt;
Please use [http://www.hydrogenaudio.org/forums/index.php?showtopic=80259 this thread] to provide feedback or report any bug.&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
As of version 2.4 [2011-04-16]:&lt;br /&gt;
* Foobar 1.1 (or newer) is required and Column UI 0.3.8.x (Optional). The component will not work with previous versions of Foobar.&lt;br /&gt;
* [[http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c32f406a-f8fc-4164-b6eb-5328b8578f03 Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system Microsoft Visual C++ 2010 Redistributable Package] may also be needed if not already present on your system&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
Although the toolbar is highly configurable, the recommended scenario is to just install the toolbar as an UI element (Default UI) or a column UI panel, then type a string and press the enter key to visualize the results. A popup instance of the toolbar can also be activated from the main Menu (Library-&amp;gt;Quicksearch).&lt;br /&gt;
&lt;br /&gt;
If you are using column UI, it is recommended that your remove &#039;foo_uie_quicksearch&#039; from your components directory.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
A search is triggered by the enter key, using the string typed in the toolbar as the basic criteria.&lt;br /&gt;
&lt;br /&gt;
The target playlist (as set in the Preferences page) will be fed with the results of the search ... or a new playlist (or autoplaylist) will be created (according to the corresponding toolbar menu options or depending on the special keys used to trigger the search).&lt;br /&gt;
&lt;br /&gt;
The toolbar is highlighted when the search is not successful.&lt;br /&gt;
&lt;br /&gt;
===Special Keys===&lt;br /&gt;
Pressing &amp;quot;Crtl&amp;quot;, &amp;quot;Alt&amp;quot; or &amp;quot;Shift&amp;quot; keys (together with the enter key) will trigger the following processings, regardless of the search parameters that are currently selected :&lt;br /&gt;
* Ctrl: Force the creation of a new results playlist&lt;br /&gt;
* Ctrl+Shift: Force the creation of a new (results) autoplaylist&lt;br /&gt;
* Alt: Force search in the current playlist&lt;br /&gt;
* Alt+Shift: Force search in all playlist(except the last search results) &lt;br /&gt;
* Shift: Force inline playlist search&lt;br /&gt;
* Ctrl+Alt: Force the creation of a new results playlist and use the current playlist as the search source&lt;br /&gt;
* Ctrl+Alt+Shift: Force the creation of a new results playlist and use all playlists (except the last search results) as the search source&lt;br /&gt;
&lt;br /&gt;
===About playlists created with the toolbar===&lt;br /&gt;
You can do whatever you want with the playlists that are created when the &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; options are checked in the toolbar menu, except for the restrictions that apply to autoplaylists.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;standard&amp;quot; results playlist behaves slightly differently. You can add or remove items or even delete it (it will be recreated automatically). As its contents is controlled by the toolbar,it cannot be renamed in order to avoid the situation where it would have been renamed and its contents changed by the next search.&lt;br /&gt;
&lt;br /&gt;
===Main menu entry===&lt;br /&gt;
A menu entry (Library--&amp;gt;Quicksearch) is available to launch the toolbar in standalone pop-up mode, when the toolbar is not already available (DUI). This entry can be mapped to a keyboard shortcut.&lt;br /&gt;
===Main keyboard shortcuts===&lt;br /&gt;
Three additional entries are available to be mapped as (main) keyboard shortcuts :&lt;br /&gt;
* &#039;&#039;&#039;Activate toolbar&#039;&#039;&#039; will set focus to the toolbar&lt;br /&gt;
* &#039;&#039;&#039;Create playlist from last search&#039;&#039;&#039; will re execute the last search and create a new playlist&lt;br /&gt;
* &#039;&#039;&#039;Create autoplaylist from last search&#039;&#039;&#039; will re execute the last search and create a new autoplaylist. If the last search was not from the media library, a simple playlist is created instead.&lt;br /&gt;
&lt;br /&gt;
Note that generated autoplaylists can later be edited to change their content and underlying query (See [[Foobar2000:Components/Quicksearch_UI_Element_(foo_quicksearch)#Autoplaylist_Client|Autoplaylist Client]] below).&lt;br /&gt;
&lt;br /&gt;
===Context menu===&lt;br /&gt;
[[Image:QsContextMenu.png|thumb|right|405px|Quicksearch Context Menu]]&lt;br /&gt;
&lt;br /&gt;
A context menu is available from the playlist view (Search for same) and will list some tags to be used in order to search in the media library for similar entries. &lt;br /&gt;
&lt;br /&gt;
The content of the context menu is now fully customizable. Please refer to the &amp;quot;Tagz strings&amp;quot; area of the preferences page for details.&lt;br /&gt;
&lt;br /&gt;
These context menu entries can be mapped to keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
Please note that the context menu is not available (and grayed) when several entries are selected in the playlist view.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==Toolbar Menu==&lt;br /&gt;
A toolbar menu is available by (left) clicking on the toolbar icon and provides with the ability to customize search parameters or the look of the toolbar. Options are divided into sections which are described below :&lt;br /&gt;
[[Image:QsToolbarMenu.PNG|thumb|left|405px|Quicksearch Toolbar Menu]]&lt;br /&gt;
===Search configuration===&lt;br /&gt;
&#039;&#039;&#039;Search in :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates where to search : &lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039; Will search in the media library&lt;br /&gt;
* &#039;&#039;&#039;Playlist&#039;&#039;&#039; will search in the currently selected playlist&lt;br /&gt;
* &#039;&#039;&#039;Playlist (inline) &#039;&#039;&#039; will search in the currently selected playlist but will highlight the results in the currently selected playlist. If &amp;quot;Set Focus to search results&amp;quot; is not selected in the preferences page, navigation in the selected results is available through the &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; arrow keys.&lt;br /&gt;
* &#039;&#039;&#039;All Playlists &#039;&#039;&#039; will search in the contents of all playlist. Please note that the playlist containing the previous search results will be skipped when searching in all playlists.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tags&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Provides with the ability to select in which tags the search will be performed. The contents of this option is customizable in the general preferences page (See &amp;quot;Tagz strings&amp;quot; section).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Match :&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Determines what kind of processing will be performed to produce the results, in particular when several keywords are typed :&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if all keywords are found in the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Match all&#039;&#039;&#039; will select tracks if one of the keywords is found in the tags determined by the &amp;quot;Search ins&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Exact&#039;&#039;&#039; will select tracks if the typed string exactly matches the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option&lt;br /&gt;
* &#039;&#039;&#039;Prefix&#039;&#039;&#039; will select tracks if when the contents of the tags determined by the &amp;quot;Search in ...&amp;quot; option are starting with the typed string&lt;br /&gt;
* &#039;&#039;&#039;Extended&#039;&#039;&#039; will use the foobar query syntax. Look [http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax here] for further details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables automatic searching. The toolbar will automatically (e.g. without the need to press the enter key) trigger a search when this option is selected. The launch of the search is control by a delay that can be tuned in the general Preferences page.&lt;br /&gt;
Autosearch is mutually exclusive with &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options.&lt;br /&gt;
&lt;br /&gt;
Please note that the autosearch is not triggered when the searched string has only one character.&lt;br /&gt;
&lt;br /&gt;
===Results Playlist Management===&lt;br /&gt;
These options are mutually exclusive with &amp;quot;Autosearch ...&amp;quot; option. Thee are not available as well for autoplaylist clients.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page. Please note this option is deactivated when &amp;quot;Playlist (inline)&amp;quot; is selected as the source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New Autoplaylist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will generate a new playlist instead of sending the results to the &amp;quot;Target Playlist&amp;quot; indicated in the preferences page, and set up this new playlist as an autopaylist, using the transformed search criteria. Please note this option is deactivated when anything else than &amp;quot;Database&amp;quot; is selected as the source and is mutually exclusive with the &amp;quot;New Playlist&amp;quot; option.&lt;br /&gt;
&lt;br /&gt;
===History and Favorites===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This menu entry provides with the list of recent queries. Selecting one of them will reexecute the corresponding search. A visual indication of the source of each search appears in history (From DB=Noting, Playlist=[P], All Playlist=[A], Inline=[I]) after the searched pattern.&lt;br /&gt;
&lt;br /&gt;
Please note that parameters (Search in ..., Tags ..., Match ...) are saved within the history and will be recalled together with the search criteria.&lt;br /&gt;
&lt;br /&gt;
An option (&amp;quot;Clear&amp;quot;) is provided to clear the history below the list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search history can be used to flag some entries as favorites. The menu entry provides options :&lt;br /&gt;
* to add history items to favorites&lt;br /&gt;
* to delete favorites&lt;br /&gt;
* to recall one of the favorites searches for reexecution&lt;br /&gt;
&lt;br /&gt;
===Options and Preferences===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option enable to customize the look of the toolbar, including :&lt;br /&gt;
* Loading a custom bitmap (Must be 2 x 16x20, e.g. hight=16, width=40 with the second part used as the mouseover image. The top left pixel of each part will be used as the transparent color). Selecting this option when a custombitmap is loaded will revert to the standard image.&lt;br /&gt;
* Customizing the frame style (None Grey, Sunken).&lt;br /&gt;
* Customizing the colors. Default toolbar colors are those set in DUI or CUI preferences, and a custom color can be set for each category (Text and Background ... for normal and errors state). When customized, these options will revert to the default colors if selected.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Options-&amp;gt;Reset configuration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This option will revert to the default toolbar configuration, for all the toolbar menu options.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preferences&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will give access to the general preferences.&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
* &amp;quot;New playlist&amp;quot; and &amp;quot;New autoplaylist&amp;quot; options are not compatible with &amp;quot;Inline playlist search&amp;quot; and will be deactivated accordingly.&lt;br /&gt;
* &amp;quot;New autoplaylist&amp;quot; cannot be used when searching from an other source than the media library and will be deactivated accordingly.&lt;br /&gt;
* You are not allowed to rename the results playlist. It is automatically managed by the plugin.&lt;br /&gt;
* Sorting (Foobar Query syntax) is not currently supported.&lt;br /&gt;
&lt;br /&gt;
==Toolbar Icon Status==&lt;br /&gt;
The toolbar icon gives and indication of currently selected options and can take the following appearance :&lt;br /&gt;
* [[File:QsIcon-Normal.png]]   Standard search in Media Library&lt;br /&gt;
* [[File:QsIcon-Autosearch.png]]   Autosearch (e.g. search as you type)&lt;br /&gt;
* [[File:QsIcon-NewPlaylist.png]]   A new playlist will be created&lt;br /&gt;
* [[File:QsIcon-NewAutoPlaylist.png]]   A new autoplaylist will be created&lt;br /&gt;
&lt;br /&gt;
* [[File:QsIcon-InPlaylist.png]]   Search will take place in the current playlist&lt;br /&gt;
* [[File:QsIcon-Error.png]]   Autosearch takes place in the current playlist, but there is no active selection. Selecting a playlist different from the search results playlist and reactivating the toolbar will revert to normal search in playlist&lt;br /&gt;
* [[File:QsIcon-PlaylistInline.png]]   Search will take place using all playlists&lt;br /&gt;
* [[File:QsIcon-AllPlaylists.png]]   Search will take place using all playlists&lt;br /&gt;
&lt;br /&gt;
Please note that the corresponding situations may be combined in a single icon to reflect the actual selected search parameters.&lt;br /&gt;
&lt;br /&gt;
==Preferences==&lt;br /&gt;
The general configuration is available from the Preferences menu (under Media Library/Quicksearch) or by selecting &amp;quot;Preferences&amp;quot; from the toolbar Menu. &lt;br /&gt;
&lt;br /&gt;
Note that the general configuration is now consistent with the standard foobar behavior for preference pages (OK, Cancel and Apply buttons). Changes (including any change made in the Tagz list) are &#039;&#039;&#039;not&#039;&#039;&#039; taken into account until the OK or Apply buttons are hit. &lt;br /&gt;
[[Image:QsPreferences.png‎|thumb|right|600px|Quick Search Preferences Page]]&lt;br /&gt;
Options are divided into sections as follows :&lt;br /&gt;
===Search ...===&lt;br /&gt;
&#039;&#039;&#039;Reset searchstring when successfull&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will blank the string you have typed after a successfull search.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Reset &amp;quot;New Playlist&amp;quot; after execution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will unselect &amp;quot;New Playlist&amp;quot; or &amp;quot;New Autoplaylist&amp;quot; after execution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remove parenthesis from search tags (context menu)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically remove parenthesis found in tags from the selected track before building the query. Can be usefull to search more globally (e.g. excluding &amp;quot;(Disc 1 ... n)&amp;quot; from the search criteria).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic switch to extended search&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will automatically force the &amp;quot;Match ...&amp;quot; option in the toolbar to &amp;quot;Extended&amp;quot; when a &amp;quot;%&amp;quot; character is typed in the toolbar. Enables easier usage of extended queries.&lt;br /&gt;
The &amp;quot;Match ...&amp;quot; option will revert to its previous value if only normal characters are present or if the typing area is cleared.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autosearch delay&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enables to fine tune the delay which triggers the search when the &amp;quot;Autosearch&amp;quot; option is selected in the toolbar. It is recommended that you set this option to &amp;quot;Slow&amp;quot; if your system is Slow or if you have a large library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Autocomplete from history&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enable the appearance of a drop-down list while typing a search string, in order to select the string among previous searches, based on the content of the history.&lt;br /&gt;
&lt;br /&gt;
===Tagz strings===&lt;br /&gt;
Enables the customization of strings to look for during a search. The list can be manipulated using the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot;, &amp;quot;Delete&amp;quot;, &amp;quot;Reset&amp;quot;, &amp;quot;Up&amp;quot; and &amp;quot;Down&amp;quot; buttons and the fields below the list :&lt;br /&gt;
* &#039;&#039;&#039;Name&#039;&#039;&#039; is the human readable index of the list and will appear in the &amp;quot;Tagz strings ...&amp;quot; menu of the toolbar and in the context menu options&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; contains the Tagz language strings used for the search&lt;br /&gt;
* &#039;&#039;&#039;Context Menu&#039;&#039;&#039; will enable the entry in the context menu and keyboard shortcuts mapping.&lt;br /&gt;
&#039;&#039;&#039;Please note :&#039;&#039;&#039;&lt;br /&gt;
* The status of the &amp;quot;Add&amp;quot;, &amp;quot;Change&amp;quot; and &amp;quot;Delete&amp;quot; buttons is managed to avoid duplicates in the list. Rules are the following :&lt;br /&gt;
** You cannot have the same value with two different name&lt;br /&gt;
** You cannot have several entries with the same name&lt;br /&gt;
* For the strings to appear in Keyboards shortcuts preferences, the &amp;quot;OK&amp;quot; button needs to be hit in Quicksearch Preferences page before moving to the keyboard shortcuts preference pages.&lt;br /&gt;
&lt;br /&gt;
===Search Results===&lt;br /&gt;
&#039;&#039;&#039;Target Playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Target Playlist (New)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the name of the playlist that will be fed with the search results when generating a new playlist or a new autoplaylist.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Append searchstring to playlist name&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When selected, the string used for the search will be appended (between brackets) to the playlist name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Set focus to search results&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Will set the focus to the main foobar window after a successful search. Please note that this option is irrelevant when Autosearch is activated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;History size&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates the desired length for the search history. Setting this parameter to zero will clear the search history.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manage Favorites&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Indicates whether the management of favorites is desired.&lt;br /&gt;
&lt;br /&gt;
==Autoplaylist Client==&lt;br /&gt;
[[File:PlContextMenu.png|thumb|right|450px|Playlist Context Menu]]&lt;br /&gt;
Autoplaylists created with foo_quicksearch can be edited from the context menu (right click) of the playlist manager. &lt;br /&gt;
&lt;br /&gt;
Activating this entry will pop-up a new instance of the quicksearch toolbar, in order to modify the search parameters. Results are directly fed into the selected playlist.&lt;br /&gt;
&lt;br /&gt;
Please note that autoplaylists can only lookup in foobar&#039;s media library (and not playlists). Some options in the toolbar menu of autoplaylist clients are grayed out accordingly.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;New playlist&amp;quot; and &amp;quot;New Autoplaylist&amp;quot; entries are not available in this context, as the results will only be updated in the selected autoplaylist.&lt;br /&gt;
&lt;br /&gt;
=Change Log=&lt;br /&gt;
* &#039;&#039;&#039;V2.13&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed improper display of dynamic icon, now using 32bpp&lt;br /&gt;
* &#039;&#039;&#039;V2.12&#039;&#039;&#039; [2011-05-16]&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.11&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Restored custom bitmap option&lt;br /&gt;
** Modified menu style (use bullet for alternative selection)&lt;br /&gt;
* &#039;&#039;&#039;V2.10&#039;&#039;&#039; [2011-05-15]&lt;br /&gt;
** Use png icons for better visual effet  [(c) Yusuke Kamiyamane]&lt;br /&gt;
** Fixed some bugs in autosearch + &amp;quot;in playlist&amp;quot; filer mode&lt;br /&gt;
* &#039;&#039;&#039;V2.9&#039;&#039;&#039; [2011-05-14]&lt;br /&gt;
** Reviewed history management in case of recall to acccount for forced parameters&lt;br /&gt;
** Provided visual indication of source in history (From DB=Noting, Playlist=[P], All Playlist=[A],Inline=[I]&lt;br /&gt;
** Complete Rework of autosearch (as you type ...) from within a playlist with quicksearch toolbar now acting as a filter to the current playlist&lt;br /&gt;
** Dynamic icon to provide visual feedback of selected options &lt;br /&gt;
* &#039;&#039;&#039;V2.8&#039;&#039;&#039; [2011-05-11]&lt;br /&gt;
** Invalidated Shift and Alt key in autoplaylist clients&lt;br /&gt;
** Fixed bug :Alt+Enter, Alt+Shift+Enter not working (since V2.3)&lt;br /&gt;
* &#039;&#039;&#039;V2.7&#039;&#039;&#039; [2011-05-10]&lt;br /&gt;
** Fixed behavior during copy/paste operations by core uie mgt.&lt;br /&gt;
** Implemented autoplaylist client (to easily edit previously generated autoplaylist)&lt;br /&gt;
** Various bugs fixed and code reorganized&lt;br /&gt;
** Implemented Quicksearch as a referenced media library viewer (Prefs pages-&amp;gt;Media Library)&lt;br /&gt;
** Automatic refresh when in Autosearch mode when search criterias (e.g. Search in ..., Tags ..., Match ...) are changed&lt;br /&gt;
* &#039;&#039;&#039;V2.6&#039;&#039;&#039; [2011-05-05]&lt;br /&gt;
** Integrated Quicksearch in media library preferences page&lt;br /&gt;
** Implemented &amp;quot;bump&amp;quot; on activation request (From media library preferences page OR &amp;quot;Quicksearch&amp;quot; playlist lock OR menu command: activate toolbar)&lt;br /&gt;
* &#039;&#039;&#039;V2.5&#039;&#039;&#039; [2011-04-29]&lt;br /&gt;
** Removed default selection of first item after a search&lt;br /&gt;
* &#039;&#039;&#039;V2.4&#039;&#039;&#039; [2011-04-16]&lt;br /&gt;
** Compiled with the latest SDK [2011-03-11] &amp;amp; VS2010&lt;br /&gt;
** Fixed Alt+F4 Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.3&#039;&#039;&#039; [2010-10-19]&lt;br /&gt;
** Fixed Alt Key behavior&lt;br /&gt;
* &#039;&#039;&#039;V2.2&#039;&#039;&#039; [2010-10-07]&lt;br /&gt;
** Reworked context menu management&lt;br /&gt;
** Branch to toolbar instead of preferences when invoking show_ui() from playlist lock in playlist managers&lt;br /&gt;
** Fixed GDI leak&lt;br /&gt;
* &#039;&#039;&#039;V2.1&#039;&#039;&#039; [2010-09-26]&lt;br /&gt;
** Reworked the removal of leading/trailing blanks in &amp;quot;search for same ...&amp;quot; query string when parenthesis removal is active (suspected crash)&lt;br /&gt;
* &#039;&#039;&#039;V2.0&#039;&#039;&#039; [2010-09-02]&lt;br /&gt;
** Eliminated leading/trailing blanks in &amp;quot;search for same ...&amp;quot; pattern when parenthesis removal is active&lt;br /&gt;
** Updated to latest SDK version [2010-05-21]&lt;br /&gt;
* &#039;&#039;&#039;V1.9&#039;&#039;&#039; [2010-05-14]&lt;br /&gt;
** Eliminated flickering&lt;br /&gt;
* &#039;&#039;&#039;V1.8&#039;&#039;&#039;&lt;br /&gt;
** Augmented max history and favorites size&lt;br /&gt;
** Fixed background color of preferences page&lt;br /&gt;
* &#039;&#039;&#039;V1.7&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;V1.7.1 Quickfix&#039;&#039; : Removed setting the search results playlist as the playing playlist&lt;br /&gt;
** Invalidated &amp;quot;Tags ...&amp;quot; in toolbar Menu when &amp;quot;Extended&amp;quot; is selected&lt;br /&gt;
** Fixed small glitch in preferences display&lt;br /&gt;
** Fixed &#039;&#039;DURING LAST&#039;&#039; queries not working properly&lt;br /&gt;
* &#039;&#039;&#039;V1.6&#039;&#039;&#039;&lt;br /&gt;
** Fixed improper management of favorites&lt;br /&gt;
* &#039;&#039;&#039;V1.5&#039;&#039;&#039;&lt;br /&gt;
** Various minor bugfix in toolbar menus and playlist generation&lt;br /&gt;
** Revisited keyboard shortcut recalls to generate new playlist (instead of simply recalling the last search) and added autoplaylist option&lt;br /&gt;
* &#039;&#039;&#039;V1.4&#039;&#039;&#039;&lt;br /&gt;
** New keyboard shortcut to recall last search&lt;br /&gt;
** Separate field for target &amp;quot;new&amp;quot; playlist name (Preferences)&lt;br /&gt;
** Various labels changed in toolbar menu&lt;br /&gt;
** Permanent alignment of playlist name with preferences&lt;br /&gt;
** (Internal) re engineering of the playlist lock management (now in Init section)&lt;br /&gt;
* &#039;&#039;&#039;V1.3&#039;&#039;&#039;&lt;br /&gt;
** Results Playlist can be removed&lt;br /&gt;
** Implemented max favorites size (32)&lt;br /&gt;
* &#039;&#039;&#039;V1.2&#039;&#039;&#039;&lt;br /&gt;
** Implemented a new keyboard shortcut to focus on the toolbar&lt;br /&gt;
** Implemented a minmax size option for CUI&lt;br /&gt;
* &#039;&#039;&#039;V1.1&#039;&#039;&#039;&lt;br /&gt;
** CUI: Now available as a toolbar, not only a panel&lt;br /&gt;
** Renamed menu entries to &amp;quot;Quicksearch ...&amp;quot;&lt;br /&gt;
** Fixed (tbc) context menu option label glitch&lt;br /&gt;
** Invalidated &amp;quot;Set focus to search results&amp;quot; when Autosearch is active&lt;br /&gt;
** Updated help page address&lt;br /&gt;
* &#039;&#039;&#039;V1.0&#039;&#039;&#039;&lt;br /&gt;
** Initial version&lt;br /&gt;
&lt;br /&gt;
=To do=&lt;br /&gt;
* Implement history dropdown&lt;br /&gt;
* Feed the shared selection instead of target playlist (maybe)&lt;br /&gt;
* Implement (playing) backup playlist and related switches&lt;br /&gt;
* Check &amp;quot;Set focus to search results&amp;quot; (improve focus mgt to focus on playlist manager, through service_enum ??)&lt;br /&gt;
* Add an option to play the results after a search&lt;br /&gt;
* Think about multi valued fields&lt;/div&gt;</summary>
		<author><name>NEMO7538</name></author>
	</entry>
</feed>