HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: foosion on 2003-03-26 23:15:25

Title: Database Search
Post by: foosion on 2003-03-26 23:15:25
Stable version: 1.3.1
Beta version: 1.4 beta 2
See my 0.9 components page (http://foosion.foobar2000.org/0.9/) for download links.



Original post follows:

I have made a database search plugin B) (go to the third party plugins topic for details and download link).

I don't think it's perfect yet (search window is not resizable), but it's working. Any comments, problems, suggestions?
Have a look at the configuration page for it contains hints about the usage.
Title: Database Search
Post by: musicmusic on 2003-03-26 23:41:35
nice:) its working quite well, i used to use album list as my database explorer but now ive got this too  It is extremely handy for building playlists. the search is also a hella lot faster than the normal playlist search.

bug: (unicode) xp - wierd title.
Title: Database Search
Post by: foosion on 2003-03-26 23:47:51
Quote
bug: (unicode) xp - wierd title.


I guess, I'm setting the window title to an ANSI string. At least this will be easy to fix.
Title: Database Search
Post by: musicmusic on 2003-03-26 23:57:18
Quote
I guess, I'm setting the window title to an ANSI string. At least this will be easy to fix.

Maybe, but it actually displays garbage, sometimes amongst it references to songs in my database, but not the search results. What is it supposed to display?

Also, an option to initially display the entire database would be useful (for me  )
Title: Database Search
Post by: ssamadhi97 on 2003-03-27 00:06:15
Quote
sometimes amongst it references to songs in my database, but not the search results.

It actually displays readily formatted playlist entries here every now and then, just for giggles 
Title: Database Search
Post by: Curi0us_George on 2003-03-27 00:14:14
Damn you.    I was going to write (err, finish writing) that plugin.    (Actually, I still plan to finish it.)
Title: Database Search
Post by: ssamadhi97 on 2003-03-27 00:44:27
*sniff sniff* a fix'd version must be just around the corner.

Title: Database Search
Post by: foosion on 2003-03-27 00:44:59
Quote
What is it supposed to display?


"Database search - x found" substitute x with a number 

Quote
Also, an option to initially display the entire database would be useful (for me   )


Not hard to implement, the empty string is contained in all strings  but it will be quite slow - that's why I decided to display an empty list.

Btw., you can download the updated version now.

EDIT: If you're interested, you can get the source code (foo_dbsearch.src.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch.src.zip)).

@Curi0us_George: Have you started? What are your ideas for this kind of plugin? I thought about making it more like the albumlist plugin (display-wise), but a listbox was easier to do  .
Title: Database Search
Post by: Curi0us_George on 2003-03-27 01:10:38
I hadn't gotten far, honestly.  I was having trouble with the database accessing.  I finally found some little code snippets which made the database use clearer (it was mostly unclear because I was dead tired the only time I worked on it), but I haven't done anything with it since then.

Here's the reason I want this plugin:
Every time I want to play some files, I open the album list and send everything to the playlist.  (And then it auto-plays and I have to hit the stop button).  Then I open the playlist search and narrow it down.  I basically just want to have a plugin with the playlist search functionality, and the album list buttons.

(I've also considered doing a folder monitoring plugin, but it's not really a priority right now, so I haven't done any work on that at all.)
Title: Database Search
Post by: musicmusic on 2003-03-27 17:11:43
Quote
Btw., you can download the updated version now.

thanks

Quote
but it will be quite slow


no, still instant
Title: Database Search
Post by: anza on 2003-03-27 17:39:30
Quote
Quote
but it will be quite slow


no, still instant 

How come everyone keeps on saying this is faster than the playlist search thing? For me at least, this plugin is waaaay slower than the pl-search, which indeed is instant with me. But nice plugin though, I like this
Title: Database Search
Post by: musicmusic on 2003-03-27 18:21:34
Quote
Quote
Quote
but it will be quite slow


no, still instant 

How come everyone keeps on saying this is faster than the playlist search thing?

its not really.

in that quote i meant it still loads up instantly, but it is slow if you clear the string subsequently.

when i said it was fast before it wasn't a fair comparison because the playlist search was searching though more than artist/title/album.

after putting the search strings the same, the speed is the same. but for some reason the playlist search is instally slow for me, i.e. when you first enter a character.

edit: ok the new 0.2 version is instant 
Title: Database Search
Post by: foosion on 2003-03-27 18:27:24
Get the new version! Search window is now resizable and searching is a bit faster.

Any ideas for improvements (like "Remember window position" - I think that I will add this)?
Title: Database Search
Post by: musicmusic on 2003-03-27 19:30:50
i just realised the (annoying) search logic. first it would only search one field so i changed "%artist%|%album%|%title%" to "%artist% - %album% - %title%" (i prefer the dashes than just a space)

ok that makes sense. but say artist is "123" and title is "blah (remix)". search for "123 remix" you wont get any results

It seems to treat the search as one string, playlist search doesn't behave like this, it will separate the strings at spaces.

Maybe this could be a option?
Title: Database Search
Post by: foosion on 2003-03-27 21:54:47
Quote
It seems to treat the search as one string, playlist search doesn't behave like this, it will separate the strings at spaces.

Maybe this could be a option?

To be honest, I didn't realize that playlist search behaved like this. I guess this should be changed.

Unluckily, I won't have much time until after the weekend. So if someone else wants to add this, do it. All I ask for, is that you send me your changes, so I can update the official version  . Of course you will get credits.

EDIT: reminder: link to source code (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch.src.zip)
Title: Database Search
Post by: Curi0us_George on 2003-03-28 00:45:09
You just need to tokenize the input.  It's going to increase search time, though.  You might want to add a "search for exact string" checkbox (checked by default).

P.S.  I've gotten fairly far along with my code now.  I'm looking at changing the core logic, though.  I think I've got a couple of ideas that could drastically speed up searches, but I think the memory overhead might be high.
Title: Database Search
Post by: Curi0us_George on 2003-03-28 05:39:52
"Damn you Visual Studio!"

I've been searching for a bug for about an hour.  For whatever reason, VS wasn't properly linking the most recent versions of some files.  A rebuild fixed it.  Arg.  I couldn't implemented useful things in that hour, instead of inserting debug code everywhere.
Title: Database Search
Post by: anza on 2003-03-29 15:41:36
The "dedicated display/sorting formatting" strings can't be longer than the box you write them to, would it be possible to fix this?
Title: Database Search
Post by: Curi0us_George on 2003-04-03 17:12:36
I noticed that the "auto-search" toggle isn't doing anything.  (I was comparing the memory use and speed of your plugin compared to mine.)  This is with foo_dbsearch 0.4 and foobar2000 0.6b6.
Title: Database Search
Post by: foosion on 2003-04-03 18:42:49
Quote
I noticed that the "auto-search" toggle isn't doing anything.  (I was comparing the memory use and speed of your plugin compared to mine.)  This is with foo_dbsearch 0.4 and foobar2000 0.6b6.

Also happens with the ANSI version. I was sure it worked before. Expect a fix later.
Title: Database Search
Post by: foosion on 2003-04-06 19:17:02
[BLAH]
What has started as a simple and lightweight plugin, now evolved into what would more likely be called "geek toy". Yes, that's right, a new version of foo_dbsearch is out, and it rises high above its predecessors in a blinding flash of light! Download it, and unleash its fierce power upon your unsuspecting database!
[/BLAH]

Sorry, I just had to say this... 

A note about the change log: Even it is says that the search sematics have changed, the default display string is set to compensate for that.
I'm waiting for your comments now.
Title: Database Search
Post by: skwire on 2003-04-07 11:25:17
I'm using the latest Foobar (b7) and the latest DB Search plugin.  I love the new, quicker search but I'm having a problem with it.  It seems that if I try to close Foobar with the DB Search window visible, Foobar will hang.  Can anybody confirm/duplicate this?
Title: Database Search
Post by: Melomane on 2003-04-07 11:41:47
yes , same problem

win98 se
foobar 0.6 b7
DB Search plugin 0.6 ansi
Title: Database Search
Post by: ssamadhi97 on 2003-04-07 11:46:54
confirmed:

winxp
fb2k0.6b7 nt version + dbsearch unicode
fb2k0.6b7 nt version + dbsearch ansi
fb2k0.6b7 9x version + dbsearch ansi
Title: Database Search
Post by: foosion on 2003-04-07 12:52:29
Evil deadlock is fixed. Silly me, I thought I could use semaphores for mutual exclusion... concurrency is wonderful. I did not increase the version number, as it was really a tiny change to the source.
Title: Database Search
Post by: skwire on 2003-04-07 18:29:54
Thanks for the quick fix.  =]
Title: Database Search
Post by: Melomane on 2003-04-08 11:57:48
sorting string not work fine:

copy "display sting" in "sorting string" , "use diplay string for sorting" is not used.
enter query
logically we must obtain the same diplay result, but in reality it is not sorted alphabetical

however the result is correct

sorry for my poor english

win98 se
foobar 0.6 b7
DB Search plugin 0.6 ansi
Title: Database Search
Post by: foosion on 2003-04-08 13:27:20
Quote
sorting string not work fine:

copy "display sting" in "sorting string" , "use diplay string for sorting" is not used.
enter query
logically we must obtain the same diplay result, but in reality it is not sorted alphabetical

Damn typo caused results not to sorted at all, when "Use display string for sorting" was disabled.  While greatly improving the speed, this was not the intended behaviour. foo_dbsearch 0.6 update2 does not have this problem, and is now available for download.
Title: Database Search
Post by: Melomane on 2003-04-08 13:49:38
now your component work fine.

you have only to work at increase speed, correct with my duron 1.1 and my 1000 mpc files, but surement slow with 10000 files and 500 mhz processor...
thank you for your database search
Title: Database Search
Post by: foosion on 2003-04-08 20:05:28
Quote
you have only to work at increase speed, correct with my duron 1.1 and my 1000 mpc files, but surement slow with 10000 files and 500 mhz processor...
thank you for your database search

foo_dbsearch is very flexible - just think of all the things you can do with separate search/display/sorting strings and the new special fields (show entries that matched all/any words, sort by number of hits, ...). the searching code is also quite simple, which is good for maintenance.
this comes at a price though, and this price is speed...

EDIT: use a separate, but empty sorting string. when you have many entries in the result list, this greatly increases speed
ok, a more practical approach would be to make your formatting strings as simple and short as possible.
Title: Database Search
Post by: Melomane on 2003-04-09 01:22:02
i love your component!
Title: Database Search
Post by: Heaven17 on 2003-04-09 02:06:06
me too! if you want anything...my house...my car...my sister...just ask!

Seriously, many thanks, you and Curious George keep up the good work. 
Title: Database Search
Post by: Melomane on 2003-04-11 14:02:14
foobat 0.6 b11:

ERROR (CORE) : Failed to load DLL: foo_dbsearch.dll, reason: Wrong version number; this component appears to have been built with outdated version of foobar2000 SDK and needs to be recompiled with newer version in order to load; please contact author of this component to obtain an updated version of this component.
Title: Database Search
Post by: Curi0us_George on 2003-04-11 17:16:00
Peter broke the component compatability apparently, so the version number got bumped up.  All the third-party plugins will need to be recompiled against the newest SDK.

edit:
Both Meta Search and (I think) Database Search will need to be re-worked a bit.  Some functions were dropped from the new SDK.
Title: Database Search
Post by: apz on 2003-04-13 21:03:51

idea:  add delay before performing a search

with 200gigs of mp3s search on my slowl 1ghz machine it
takes approximatelly 1minute per character, usually I dont
search just for mp3s that have one specific letter/character
so maybe delay the search by a fraction of a second to let
me type rest of the search?

If not that, change so that it starts a search once character
limit is met (ie: 3 chars entered required for minimum
search)


/apz,  Life is like an analogy.
Title: Database Search
Post by: anza on 2003-04-13 21:17:58
Uncheck 'Update search results when query changes' and press enter after you've written the whole thing you're going to search.
Title: Database Search
Post by: foosion on 2003-04-14 13:16:04
Quote
Uncheck 'Update search results when query changes' and press enter after you've written the whole thing you're going to search.

That's exactly the right thing to do in this situation. An option to delay the start of the search will not be added.
Title: Database Search
Post by: Melomane on 2003-04-17 20:59:20
feature request :
use playlist font for database search, or choose font.

it is hard to make ?
Title: Database Search
Post by: Curi0us_George on 2003-04-17 21:27:38
I don't think there's any way to use the playlist font (or I would have made foo_shizzle do just that), but it's not a big deal to add a selectable font.  foosion probably just hasn't gotten around to that yet.
Title: Database Search
Post by: Melomane on 2003-04-17 21:52:52
if it's not a big deal to add a selectable font...

foosion ?
 
Title: Database Search
Post by: Curi0us_George on 2003-04-17 22:01:09
Actually, I just remembered something.  He's using an owner-drawn list-box, so it might be more trouble.  I'm not sure.
Title: Database Search
Post by: foosion on 2003-04-17 23:37:51
Quote
Actually, I just remembered something.  He's using an owner-drawn list-box, so it might be more trouble.  I'm not sure.

Well, I'm not using an ownerdrawn list box anymore. In fact, official versions of the plugin never had it. It didn't work on XP, do you remember?  I guess it's not that hard to make the font configurable (there is some helper in the SDK, IIRC). I just don't know when I'll get around to do it, so please be patient.
Title: Database Search
Post by: Curi0us_George on 2003-04-18 00:09:38
Well, just check out the albumlist for a quick, extremely simple example. 

I guess I misunderstood about the owner-draw listbox.  I thought a fixed version of it had made its way into the latest releases.
Title: Database Search
Post by: foosion on 2003-04-18 10:18:49
Quote
Well, just check out the albumlist for a quick, extremely simple example. 

I already knew about this, but thanks for the hint anyway. I will be at my parents' house until Easter Monday, so I won't be working on any fb2k plugin.

Quote
I guess I misunderstood about the owner-draw listbox.  I thought a fixed version of it had made its way into the latest releases.

Unfortunately not, but if it had worked, there would probably exist a special version with color codes as an easter egg by now.
Title: Database Search
Post by: foosion on 2003-06-26 20:02:31
foo_dbsearch 0.9 public test
Important things first: This version is still for Foobar2000 0.6x. There is no updated documentation, however most of the documentation for foo_dbsearch 0.8 still applies (query syntax, options, ...). The changes are mainly centered around the GUI. So toy with it, and try to break it
If anything is unclear, do not hesitate to ask.

download link: foo_dbsearch-0.9.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-0.9.zip)

from the change log:
Quote
[0.9]
2003-06-26
- upgraded to 0.667 sdk
- added custom list control
- made color codes work in display string
- experimental: enhanced color codes for background color:
  "<text>@<bg>|<sel_text>@<sel_bg>}"
- multiple search domains: integrated are the database and the playlist,
  more possible via plugins
- separated user-defined filter from display string
- removed context menu hack
- renamed %_total_tokens% and %_matched_tokens% special fields to
  %_total_keywords% and %_matched_keywords%
- added configuration for (default) colors
- basic help in configuration (to be enhanced)


@mods: Please move this thread to the 3rd party forum. Thanks.
Title: Database Search
Post by: anza on 2003-06-26 20:20:20
Not a big issue, but the colors won't change before a restart of foobar. Could this be fixed?  Otherwise this looks really good, keep up the good work!
Title: Database Search
Post by: ssamadhi97 on 2003-06-26 21:04:12
Can't reproduce, colour changes in the config are applied to the search result window immediately here (fb 0.667, winxp)

Can you please try to describe the problem and what you're doing more accurately?
Title: Database Search
Post by: anza on 2003-06-26 21:17:42
That's weird, I tried it again and now it works fine
Title: Database Search
Post by: foosion on 2003-06-26 21:17:55
Changing the font while the search window was open, did neither redraw the result list nor was the line height updated. Fixed.
Title: Database Search
Post by: Melomane on 2003-06-26 21:43:30
without contest menu hack , "open directory"  isn't  useful: can you remove from context menu?
Title: Database Search
Post by: foosion on 2003-06-26 22:00:29
Quote
without contest menu hack , "open directory"  isn't  useful: can you remove from context menu?

I would have to look for this particular entry, and not include it. I don't know, if it's worth the hassle. I'm currently porting my plugins to fb2k 0.7, the problem probably solved there (I'll have to look a bit more into the new stuff to know for sure).
Title: Database Search
Post by: Melomane on 2003-06-26 22:08:34
ok! no problems

report bug:

open database search , make query , ok , all work.
closed database search

REOPEN database search (edited: forgotten line)

foobar crash:

FOOBAR2000 a causé une défaillance de page dans
le module FOO_DBSEARCH.DLL à 0187:00fe3047.
Registres :
EAX=00000094 CS=0187 EIP=00fe3047 EFLGS=00010246
EBX=00001ef2 SS=018f ESP=0067f270 EBP=0000000c
ECX=00000000 DS=018f ESI=00ff1fa4 FS=4ecf
EDX=00000000 ES=018f EDI=0067f314 GS=0000
Octets à CS : EIP :
8b 01 52 ff 50 14 8d 4c 24 10 8b e8 e8 28 8f 00
État de la pile :
00000000 00ff1fa4 0000000c 00001ef2 ffeb0000 00fe2e4b 00000fb4 00ff1fa4 00fe3153 00000000 00fe2cc1 00000000 00ff1fa4 000082a4 bff7152e bff71547
Title: Database Search
Post by: foosion on 2003-06-26 23:00:14
Can you reproduce this? How?
Title: Database Search
Post by: Melomane on 2003-06-26 23:22:10
Sorry, i have I forgot a line, i have edit  my post  (reopen database search)
Title: Database Search
Post by: anza on 2003-06-26 23:25:08
Quote
ok! no problems

report bug:

open database search , make query , ok , all work.
closed database search

REOPEN database search (edited: forgotten line)

foobar crash:

FOOBAR2000 a causé une défaillance de page dans
le module FOO_DBSEARCH.DLL à 0187:00fe3047.
Registres :
EAX=00000094 CS=0187 EIP=00fe3047 EFLGS=00010246
EBX=00001ef2 SS=018f ESP=0067f270 EBP=0000000c
ECX=00000000 DS=018f ESI=00ff1fa4 FS=4ecf
EDX=00000000 ES=018f EDI=0067f314 GS=0000
Octets à CS : EIP :
8b 01 52 ff 50 14 8d 4c 24 10 8b e8 e8 28 8f 00
État de la pile :
00000000 00ff1fa4 0000000c 00001ef2 ffeb0000 00fe2e4b 00000fb4 00ff1fa4 00fe3153 00000000 00fe2cc1 00000000 00ff1fa4 000082a4 bff7152e bff71547

Reproduced
Title: Database Search
Post by: foosion on 2003-06-26 23:34:01
Quote
Sorry, i have I forgot a line, i have edit  my post  (reopen database search)

Thanks, now I see what was going wrong. This should be fixed now.
Title: Database Search
Post by: BlindSeer on 2003-06-27 16:34:40
Thanks for making Ctrl-A work. I still think an option to play all search results when enter is pressed in the search field would be pretty cool, but I'm happy.
Title: Database Search
Post by: foosion on 2003-06-29 15:13:43
foo_dbsearch 0.10 public test
Foobar2000 version: 0.7x

Notes: Full documentation will come with the final 0.10 release (later today?). Everyone who has used previous versions of this plugin should have little problems (I hope). For now, the help in the configuration has some basic info.

download link: foo_dbsearch-0.10.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-0.10.zip)

from the change log:
Quote
[0.10]
2003-06-29
- upgraded to 0.7b9 sdk
- removed epxerimental feature: background color codes
- display string now works like in the playlist (color codes and columns)
- some minor ui changes


Edit by Case: fixed the link
Title: Database Search
Post by: foosion on 2003-06-29 22:53:22
There's now preliminary documentation available on foo_dbsearch 0.10: readme.html (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/readme.html)

In case you already have 0.10, you should redownload it now (small fix+enhancement).
Title: Database Search
Post by: Melomane on 2003-06-29 23:07:27
great work
Title: Database Search
Post by: anza on 2003-06-30 07:12:55
Ok I think there's again something fishy going on
Is it just me, or doesn't the font for selected text change? No matter how many times I set it to white (actually, the in the color selection, it is the color I've set it) but still it shows as black when I open up the window. All other colors work fine.
But otherwise, really great job here!
Title: Database Search
Post by: foosion on 2003-06-30 11:43:15
Quote
[0.10a]
2003-06-30
- fixed text color configuration: it now also works, if the search window is closed
- added toggable "quicklist" (lame excuse for not yet having presets)

The quicklist entries can be configured in - tada - the configuration. Each non-empty line will add one entry to the quicklist. If the quicklist is off, the plugin will always use the custom search string from the configuration. If the quicklist is on, the selected quicklist entry is used as search string. The state of the quicklist and its entries are remembered. The selection is remembered, but it is reset to "Custom search string" when you edit the quicklist entries.

PS: Still the same download link as for 0.10.
Title: Database Search
Post by: anza on 2003-06-30 13:00:56
It still won't work. "Selected text color" is still inverted color of "text color" (ie. black if "text color" is white).
Title: Database Search
Post by: Melomane on 2003-06-30 13:20:40
confirmed, but  choose color same in playlist work fine (0000FF|0000FF)
Simply remove "choose color for selected text" !?

quick list is wonderfull!!!!
Title: Database Search
Post by: foosion on 2003-06-30 17:04:50
I uploaded 0.10b. "Selected text color" now works like in 0.9 again.
Title: Database Search
Post by: foosion on 2003-07-06 19:08:20
Uploaded foo_dbsearch 0.10c for foobar2000 version 0.7b12.
No new features. The download link is still the same as for all previous 0.10 versions.
Title: Database Search
Post by: musicmusic on 2003-07-06 20:10:37
Thanks foosion, the new version is great

A few things

- when you choose something in the search history drop down list, the results is not updated, could this be changed?

- searching gets really slow with complicated display strings, not your fault I suppose? (Its only noticable on empty search with display all entires when query empty on, or searches with lots of results (1000+) difference is 0.09 secs vs ~1-2 secs)

- how come the jump to letter in the result list is gone in 0.9+ ? can it be added again ?

- will playlist search behaviour be improved ?

But the new version is really great (and will be better with the profiles )
Title: Database Search
Post by: foosion on 2003-07-06 23:06:15
Quote
- when you choose something in the search history drop down list, the results is not updated, could this be changed?

ssamadhi97 asked me to remove this, I think I should make it configurable.

Quote
- searching gets really slow with complicated display strings, not your fault I suppose? (Its only noticable on empty search with display all entires when query empty on, or searches with lots of results (1000+) difference is 0.09 secs vs ~1-2 secs)

Try using a separate search string. If the difference in complexity is big enough, you may gain some speed.

Quote
- how come the jump to letter in the result list is gone in 0.9+ ? can it be added again ?

The jump to letter feature is part of the standard behaviour of Windows list boxes. The new version uses a custom control. The feature is just not (yet) implement there.

Quote
- will playlist search behaviour be improved ?

What do you mean? Please elaborate.
Title: Database Search
Post by: musicmusic on 2003-07-07 17:20:31
Quote
ssamadhi97 asked me to remove this, I think I should make it configurable.
well I actually use it to access my frequent searches so that would be helpful

Quote
Try using a separate search string. If the difference in complexity is big enough, you may gain some speed.
I dont know, I thought Id use a cut down version of my foobar display string as the database display string but its too slow so Ill just forget about that..

Quote
The jump to letter feature is part of the standard behaviour of Windows list boxes. The new version uses a custom control. The feature is just not (yet) implement there.
It thought so, its useful so it would be appreciated..

Quote
What do you mean? Please elaborate.
Its useless adding it back into the playlist on double click dont you think? At least the option to change behaviour (two that come to mind are to play it, or locate it in the playlist) would be nice.

Would it be possible to make a button in config to copy foobar's playlist display colours/font etc. (if they are accessible) ? Would save a lot of time for though of us who use the same colours/settings. (But at the same time Im not particulary bothered)

Thanks.
Title: Database Search
Post by: foosion on 2003-07-07 23:03:07
Quote
Quote
ssamadhi97 asked me to remove this, I think I should make it configurable.
well I actually use it to access my frequent searches so that would be helpful

To put things right, ssamadhi97 asked me to change the behaviour in a way that the plugin won't update the results when you choose the currently selected from the dropdown list, thereby destroying the selection. Unfortunately, I noticed that even with the old update code, updating when a new item is selected does not work correctly on my PC. If it worked for you in previous versions, that was merely luck

Quote
Quote
What do you mean? Please elaborate.
Its useless adding it back into the playlist on double click dont you think? At least the option to change behaviour (two that come to mind are to play it, or locate it in the playlist) would be nice.

While the plugin already supports searching in multiple domains (databas, playlist, and history), it still is centered around the database. I'm still working on a better integration of other search domains, like configurable, domain specific default actions. The current interfaces do not allow to create a search domain dynamically (for example alternate playlists, bookmark collections, ...). When a (for me) acceptable level of integration has been reached, the name of the plugin will be changed as well.

Quote
Would it be possible to make a button in config to copy foobar's playlist display colours/font etc. (if they are accessible) ? Would save a lot of time for though of us who use the same colours/settings. (But at the same time Im not particulary bothered)

Formatting strings are accessible, the font and the colors are not AFAIK.
Title: Database Search
Post by: musicmusic on 2003-07-08 17:12:03
Quote
Quote
Quote
ssamadhi97 asked me to remove this, I think I should make it configurable.
well I actually use it to access my frequent searches so that would be helpful

To put things right, ssamadhi97 asked me to change the behaviour in a way that the plugin won't update the results when you choose the currently selected from the dropdown list, thereby destroying the selection. Unfortunately, I noticed that even with the old update code, updating when a new item is selected does not work correctly on my PC. If it worked for you in previous versions, that was merely luck 

No, it didnt, not even in foo_shizzle that's why I was asking about it..
Quote
While the plugin already supports searching in multiple domains (databas, playlist, and history), it still is centered around the database. I'm still working on a better integration of other search domains, like configurable, domain specific default actions. The current interfaces do not allow to create a search domain dynamically (for example alternate playlists, bookmark collections, ...). When a (for me) acceptable level of integration has been reached, the name of the plugin will be changed as well.

Sounds good

Quote
Formatting strings are accessible, the font and the colors are not AFAIK.


Oh ok then..

Thanks.
Title: Database Search
Post by: foosion on 2003-07-09 09:04:22
foo_dbsearch 0.10d
important! fixes (rather huge) memory leak!
Quote
[0.10d]
- upgraded to SDK version 0.7b13
- added "jump to letter" feature to result list
- fixed memory leak

to make your life easier: foo_dbsearch-0.10.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-0.10.zip)
Title: Database Search
Post by: SAAM on 2003-07-21 13:10:41
Hello there,

I just have one question on this plugin :
I can't find out how to perform a search that show entries that exactly match.
I want to search entries based on an album reference number.

Can anybody help?

Thanks
Title: Database Search
Post by: Mestax on 2003-07-21 18:26:03
Shit, i posted to the wrong thread....
Title: Database Search
Post by: foosion on 2003-07-21 22:48:31
Quote
Hello there,

I just have one question on this plugin :
I can't find out how to perform a search that show entries that exactly match.
I want to search entries based on an album reference number.

Can anybody help?

Thanks

I hope you don't want to do case-sensitive matching, because this is not possible ATM. But as far as I've understood your question, you want to search for all entries that have tag field X equal to some value you want to search for. The plugin shows all entries that contain a given keyword (or multiple keywords, but I assume that is not important for your task).
The trick is to choose the search string and the keyword in a way, so that the keyword will only match whole fields. One way to this is to use some delimiters in your search string and to use them in (or rahter around) the keyword as well. Example search string:
Code: [Select]
|%artist%|

With this you can search for |foo|, and the plugin will only find entries where the artist field is equal to foo. Of course you don't need to use the same delimiter character on both sides, you might also use ^ and $, or < and >, or ....
Title: Database Search
Post by: SAAM on 2003-07-22 09:32:03
I am not interested in case sensitive search because I search a number. Your 'trick' works perfectly for me, thanks a lot!
Title: Database Search
Post by: sergeymen on 2003-08-13 20:54:23
Does anyone know if there is any way to search a specific field using this plug-in -- other than changing the search string?

If it's not possible to do this currently, could foosion please implement something to that end -- it may be easiest to just add another pulldown list to the database search window (not the configuration window) that would store different search strings.
Title: Database Search
Post by: foosion on 2003-08-13 21:04:02
If you're using 0.7x: use the quicklist (described in one of my previous posts).

if you're using 0.6x: use 0.7x.
Title: Database Search
Post by: sergeymen on 2003-08-17 01:30:07
thanks, foosion!
Title: Database Search
Post by: foosion on 2003-08-31 22:12:22
foo_dbsearch 0.11.1
- fixed metadb_handle leaks

download (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-0.11.zip)
Title: Database Search
Post by: DaCypher on 2003-09-20 18:48:51
Just had to say thanks for this really useful plugin.
Title: Database Search
Post by: spazz on 2003-09-21 00:28:35
hello..!

i got a problem. when i'm changing the default "search in" from database to playlist, and restart fb2k, the "search in" is set to database :/ it isnt saved?

and.. is it possible to add as the default action "play now" ?

thx for reply's

and sorry for the bad english *g, bye..
Title: Database Search
Post by: foosion on 2003-09-21 08:47:28
Quote
hello..!

i got a problem. when i'm changing the default "search in" from database to playlist, and restart fb2k, the "search in" is set to database :/ it isnt saved?

and.. is it possible to add as the default action "play now" ?

thx for reply's

and sorry for the bad english *g, bye..

What's wrong about the "Play" command? This is present in 0.11.1, it was possibly already introduced in 0.11.0 - I can't remember that.
Title: Database Search
Post by: Nitty on 2003-09-21 08:59:16
Quote
Quote
hello..!

i got a problem. when i'm changing the default "search in" from database to playlist, and restart fb2k, the "search in" is set to database :/ it isnt saved?

and.. is it possible to add as the default action "play now" ?

thx for reply's

and sorry for the bad english *g, bye..

What's wrong about the "Play" command? This is present in 0.11.1, it was possibly already introduced in 0.11.0 - I can't remember that. 

Play isn't on the default action list.
Title: Database Search
Post by: foosion on 2003-09-21 10:04:57
Quote
Play isn't on the default action list.

Oops, my fault. I apparently added this in an internal build, that I did not upload. It is now on the server as version 0.11.2.

download (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-0.11.zip)
Title: Database Search
Post by: anza on 2003-09-21 10:48:22
The new play function is great, I directly replaced my hotkey for search to point to database search

One thing though, the "search in" setting isn't saved after restart of foobar.
Title: Database Search
Post by: Nitty on 2003-09-21 18:47:02
Quote
Quote
Play isn't on the default action list.

Oops, my fault. I apparently added this in an internal build, that I did not upload. It is now on the server as version 0.11.2.

download (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-0.11.zip)

Thanks
Title: Database Search
Post by: amppa on 2003-09-22 13:27:49
Great! I had tested the database searches but didn't find them too useful without the "play" action. With large playlist and complex formatting string the default search really was not usable.. Thanks again, this is going to be used a lot.
Title: Database Search
Post by: foosion on 2003-09-30 23:02:06
foo_dbsearch 0.11.3

Quote
- removed "Remove from database" from context menu
- selected search domain is now remembered
- fixed small multithreading bug that could crash the program
- added search domain "All playlists"

I'm currently doing some internal rearrangements in this plugin, some of which of have made it into this release, like new interfaces for the search domains. Because of this, you'll have to redownload foo_copynpaste, if you want to search in the clipboard. I've had some problems recompiling foo_history, so you can't search the history for now.

<edit>
I almost forgot this: you can use %_playlist_name% to get - tada! - the name of the playlist an item is from. This works when searching in "Playlist" and "All playlists".
</edit>
Title: Database Search
Post by: kuyawsadabaw on 2003-10-01 06:16:32
is there a highlight function so that whatever I select on the searchbox is selected on the playlist?
Title: Database Search
Post by: spazz on 2003-10-01 06:49:54
Quote
is there a highlight function so that whatever I select on the searchbox is selected on the playlist?

oh yeah that would be nice for "follow cursor".. :>
Title: Database Search
Post by: foosion on 2003-10-01 12:54:48
Quote
is there a highlight function so that whatever I select on the searchbox is selected on the playlist?

No, currently not. I'll consider this for the next release.
Title: Database Search
Post by: DaCypher on 2003-10-16 00:06:52
Quote
The new play function is great, I directly replaced my hotkey for search to point to database search

One thing though, the "search in" setting isn't saved after restart of foobar.

I too would love to have it save the search in field. 
Title: Database Search
Post by: ilikedirtthe2nd on 2003-10-17 18:46:21
hi,

i really like your plugin  just one thing, that is bugging me (i browsed the topic roughly, don't know if something like that has been asked before)

right now i do this: search for e.g. the name of an artist, hit tab, hit ctrl + a, hit enter. could you make a hotkey available, that sends the results of the current search to the playlist, even if i didn't select the results?

regards; ilikedirt
Title: Database Search
Post by: foosion on 2003-10-17 19:10:05
Quote
hi,

i really like your plugin  just one thing, that is bugging me (i browsed the topic roughly, don't know if something like that has been asked before)

Yes, It has been asked for.

Quote
right now i do this: search for e.g. the name of an artist, hit tab, hit ctrl + a, hit enter. could you make a hotkey available, that sends the results of the current search to the playlist, even if i didn't select the results?

regards; ilikedirt

OK, I give in.  But the hotkey won't be configurable, so I'm asking you (and the others), if the following would do:
1) Shift-Enter for "Add to playlist"
2) Control-Enter for "Send to playlist..."
Title: Database Search
Post by: DaCypher on 2003-10-17 20:45:56
foosion,

Those hotkeys sound cool to me...

How do you feel about saving the "search in" field? 
Title: Database Search
Post by: foosion on 2003-10-17 21:42:08
Quote
How do you feel about saving the "search in" field? 

If you're talking about the "Search in" submenu in the contextmenu, that should already work (it does for me). On the other hand, if you're refering to the dropdown list with formatting strings, this setting will also be saved in the new version. (This was rather a bug, as the setting is already saved, but it is reset everytime the plugin starts  ).
Title: Database Search
Post by: DaCypher on 2003-10-17 23:37:50
Yea, I was referring to the dropdown list with formatting strings.  Can't wait for the new version. 

Thanks for the very cool plugin by the way. 
Title: Database Search
Post by: ilikedirtthe2nd on 2003-10-18 09:43:22
Quote
OK, I give in.  But the hotkey won't be configurable, so I'm asking you (and the others), if the following would do:
1) Shift-Enter for "Add to playlist"
2) Control-Enter for "Send to playlist..."

yes, sounds fine to me
Title: Database Search
Post by: foosion on 2003-10-18 15:03:47
foo_dbsearch 0.11.4

- added hotkeys Shift-Enter (adds all items to the playlist) and Control-Enter (executes "Send to playlist..." with all items). use them in the input box.
- some general commands where moved to foo_utils:
  "Add to playlist", "Insert into playlist", "Send to playlist", "Play"

see this site for download links: http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/ (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/)
Title: Database Search
Post by: DaCypher on 2003-10-18 16:33:06
Awesome, love the new version...

Thanks again. 
Title: Database Search
Post by: ilikedirtthe2nd on 2003-10-18 17:41:38
Quote
foo_dbsearch 0.11.4

- added hotkeys Shift-Enter (adds all items to the playlist) and Control-Enter (executes "Send to playlist..." with all items). use them in the input box.
- some general commands where moved to foo_utils:
  "Add to playlist", "Insert into playlist", "Send to playlist", "Play"

see this site for download links: http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/ (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/)

great! thanks
Title: Database Search
Post by: hermit22 on 2003-10-18 20:18:09
This plugin's great.  But a feature request: could you add an ability to search for a blank field?  My mp3s are still kind of messy, so a lot of them are missing, say, an album name, or a genre.  It would be really helpful if I could find all those at once.

Other than that, love it.  Thanks!
Title: Database Search
Post by: DaCypher on 2003-10-18 21:38:17
Quote
This plugin's great.  But a feature request: could you add an ability to search for a blank field?  My mp3s are still kind of messy, so a lot of them are missing, say, an album name, or a genre.  It would be really helpful if I could find all those at once.

Other than that, love it.   Thanks!

Actually, what I have been hoping to find somewhere (although probably not from this plugin since it seems outside the scope of what this plugin is about), is the ability to have almost direct database interaction.  So you could, for example, define search strings for multiple fields at the same time.  Or maybe even define your own custom queries.
Title: Database Search
Post by: kode54 on 2003-10-19 00:26:10
Have you tried Extended Search? (database, exact match)
Title: Database Search
Post by: foosion on 2003-10-19 11:33:53
Quote
This plugin's great.  But a feature request: could you add an ability to search for a blank field?  My mp3s are still kind of messy, so a lot of them are missing, say, an album name, or a genre.  It would be really helpful if I could find all those at once.

Other than that, love it.  Thanks!

Well, you can already do that, though you'll have to set up a filter expression in preferences first. As it is now, Extended Search can handle new searching scenarios better, since you don't have to open the preferences.
The instructions for searching tracks with missing album tags with Extended Search are as follows:
1) Set Format to "$if(%album%,,1)" (without the quotes).
2) Choose "boolean" from the dropdown box next to the Pattern field.
3) Set Search What to "Database" .
4) Hit Run.
Title: Database Search
Post by: foosion on 2003-10-19 21:30:34
Quote
This plugin's great.  But a feature request: could you add an ability to search for a blank field?  My mp3s are still kind of messy, so a lot of them are missing, say, an album name, or a genre.  It would be really helpful if I could find all those at once.

Other than that, love it.  Thanks!

Search in database, set format to ... whatever, doesn't matter for this one. Set the filter mode to "match all" or "match" one (the dropdown box to the right of the pattern field). Now type "-%artist%" in the pattern field. Result shown: All items in database without an artist tag. Of course, to do this you first have to get:


foo_dbsearch 1.0.0

- removed user-defined filter
- removed search arguments (If you know what that is, don't worry, you won't miss it much.)
- the contents of the pattern field is only remembered when you press enter in this field.
- added various filter modes
- changed the UI a bit

download link: plugin (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-1.0.zip)

Unfortunately, there's no updated documention yet, so I'll write something about the filter modes right here:

pass
The simplest mode. All items pass the test.

boolean
The same as in Extended search, only it uses the pattern field, if that is non-empty. If it is empty, it falls back to the format field.

match exact and match prefix
The pattern is matched verbatim against the result of running each item through the format given by the Format field. For "match exact" the two have to be exactly the same (ignoring character case), for "match prefix" the pattern has to be a prefix of the formatted string. In both cases an empty pattern does not match anything.

match all and match one
Probably the most interesting modes. The pattern is split into conditions. A condition is either:
1) a keyword: any string that does not start with one of +, -, ", or % and does not contain spaces.
Example:
Code: [Select]
bla

2) a quoted phrase: a string that starts with " (double quotes); ends at the next " or at the end of the pattern.
Example:
Code: [Select]
"bla bla"

3) a field condition: a string that starts with % (percent sign); ends at the next % or at the end of the pattern.
Example:
Code: [Select]
%field name%


Keywords and quoted phrases match, if their text is contained in the formatted string of an item.
A field condition matches, if a field with the given name exists. A field name starting with __ (two underscores) refers to an info field, any other field name refers to meta field. Special fields can not be matched with this.

A condition can be prefixed with + (plus sign) or - (minus sign) to turn it into a strong condition. Strong conditions must always be met, also in "match one" mode. +A is true, if A is true. -A is true, if A is false.

In "match all" mode, all conditions must be true.
In "match one" mode, all strong conditions must be true, and at least one of the weak conditions, if there is one.

Examples ("match one" mode):
Code: [Select]
a

Code: [Select]
+a

Matches all tracks where a is true.
Code: [Select]
+a b c

Matches all tracks where a is true and at least one of b and c.
Title: Database Search
Post by: ilikedirtthe2nd on 2003-10-19 21:48:38
themes you removed those hotkeys again, why? 

regards; ilikedirt
Title: Database Search
Post by: foosion on 2003-10-19 21:52:22
Quote
themes you removed those hotkeys again, why?  

regards; ilikedirt

This is a bug. To be fixed in v1.0.1.
Title: Database Search
Post by: foosion on 2003-10-19 22:43:27
foo_dbsearch 1.0.1

- made hotkeys work again
- "match exact" and "match prefix" now work as intended
- changed default filter mode to "match one"

download links:
plugin (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-1.0.zip)
mini SDK (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch_mini_sdk-1.0.zip) (for creating your own search domains and filter modes)
Title: Database Search
Post by: foosion on 2003-10-20 10:32:52
foo_dbsearch 1.0.2

- fixed behaviour of "match all" and "match one" when there are only strong conditions
- added prefix matching mode for field conditions ("match all" and "match one")

Code: [Select]
%prefix*
%prefix*%

Matches all files that have a meta field whose name starts with prefix. prefix may be the empty string, so "%*" only matches, if there are any meta fields at all.

Code: [Select]
%__prefix*
%__prefix*%

Matches all files that have a info field whose name starts with prefix. prefix may be the empty string, so "%__*" only matches, if there are any info fields at all.

Example:
Code: [Select]
-%__r*

Matches all files that have no info field whose name starts with r. With my set of files, this yields the same results as "-%__replaygain*".
Title: Database Search
Post by: DaCypher on 2003-10-20 15:05:31
Very cool new version.  Couple issues though:

1)  I still can't seem to get shift+enter and ctrl+enter to work (currently using v1.0.2).

2)  The toggle quicklist option in the right-click menu doesn't seem to do anything anymore (I guess its not longer needed).
Title: Database Search
Post by: foosion on 2003-10-20 17:04:58
Quote
1)  I still can't seem to get shift+enter and ctrl+enter to work (currently using v1.0.2).

Catching presses of the enter key (and where they come from) is trickier than it seems. It worked for me and for ssamadhi97, who tested this feature on WinXP.

Quote
2)  The toggle quicklist option in the right-click menu doesn't seem to do anything anymore (I guess its not longer needed).

I forgot to remove that.
Title: Database Search
Post by: foosion on 2003-10-20 20:40:55
Quote
1)  I still can't seem to get shift+enter and ctrl+enter to work (currently using v1.0.2).

Did you try Shift+Enter and Control+Enter from the resultlist? Well, those hotkeys are only supposed to work from either the pattern field or one of the two dropdown listboxes. Was that your problem?
Title: Database Search
Post by: DaCypher on 2003-10-20 21:41:51
Quote
Quote
1)  I still can't seem to get shift+enter and ctrl+enter to work (currently using v1.0.2).

Did you try Shift+Enter and Control+Enter from the resultlist? Well, those hotkeys are only supposed to work from either the pattern field or one of the two dropdown listboxes. Was that your problem?

Ahh, yea, I'm a dumbass.  I must have been trying it while some other object was focused (still within the search window though, I'm not that stupid). 

Thanks for the insight...
Title: Database Search
Post by: foosion on 2003-10-20 21:51:01
Quote
Ahh, yea, I'm a dumbass.  I must have been trying it while some other object was focused (still within the search window though, I'm not that stupid). 

Thanks for the insight...

I didn't think of that immediately, and the thought that the current implementation would not work on every system was ... frustrating.
I'd better make those hotkeys work in the entire dialog for all those dumbasses out there (including me). At least until this plugin - some day - has fully configurable hotkeys (that one's on my personal wishlist).

edit: Aaah, I can't spill!
Title: Database Search
Post by: Inc3pt on 2003-10-27 05:29:13
I have 1.0.2 and I noticed that the 'play' as default action was removed  Thats the only reason I would search, because I leave all of my music in the playlist...and then search and play. As requested somewhere earlier in the thread, just to be able to have it move the cursor to the file would be nice...and what about being able to hit enter, instead of having to double click? Those three implementations would make my life complete
Title: Database Search
Post by: foosion on 2003-10-27 09:27:12
Quote
I have 1.0.2 and I noticed that the 'play' as default action was removed  Thats the only reason I would search, because I leave all of my music in the playlist...and then search and play.

As said above, the "Play" command (and some other general commands as well) have been moved into a separate plugin. Install that, too, and you can use "Play" again.
Quote
As requested somewhere earlier in the thread, just to be able to have it move the cursor to the file would be nice...and what about being able to hit enter, instead of having to double click? Those three implementations would make my life complete

Hitting enter does not work for you? Please make sure that a default action is configured in preferences.
Title: Database Search
Post by: DaCypher on 2003-10-27 12:58:15
Is there a %var% that will include the full path or at least the directory name that the file is in?  Currently I use %_filename% to search for songs that either don't have any tags or they are incorrect.  It would be nice to be able to search in the directory name as well since it often contains the name of the album that the songs are in.  Would it be possible to add a formatlist entry that would search in either the filename or the full path?
Title: Database Search
Post by: DaCypher on 2003-10-27 13:02:54
Ok, nevermind.  %_path% works great.  I guess I should search around before I start asking questions....
Title: Database Search
Post by: Inc3pt on 2003-10-27 15:03:29
Quote
As said above, the "Play" command (and some other general commands as well) have been moved into a separate plugin. Install that, too, and you can use "Play" again.

Hitting enter does not work for you? Please make sure that a default action is configured in preferences.

Thank you so much, Im sorry I didnt read the thread carefully enough, and I love it now.

However, in reguards to pressing enter, it seems that when I type something into the search box, the focus is not on the window with the results. The most matched item is at the top of the list, and boxed in red, however, to get enter to work, I guess I have to focus the box, by clicking it once, where the background turns blue, and then I can hit enter...

(By the way, thank you for the quick replies )
Title: Database Search
Post by: foosion on 2003-10-27 15:16:23
Quote
However, in reguards to pressing enter, it seems that when I type something into the search box, the focus is not on the window with the results. The most matched item is at the top of the list, and boxed in red, however, to get enter to work, I guess I have to focus the box, by clicking it once, where the background turns blue, and then I can hit enter...

(By the way, thank you for the quick replies )

Pressing enter in the result list has a different meaning than pressing it in one of the other fields.

Result list:
- Enter: Run configured default action on selected items.

Other fields:
- Enter: Force results to be refreshed (useful if you disabled auto-refresh in prefs). Pattern is remembered.
- Shift+Enter: Add all results to playlist. [also works in result list in upcoming version]
- Control+Enter: Run "Send to playlist..." on all results. [also works in result list in upcoming version]

Perhaps I should take some time to update the readme.
Title: Database Search
Post by: Inc3pt on 2003-10-27 19:30:05
Quote
Pressing enter in the result list has a different meaning than pressing it in one of the other fields.

Result list:
- Enter: Run configured default action on selected items.

Other fields:
- Enter: Force results to be refreshed (useful if you disabled auto-refresh in prefs). Pattern is remembered.
- Shift+Enter: Add all results to playlist. [also works in result list in upcoming version]
- Control+Enter: Run "Send to playlist..." on all results. [also works in result list in upcoming version]

Im sorry Im being a pain...

I figured as much, about 'enter' having different functions depending on what was in focus, but the whole reason I use search is because I can bring foobar into focus, press the hotkey for search, type something in, and hit enter, and it doesnt the function...however, with the way things are setup, I have to click the resultlist box and hit enter, or double click, and I know it sounds like nagging over the tiniest amount of extra work, but my hands can move from keys to the enter key a million times faster than they can to the mouse, and then to click. I dont know C/C++ (Which is what Im guessing these plugins use, I did look at the mini-sdk)...otherwise I would make an attempt so that from the search field, I could have it  do the resultlist action by pressing enter...but I cant. Is there anyway you could make this configurable or something in the next version? Like have a dropdown box for each field, and be able to choose like "From resultlists, enter does this" and "From search field, enter does this"...I know that might be alot of work, but Id really appreciate it...Is there any other way I could set it up? Or any chance you want to release me a special version  just kidding...Anyway, any replies to this would be nice, even if its "no, no, and...no...  "...Thanks
Title: Database Search
Post by: foosion on 2003-10-27 20:07:25
Quote
Im sorry Im being a pain...

I figured as much, about 'enter' having different functions depending on what was in focus, but the whole reason I use search is because I can bring foobar into focus, press the hotkey for search, type something in, and hit enter, and it doesnt the function...however, with the way things are setup, I have to click the resultlist box and hit enter, or double click, and I know it sounds like nagging over the tiniest amount of extra work, but my hands can move from keys to the enter key a million times faster than they can to the mouse, and then to click. I dont know C/C++ (Which is what Im guessing these plugins use, I did look at the mini-sdk)...otherwise I would make an attempt so that from the search field, I could have it  do the resultlist action by pressing enter...but I cant. Is there anyway you could make this configurable or something in the next version? Like have a dropdown box for each field, and be able to choose like "From resultlists, enter does this" and "From search field, enter does this"...I know that might be alot of work, but Id really appreciate it...Is there any other way I could set it up? Or any chance you want to release me a special version  just kidding...Anyway, any replies to this would be nice, even if its "no, no, and...no...  "...Thanks

Code: [Select]
if (is_feature_request) while (true) printf("no.\n");

There's currently no way to set it up the way you want (neither through prefs nor the mini sdk), but as I mentioned some posts ago, I'd like to include fully configurable hotkeys some time. So unless you want to write the hotkey configuration for me, you'll have to wait patiently.

If you don't want to use the mouse, you can try the tab key (for switching to the resultlist); selecting items in the resultlist works very much like selecting them in the playlist. I know that that's more than one key press, but hey...
Title: Database Search
Post by: BO(V)BZ on 2003-10-28 00:05:49
Would it be possible to add a 'Winamp' style search checkbox, where when you hit enter, it automatically jumps to the song at the top of the list and closes the search box, without having to click on the song and then close the box?  That's the one small niggle I have with this plugin, otherwise it's great!  It would just be nice to subtract a fwe keystrokes from to search for something.  Thanks  ,

BO(V)BZ
Title: Database Search
Post by: Inc3pt on 2003-10-28 01:54:59
Quote
Code: [Select]
if (is_feature_request) while (true) printf("no.\n");

There's currently no way to set it up the way you want (neither through prefs nor the mini sdk), but as I mentioned some posts ago, I'd like to include fully configurable hotkeys some time. So unless you want to write the hotkey configuration for me, you'll have to wait patiently.

If you don't want to use the mouse, you can try the tab key (for switching to the resultlist); selecting items in the resultlist works very much like selecting them in the playlist. I know that that's more than one key press, but hey...

Like I said, I dont know C or I would gladly lend a hand as this plugin is amazing  I just tried tab, and it moves through every area 'except' the resultlist  I appreciate the thought though...I would use the original search, however, it can only use the filename tag, and not the directoryname tag...And thats why I wanted the configurable search, is because I dont mess with tags, so I just make sure each of my songs are named correctly, and in a seperate folder for each artist, and it looks really nice. However, as I said, the original search cant use the dirname as far as I know. Thats why I use db_search  ...Anyway, I guess Ill just have to use the mouse... Thanks anyway though
Title: Database Search
Post by: foosion on 2003-10-28 06:18:02
Are you sure, that you can't tab to the resultlist? Cause it works here...
That would be one more thing to fix in the next release.
Title: Database Search
Post by: Inc3pt on 2003-10-28 07:02:08
Quote
Are you sure, that you can't tab to the resultlist? Cause it works here...
That would be one more thing to fix in the next release.

I just tested once more and Im sure that I cant tab to the resultslist...In the sequence of tabs, it has one where no area is highlighted (Im guessing this is where the bug lies, in that its supposed to be the resultslist, but it doesnt highlight it, and Ive pressed enter and it doesnt do the configured action). I hope that helps with any bug information 

So as you stated before, you need a hotkey script to have it configure what does what, from what field?

I mean, couldnt you just have a small options window (Clickable, because theres probably not enough room) that has something like this:
SearchField:
-Enter: (Dropdown)
---Default configured action
---Send to playlist
---(Other options here)

And repeat, for each button (i.e. Ctrl+Enter, Shift+Enter), and then repeat, for each field...Or would that be too complex/too much work?  (Just giving suggestions )
Title: Database Search
Post by: foosion on 2003-10-28 09:16:26
Quote
I just tested once more and Im sure that I cant tab to the resultslist...In the sequence of tabs, it has one where no area is highlighted (Im guessing this is where the bug lies, in that its supposed to be the resultslist, but it doesnt highlight it, and Ive pressed enter and it doesnt do the configured action). I hope that helps with any bug information 

The resultlist always shows which of its items is focused, so you can only tell whether it has the focus by looking at the other controls. If none of the others has the focus, then the resultlist has it. Pressing enter does not work in your situation, because no item is selected initially. You can toggle the selection of single items by pressing the space key.

Quote
So as you stated before, you need a hotkey script to have it configure what does what, from what field?

I mean, couldnt you just have a small options window (Clickable, because theres probably not enough room) that has something like this:
SearchField:
-Enter: (Dropdown)
---Default configured action
---Send to playlist
---(Other options here)

And repeat, for each button (i.e. Ctrl+Enter, Shift+Enter), and then repeat, for each field...Or would that be too complex/too much work?  (Just giving suggestions )

I envision a config dialog similiar to foobar's default hotkey configuration, but with the ability to set the scope of hotkeys, i.e. works in all fields, only resultlist, etc.
Looking at BO(V)BZ's request gave me the idea to make the whole behaviour of this dialog exchangeable (like playback orders). Well, we'll see about that.
Title: Database Search
Post by: Rasi on 2003-10-28 11:06:56
hmmm what i really would like to see would be an option, that simply plays the doubleclicked entry in the now open playlist.... instead of inserting it or asking where to put it..
Title: Database Search
Post by: foosion on 2003-10-28 11:31:16
Quote
hmmm what i really would like to see would be an option, that simply plays the doubleclicked entry in the now open playlist.... instead of inserting it or asking where to put it..

Set default action to "Play" (implemented in foo_utils).
Title: Database Search
Post by: Rasi on 2003-10-28 12:00:13
dont know what you mean with foo_utils, but play is not an option in default action....

http://rasi.homeip.net:66/ugh.png (http://rasi.homeip.net:66/ugh.png)
Title: Database Search
Post by: foosion on 2003-10-28 13:03:04
Quote
dont know what you mean with foo_utils, but play is not an option in default action....

http://rasi.homeip.net:66/ugh.png (http://rasi.homeip.net:66/ugh.png)

foo_utils contains various general commands. You can get it from my site (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/).
Title: Database Search
Post by: Rasi on 2003-10-28 13:23:24
right... works perfect, thanks

strange "foo_utils" cant be found with forum search (exception: this thread :,)
Title: Database Search
Post by: Inc3pt on 2003-10-28 13:31:18
Quote
The resultlist always shows which of its items is focused, so you can only tell whether it has the focus by looking at the other controls. If none of the others has the focus, then the resultlist has it. Pressing enter does not work in your situation, because no item is selected initially. You can toggle the selection of single items by pressing the space key.

I envision a config dialog similiar to foobar's default hotkey configuration, but with the ability to set the scope of hotkeys, i.e. works in all fields, only resultlist, etc.
Looking at BO(V)BZ's request gave me the idea to make the whole behaviour of this dialog exchangeable (like playback orders). Well, we'll see about that.

Okay, just tested that and it works...Although thats..*two* more buttons I have to press . Alright, well that helps a little bit...Although your hotkey idea sounds really good. On a side note, what are the strings that can be used for the default search in foobar? Is there a list, because I think I looked but couldnt find anything?
Title: Database Search
Post by: tonderai on 2003-11-01 20:13:54
is there a way to add/send all the files in the results list to the current playlist?

i always used to use this in foo_shizzle [for 0.6] to pick out entire genres from the database, and frankly i'm lost without it
Title: Database Search
Post by: foosion on 2003-11-01 20:17:10
Quote
is there a way to add/send all the files in the results list to the current playlist?

i always used to use this in foo_shizzle [for 0.6] to pick out entire genres from the database, and frankly i'm lost without it

Please read this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=7841&view=findpost&p=146990) (it's about one page up).
Title: Database Search
Post by: anza on 2003-11-01 20:17:12
Go to the plugins' preferences and set default action for example to "send to playlist...".

@foosion: Oh, I had missed those features
Title: Database Search
Post by: anza on 2003-11-01 20:21:04
edit: hmmm.. how did this come as second post, even though I used the "edit" button
Title: Database Search
Post by: tonderai on 2003-11-02 14:51:37
Quote
Quote
is there a way to add/send all the files in the results list to the current playlist?

i always used to use this in foo_shizzle [for 0.6] to pick out entire genres from the database, and frankly i'm lost without it

Please read this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=7841&view=findpost&p=146990) (it's about one page up).

ooops i missed that  thanks anyway for your help!
Title: Database Search
Post by: DaCypher on 2003-11-10 23:50:03
Big fan of the new version... Thanks again...
Title: Database Search
Post by: pruuat on 2003-11-12 04:27:04
Great plugin, much appreciated.

But, I've always assigned a global key to dbsearch and in the past when foo was minimized to tray I could hit the key and search would pop up foreground to use. Now however using version 1.03 with foobar .73a, it stays minimized until I re-focus to foobar altogether.

What changed? The old behavior was great and I would really appreciate restoring it.

Thanks for the great plugin.
Title: Database Search
Post by: foosion on 2003-11-12 08:03:33
Quote
What changed? The old behavior was great and I would really appreciate restoring it.

The activation of the dbsearch window works just like before, so I don't know. Try pressing that hotkey twice, this works for me.
Title: Database Search
Post by: DaCypher on 2003-12-12 18:10:44
Ok, after using this for a while now (because its really a damn cool plugin), I've come up with a few things that I think would be kinda cool...

1)  I have the default action set to Play (via foo_utils).  I was wondering if it would be possible to have Play add the song to the current playlist if it doesn't already exist.  I'm not sure if this is feasible, but would be handy for me.

2)  I would really like to be able to drag/drop results of a search into a playlist.

3)  If drag/drop support is too much of a pain in the ass, could you possibly add support for foo_copynpaste to foo_dbsearch (or add support for foo_dbsearch in foo_copynpaste, however it works)? 

Thanks again for the awesome plugin.
Title: Database Search
Post by: pruuat on 2003-12-12 18:22:35
Quote
Quote
What changed? The old behavior was great and I would really appreciate restoring it.

The activation of the dbsearch window works just like before, so I don't know. Try pressing that hotkey twice, this works for me.

Thanks. Pressing the key twice works.

(Didn't realize you had replied, autonotification was apparently broken for a while.)
Title: Database Search
Post by: foosion on 2003-12-12 18:25:14
1) I'll think about adding this to foo_utils as a new command ("add & play").

2) Me too.

3) Not sure what there is to add. If you have the commands from foo_copynpaste (copy/collect locations) in your contextmenu, you can already copy results from the search window and add them to the playlist (paste/insert locations).
Title: Database Search
Post by: DaCypher on 2003-12-12 20:22:56
Quote
3) Not sure what there is to add. If you have the commands from foo_copynpaste (copy/collect locations) in your contextmenu, you can already copy results from the search window and add them to the playlist (paste/insert locations).

Oh I see... I have disabled the copy/paste stuff in the context menu because I just use keyboard shortcuts (Ctrl+C = copy), but the keyboard shortcuts don't seem to work in the foo_dbsearch window...  Is there a workaround for this?
Title: Database Search
Post by: picmixer on 2003-12-14 22:57:32
Download link on your page seems to be broken.  I get the following error:

Quote
Forbidden

You don't have permission to access /~uzbs/fb2k/foo_dbsearch/foo_dbsearch-1.1.zip on this server.


Thanks for all the work.  Really like most of your plugins and foosion pack has become a must have in my components folder.
Title: Database Search
Post by: foosion on 2003-12-14 23:02:08
Quote
Oh I see... I have disabled the copy/paste stuff in the context menu because I just use keyboard shortcuts (Ctrl+C = copy), but the keyboard shortcuts don't seem to work in the foo_dbsearch window...  Is there a workaround for this?

No, currently not. I'll have to implement my own keyboard shortcut system.

New features in 1.1.0
New predicates in "match all" and "match one" modes:
Code: [Select]
%field%=value
%field%~value
%field%<value
%field%>value

fieldshould be the name of a tech info field prefixed with two underscores or the name of metadata field. Value can be single word or a phrase in double quotes. The different operators have the following meaning:< and > use natural ordering, so "a2" < "a11". All operators ignore character case. In the case of a metadata field, it is sufficient, if there is one field that satisfies the condition. The new predicates can also be prefixed with + or -.

@picmixer: Thanks for the hint. File permissions were b0rked.
Title: Database Search
Post by: Gul on 2003-12-16 09:54:29
feature request : would it be possible to implement a quick-search from the context menu? eg. "Search db for this %artist%" and stuff like that?
Title: Database Search
Post by: foosion on 2003-12-16 10:38:04
Quote
feature request : would it be possible to implement a quick-search from the context menu? eg. "Search db for this %artist%" and stuff like that?

I'll see, if I can add this to the current implementation in a clean way. I'd say it is at least 90% possible.

Edit: I'll revise that: It is 100% possible.
Title: Database Search
Post by: Gul on 2003-12-16 14:23:53
Yay! thanks. 
Title: Database Search
Post by: foosion on 2003-12-17 23:00:47
foo_dbsearch 1.1.1There are entries for directly searching artist, album, title, date and venue (they only show up, if a format preset of that name exists). Another command allows choosing an arbitrary entry.
Title: Database Search
Post by: mixmixmix on 2003-12-18 02:11:26
is it possible to make it so you can just press enter after choosing the song using hte up/down arrows without having to use tab or the mouse ala winamp?


great plugin!
Title: Database Search
Post by: Gul on 2003-12-18 07:34:11
First : Thanks, foosion! Nice to request a feature, and actually have it implemented just the way i imagined it!
Second : How do i use it 
Rightclicking something like   
  Kashmir - Kiss Me Goodbye - The Good life
And searching for album, searches the database for T only, giving me 1589 hits.

[EDIT]
It doesn't only happen on album-search. Whatever i search for, only the first letter is used.
[/EDIT]
Title: Database Search
Post by: foosion on 2003-12-18 12:41:39
Quote
Second : How do i use it  
Rightclicking something like   
  Kashmir - Kiss Me Goodbye - The Good life

Select a single file, choose "Database search/Search for same artist" (or album, title, ...) from the contextmenu. You can only search for "artist", if you have a format preset called "artist" (or "Artist", character case is ignored here).
Quote
And searching for album, searches the database for T only, giving me 1589 hits.

Fixed in 1.1.2.
Title: Database Search
Post by: foosion on 2003-12-18 15:19:24
Quote
is it possible to make it so you can just press enter after choosing the song using hte up/down arrows without having to use tab or the mouse ala winamp?

This has been discussed before.

I finally started writing an up-to-date help file for this plugin. It is still incomplete, but you can view it here (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/html/foo_dbsearch_help.html). The styleshhet is embedded, so you can easily save the page for offline use.

Btw. I'm still searching a nice looking and compatible (across browsers) way to mark the name of menu commands. I'm currently using
Code: [Select]
<span class="cmd">bla</span>

and
Code: [Select]
.cmd:before {
content: "\"";
}

.cmd:after {
content: "\"";
}

but the :before and :after pseudoformats are not understood by IE, and I couldn't find a nice background color or something similar quickly. Suggestions are welcome.
Title: Database Search
Post by: Poese on 2003-12-19 20:07:49
Quote
Quote
This plugin's great.  But a feature request: could you add an ability to search for a blank field? <snip>


Search in database, set format to ... whatever, doesn't matter for this one. Set the filter mode to "match all" or "match" one (the dropdown box to the right of the pattern field). Now type "-%artist%" in the pattern field. Result shown: All items in database without an artist tag. <snip>

The db_search plugin is great.  However, I'm stuck trying to form a query that returns all of the *.flac files that I have with an empty "Genre" field.  Mind you, the tag exists, but it is empty.  I tried the solution you suggested to hermit22, but I only got *.wav files that don't have a Genre tag at all.  I also tried to search with "Format" set to "Genre" and "Pattern" set to " " and that returns files that have a space in the Genre field (like "Alt. Rock")  How do I indicate an empty string in the "Pattern" box?  More generally, how do I form this query using db_search?  Thanks for any help.

Incidentally, these empty Genre fields have occured due to a problem with EAC (v0.9b4) -- if you fill in the "Genre" box with a string that is not in the list box, it doesn't write anything into that field when it makes the *.flac file.  Maybe this is fixed in more recent versions?
Title: Database Search
Post by: foosion on 2003-12-19 20:44:14
@Poese:
Your problem is solved rather easily using the "match one" mode. You only need to include +%genre%="" in your pattern. Combined with +%__codec=flac this gives you all the .flac files with an empty, existing genre tag.
Title: Database Search
Post by: Inc3pt on 2003-12-20 18:05:52
Quote
Quote
is it possible to make it so you can just press enter after choosing the song using hte up/down arrows without having to use tab or the mouse ala winamp?

This has been discussed before..

I, in fact, was the one who brought it up. Im wondering though, you said that you would need to write a complete configurable hotkeys script, and that would be a pain. Is there anyway else that this could be possibly done? Id really appreciate it..

*OR*

The basic search that comes with Foobar will go in the playlist to what you searched for, automatically. Thats what I have my default action set as for your search plugin. Is there any easy way to implement that, so that when you type "blah blah" in the background, the playlist automatically jumps to those results?
Title: Database Search
Post by: foosion on 2003-12-20 20:02:17
Quote
Im wondering though, you said that you would need to write a complete configurable hotkeys script, and that would be a pain. Is there anyway else that this could be possibly done?

None that I know of.

Quote
The basic search that comes with Foobar will go in the playlist to what you searched for, automatically. Thats what I have my default action set as for your search plugin. Is there any easy way to implement that, so that when you type "blah blah" in the background, the playlist automatically jumps to those results?

The builtin playlist search has the advantages that it knows the playlist indices of the result items, and can select them easily and efficiently. foo_dbsearch on the other hand doesn't even know these indices when you set the search domain to "Playlist", so it would have to find the result items in the playlist. This means it would inherently be slower than with playlist search, though I don't know when you'd start noticing. Well, maybe I'll add this and configurable hotkeys during the holidays, but I doubt that. Too many ideas have piled up, and I won't be coding fb2k plugins all the time.
Title: Database Search
Post by: BlindSeer on 2003-12-20 22:47:54
I think the ctrl-enter and shift-enter shortcuts are great additions, but why not add a third? It'd be awesome if ctrl-shift-enter could replace the current playlist with the results, begin play with the first item, and close the database search window.

thanks for all your work on this plugin, foosion.
Title: Database Search
Post by: saga on 2003-12-25 14:42:09
foosion: your foo_dbsearch is great
I've got 1 request for this cool component at
10 things I want from fb2k (http://www.hydrogenaudio.org/forums/index.php?showtopic=16354&hl=)

in case you guys were lazy, I've typed it here
Quote
12) In component 's song list (like foo_dbsearch 's result list), the component should add their own items at top of context-menu (OK, this reuest should go to foosion, but I don't know where he is right now ;-).
Title: Database Search
Post by: ssamadhi97 on 2003-12-25 17:07:43
foosion's enjoying a healthy dose of ('net-free) holidays.

Anyway, dbsearch already does what you're requesting.
Title: Database Search
Post by: foosion on 2004-01-11 19:49:58
foo_dbsearch 1.1.3
Title: Database Search
Post by: anathema on 2004-01-17 16:24:57
hi! beautiful plugin!
do you think you could add window size memory? the window is a little small for me. thanks!
Title: Database Search
Post by: foosion on 2004-01-17 16:52:16
Quote
hi! beautiful plugin!
do you think you could add window size memory? the window is a little small for me. thanks!

Go to Preferences/Display and check "Remember window positions".
Title: Database Search
Post by: anathema on 2004-01-17 18:36:38
ah, perfect! thank you!
Title: Database Search
Post by: Blinky on 2004-01-18 00:33:30
Ignore me, just being stupid
Title: Database Search
Post by: foosion on 2004-01-31 22:55:24
foo_dbsearch 1.2.0
Title: Database Search
Post by: NEMO7538 on 2004-02-01 09:36:00
The "Toggle quicklist" option has disappeared since V0.11. Can it be reimplemented ?

IMHO it's better to have all the options hidden once they have been setup


Thanks
Title: Database Search
Post by: foosion on 2004-02-01 11:47:56
Quote
The "Toggle quicklist" option has disappeared since V0.11. Can it be reimplemented ?

IMHO it's better to have all the options hidden once they have been setup

The main reason why this option vanished is that it wasn't that easy to implement after 0.11 (a helper class in the SDK changed). Since then, my opinion on the usefulness of this option has changed. I find myself changing the format setting quite frequently, and I can immediately see what format is set.
Title: Database Search
Post by: Gul on 2004-02-02 22:59:52
Would it be possible to implement a standard setting for the search window when starting it with "components/database search". Now, the settings remain as they were in the last search, but i would like to not have to set them back everytime i've done some "special search".

I would like it better if, for example, i could set it to automagically switch to [custom search string] + [match all] whenever i launch the search "without any parameters".

<edit>
While i'm at it : it would also be nice to have CTRL+A select all of the results of the search. Thanks 
</edit>
Title: Database Search
Post by: foosion on 2004-02-02 23:36:02
Quote
Would it be possible to implement a standard setting for the search window when starting it with "components/database search". Now, the settings remain as they were in the last search, but i would like to not have to set them back everytime i've done some "special search".

I would like it better if, for example, i could set it to automagically switch to [custom search string] + [match all] whenever i launch the search "without any parameters".

I'll consider adding this, though I'll probably need a second config page then.

Quote
<edit>
While i'm at it : it would also be nice to have CTRL+A select all of the results of the search. Thanks  
</edit>

Considered as bug report/investigating.
Title: Database Search
Post by: foosion on 2004-02-03 12:59:47
foo_dbsearch 1.2.1
Title: Database Search
Post by: foosion on 2004-03-25 12:05:34
foo_dbsearch 1.2.2
Title: Database Search
Post by: foosion on 2004-05-16 21:40:47
foo_dbseach 1.2.4changes in the not-so-publicly-released version 1.2.3:
Title: Database Search
Post by: bluenet on 2004-06-19 15:08:32
mini SDK link broken, http://www.stud.uni-karlsruhe.de/~uzbs/fb2...ini_sdk-1.2.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch_mini_sdk-1.2.zip)
Title: Database Search
Post by: foosion on 2004-06-20 19:48:06
Quote
mini SDK link broken, http://www.stud.uni-karlsruhe.de/~uzbs/fb2...ini_sdk-1.2.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch_mini_sdk-1.2.zip)

I guess I was a bit lazy about updating that one.
Title: Database Search
Post by: Morgensonne on 2004-07-03 03:52:07
could you make an action "Send To Playlist" (like in album list) which instantly sends the marked files to the actual playlist? i mean send to the actual playlist without the dialog-box. I only can find the action "Send To Playlist...".

it would be great if you for example search for an album and mark all found files and then simply press enter and have it in your actual list.
Title: Database Search
Post by: ssamadhi97 on 2004-07-03 08:14:58
Quote
I only can find the action "Send To Playlist...".

Amazing.

(http://www.stud.uni-karlsruhe.de/~uybc/addtoplaylist.png)
Title: Database Search
Post by: hunted on 2004-07-04 07:08:23
I'd like it if the window could be independant from the main window like the playlist search or the preferences.

That way you can access with global hotkeys.
Title: Database Search
Post by: foosion on 2004-07-04 10:00:44
If you have a global hotkey for database search, you can pop it up while the main window is hidden by pressing the hotkey twice. This will be fixed in the next release of the plugin.
Title: Database Search
Post by: Morgensonne on 2004-07-04 10:37:36
@ssamadhi97:

i'm not blind... but i asked for the option SEND TO PLAYLIST and replace the original playlist content. not to ADD it ot the current playlist. i mean a short enter -> results go to playlist AND foobar starts to play first file. Like in album list.

ciao
Title: Database Search
Post by: Tri on 2004-07-05 20:16:58
@ssamadhi97:
Could you please implement "Add to playlist" as selectable default action for double clicking?
Title: Database Search
Post by: foosion on 2004-07-05 20:28:47
Quote
@ssamadhi97:
Could you please implement "Add to playlist" as selectable default action for double clicking?

Install foo_utils, the command is called "Edit/Add to playlist".
Title: Database Search
Post by: Tri on 2004-07-05 20:59:45
Thanks, works.
Title: Database Search
Post by: ssamadhi97 on 2004-07-06 23:27:04
Quote
i'm not blind... but i asked for the option SEND TO PLAYLIST and replace the original playlist content. not to ADD it ot the current playlist. i mean a short enter -> results go to playlist AND foobar starts to play first file. Like in album list.

foosion says that pressing Ctrl+ENTER, ENTER should do exactly that.

- blame him if it doesn't
- 2 keypresses aren't too much to ask, right?
Title: Database Search
Post by: Morgensonne on 2004-07-06 23:37:23
okay... after installing the plugin "foo_utils" i got what i wanted

all fine
Title: Database Search
Post by: lukeprog on 2004-07-26 05:38:33
One small request: That the hotkey for the foo_dbsearch allow you to toggle its visibility (not only make it active), so I don't have to hit the little X every time I'm done with it (or Alt+F4). I'd imagine this isn't too difficult. Would you consider implementing this?
Title: Database Search
Post by: foosion on 2004-07-26 13:01:43
I prefer hitting escape instead of Alt+F4 for closing it, since that's easier IMO. I'll consider including a toggle command in a future release.
Title: Database Search
Post by: lukeprog on 2004-07-26 18:46:39
Oh good idea. Thanks for considering toggle!

One other thing: the most common way I personally use database search is to highlight several tracks and send them to the current (almost always 'Default') playlist, replacing the other tracks. Might there be some way in the future to set 'send to playlist' to automatically do it with certain options (which playlist to send to, whether or not to replace current tracks in playlist), so you don't have to go through an extra screen to do it?
Title: Database Search
Post by: foosion on 2004-07-26 20:14:03
Set "Edit/Send to playlist" from foo_utils as default action and invoke it with Ctrl+Enter, or assign a keyboard shortcut of your liking to "[context] Edit/Send to playlist" (see a few posts above).
Title: Database Search
Post by: lukeprog on 2004-07-27 02:50:51
How do I set edit/send to playlist as the default action?

I tried setting [context] edit/send to playlist to Ctrl+enter but that always closes the dialogue box when I hit Enter.
Title: Database Search
Post by: foosion on 2004-07-27 03:08:23
Quote
How do I set edit/send to playlist as the default action?[a href="index.php?act=findpost&pid=229288"][{POST_SNAPBACK}][/a]

Under "Preferences->Components->Database search" set "Default action" to the desired command.
Title: Database Search
Post by: lukeprog on 2004-07-27 03:53:57
Oh, okay, thanks. Yeah, that works, but it still prompts for which playlist to add it to... is there any way to make it skip that? It's not a problem if it's already on the default playlist, but sometimes it's not (usually after I restart the player).
Title: Database Search
Post by: foosion on 2004-07-27 11:34:44
Sorry for confusing that, but the default action is triggered by pressing Enter in the resultlist (as stated in foo_dbsearch_help.html, btw).
Title: Database Search
Post by: lukeprog on 2004-07-27 17:43:06
No, yeah, I got that. I have the default action set to 'send to playlist' just fine, but I'm wondering if there's a way to bypass that extra screen that asks about which playlist to add it to and whether or not to replace and sort the files (because I ALWAYS choose the same options). Can I do that somehow? I want to send the tracks to my Default playlist (my only playlist) and replace the files in the playlist.
Title: Database Search
Post by: lukeprog on 2004-07-28 09:16:04
Yes? No? Maybe so?
Title: Database Search
Post by: foosion on 2004-07-28 10:10:28
Quote
Yes? No? Maybe so?[a href="index.php?act=findpost&pid=229639"][{POST_SNAPBACK}][/a]

Be sure to use "Edit/Send to playlist" (from foo_utils) instead of "Send to playlist..." (from the foobar core).
Title: Database Search
Post by: lukeprog on 2004-07-28 20:18:28
Oh, doh! It works perfectly now. THANKS!!
Title: Database Search
Post by: l.s on 2004-08-14 23:14:33
But there is no way to send a song to a specific playlist as default action, isn't it?

I would like to doubelclick on a song and have added it in the default playlist and let it be played.

Regards, Lars
Title: Database Search
Post by: shovet on 2004-08-16 18:15:37
Yeah that would be great
Title: Database Search
Post by: herr klang on 2004-08-17 01:32:38
so, i have a brief feature request that i've been hoping would be added by natural process for a while.. but yeah...

what would really be awesome is if there was a switch where one could make the dbsearch window close after an action is performed or after about 3-5 seconds of activity (an either/or type affair).  whenever i use the dbsearch window, i usually just want to play a track, or see if something is there. other than that, it just sits there being big and stuff

while on the topic, it would also be nice if the 'play' action could be targeted at a specific playlist.. i'm one ot those users that keeps a playlist full of everything in the database.

man, that would be awesome.
Title: Database Search
Post by: psynapse on 2004-08-17 03:45:25
Awesome plugin
It's helped me properly tag and organise my collection in just an hour

One thing though, 'Track focus in Playlist' only seems to outline the track on the playlist it's in, and not actually highlight or switch to that playlist.

Maybe i'm expecting it to do something it's not meant to, but i thought this would work like the 'Playlist/Highlight playing Item' feature of fb2k 

Regardless, would it be possible to add 'Track focus in Playlist' as a default search action?
Title: Database Search
Post by: Phi on 2004-08-19 05:00:18
Half-hearted DB Search API request:
I think it would be useful if other components had access to the searching engine, something vaguely similar to the interface foo_playlistfind allows. A developer could create an instance of some dbsearch service with a specific domain and filter, and then query the service with strings to search for.

I think it makes sense for foobar to have a single database searching engine, rather than have each plugin author create their own. Especially considering the concept of domains. I understand that would probably be a lot of work to implement, and I'm not sure how much it would get used, but I thought I'd suggest it all the same.
Title: Database Search
Post by: foosion on 2004-08-19 07:51:48
@l.s and shovet:
IIRC there is a plugin that adds commands to the context menu to directly send tracks to any existing playlist. Sorry, but I don't remember the exact name.


@herr klang:
Here's a short explanantion to prevent misconceptions about the "natural development process" for this plugin: progress on this plugin involves a) an urgent need to add or fix something, or b) me having greater amounts of free time. I will add your request to my list of things that might me implemented. However, my current priority (as far as development of this plugin is concerned) is cleaning up the preferences and completing the documentation.


@psynapse:
Quote
Awesome plugin
It's helped me properly tag and organise my collection in just an hour

Nice to hear that.

Quote
One thing though, 'Track focus in Playlist' only seems to outline the track on the playlist it's in, and not actually highlight or switch to that playlist.

And that's the only thing it's meant to do. Details about this and other options will be included in the soon completed documentation.


@Phi:
To be honest, I've already had that idea myself, but never found the time and motivation to do it. After several internal code cleanups, it should now be fairly easy to promote the search engine class to a service. However, I would like to know how much interest in this exist, before I invest time in doing these changes .
Title: Database Search
Post by: l.s on 2004-08-19 23:22:55
Quote from: foosion,Aug 18 2004, 10:51 PM

@l.s and shovet:
IIRC there is a plugin that adds commands to the context menu to directly send tracks to any existing playlist. Sorry, but I don't remember the exact name.

Yes, there is. Thanks for the info:

http://members.lycos.co.uk/musicf/?#Send_to_playlist (http://members.lycos.co.uk/musicf/?#Send_to_playlist)

It sends a song to a specific playlist, that is choosen by order.

A better sollution in my eyes would be a selection by the name of the playlist.  And it woun't solve the problem, that the added song is not played.

Perhaps you can add some thing like this some day to your fo_utils pluging 

Regards, Lars
Title: Database Search
Post by: salby on 2004-08-20 07:59:29
What i'd really like is to be able to display albums as single entries in the results list. Is it possible to do this currently?


Also what's happening with the sdk/source?
Title: Database Search
Post by: foosion on 2004-08-20 11:35:10
Quote
A better sollution in my eyes would be a selection by the name of the playlist. And it woun't solve the problem, that the added song is not played.

Perhaps you can add some thing like this some day to your fo_utils pluging

I'll think about it. Of course, you can also implement it yourself, and send me the changes.


Quote
What i'd really like is to be able to display albums as single entries in the results list. Is it possible to do this currently?

No.

Quote
Also what's happening with the sdk/source?

The foo_dbsearch sources are closed until I decide otherwise. The interfaces usee by the plugin will stay publicly available and will likely even be extended.
Title: Database Search
Post by: l.s on 2004-08-20 18:33:54
Quote
I'll think about it. Of course, you can also implement it yourself, and send me the changes.


Thank's.

If I would be able to do this, I had allready tried to do something about it. But with my lacking abilitities... 

Regards, Lars
Title: Database Search
Post by: upNorth on 2004-09-04 15:42:46
I'm not sure how much further you want to develop this plugin, as it's more than good enough already, but I'll share my ideas/requests anyway:

1) A checkbox to "auto update" search on track change.
Reason: I often use this plugin to see if I have other versions of the same track, either by the same artist or by others. Currently I have assigned a keyboard shortcut to do a search with the playing track as input. One anoyance is that I can only make a shortcut for "Search for same..." and have to pick my own custom preset from the list over and over. My preset uses %title% as pattern, but ignores everything in parenthesis (as they often contain "(live)", "(feat..)" and such). Here is the whole preset:
Code: [Select]
$trim($if(%title%,$if($greater($strchr(%title%,'('),1),$substr(%title%,0,$sub($strchr(%title%,'('),1)),%title%)))
The option to make a "direct" shortcut without the "Search for same.." detour, would be useful if you don't like the "auto update" thing.

2) A "focus" feature that works for all playlists, not only the active one. Would be useful in combination with "search all playlists". If present on multiple playlists, just pick the first one or something.

3) Add "Play track" as a "Default action". Most useful if 3) is implemented, but nice even for a single playlist.

4) Make this plugin available as a panel for UI Columns. Probably most useful if musicmusic adds support for horizontal panels under the playlist. At least to me as I like to show quite a bit of information for each search results.


These are all features I would find useful, so if one or more of them can be accomplished already, please enlighten me.

I guess all of these combined could be a plugin on its own. As a panel showing a list of similar tracks only, no dropdown lists or anything.

I know so many feature requests at once probably isn't very motivating, but pick the ones you find useful, if any at all. If you decide not to implement any of these, I would still like to thank you for this great plugin, and all your work with foobar in general.

Btw: I didn't reread the this thread, and it's been a while, so I'm sorry if I have duplicated any previous requests.
Title: Database Search
Post by: foosion on 2004-09-04 17:55:01
Quote
I'm not sure how much further you want to develop this plugin, as it's more than good enough already, but I'll share my ideas/requests anyway:

I always have some ideas how to improve this plugin, but I prefer to let those ideas mature before making major changes.

Quote
1) A checkbox to "auto update" search on track change.

I'll think about it. With the inclusion of a new API to control the search dialog in the next version, this could even be implemented in a separate plugin.

Quote
The option to make a "direct" shortcut without the "Search for same.." detour, would be useful if you don't like the "auto update" thing.

Queued for (current version+2).

Quote
2) A "focus" feature that works for all playlists, not only the active one. Would be useful in combination with "search all playlists". If present on multiple playlists, just pick the first one or something.


Quote
3) Add "Play track" as a "Default action". Most useful if 3) is implemented, but nice even for a single playlist.

Also queued for (current version+2) - or rather the ability to reassign the mapping of Ctrl+Enter and Shift+Enter in addition to only Enter.

Quote
4) Make this plugin available as a panel for UI Columns. Probably most useful if musicmusic adds support for horizontal panels under the playlist. At least to me as I like to show quite a bit of information for each search results.

It won't happen now, but it might happen later. The reason is that a) the ui_extension API still has some weaknesses considering support for single-instance panels and program control over opening panels, and b) dbsearch IMO requires that there can be at most one (identifiable) instance that can be shown on request. The rationale for the latter is that the "search for same" commands require a designated target window that they can modify. This is really rather a design than an implementation problem.

Quote
I guess all of these combined could be a plugin on its own. As a panel showing a list of similar tracks only, no dropdown lists or anything.

Indeed.

Quote
I know so many feature requests at once probably isn't very motivating, but pick the ones you find useful, if any at all. If you decide not to implement any of these, I would still like to thank you for this great plugin, and all your work with foobar in general.

Thanks.


For you and everyone interested in this plugin, here's some information regarding my plans for this plugin. Some of this has already been said in different places, and is repeated here to form a more complete picture.I am also considering to remove the ability to type an arbitrary string in the format field in the search dialog, as I virtually never use it myself. Instead it annoys that I have to click on the arrow, when changing the format with the mouse. Well, that isn't decided yet, and I'll consider feedback from anyone who uses this plugin. (Though I'll probably ignore statements like "Why not make it an option? I don't use that feature, but it could be useful.")
Title: Database Search
Post by: upNorth on 2004-09-04 18:29:01
Waiting for the ui_extension API to mature a bit sounds reasonable.

I might have a go at a small "similar tracks" plugin myself some time. I guess that would require your "mini SDK", but the link to foo_dbsearch_mini_sdk-1.2.zip on your plugins page is broken. Should I use/look at foo_dbsearch_mini_sdk-0.11.zip instead?

Quote
I am also considering to remove the ability to type an arbitrary string in the format field in the search dialog, as I virtually never use it myself. Instead it annoys that I have to click on the arrow, when changing the format with the mouse. [a href="index.php?act=findpost&pid=239462"][{POST_SNAPBACK}][/a]
IMHO that's a very good idea
Title: Database Search
Post by: foosion on 2004-09-04 18:43:57
Quote
I might have a go at a small "similar tracks" plugin myself some time. I guess that would require your "mini SDK", but the link to foo_dbsearch_mini_sdk-1.2.zip on your plugins page is broken. Should I use/look at foo_dbsearch_mini_sdk-0.11.zip instead?

If all you want to do is search the database for tracks similar to the one currently playing, you are probably better off coding this from the scratch, as the parts of dbsearch that would make your job easier (particularly the backgrounded search loop) aren't exposed to other plugins yet. The services in the dbsearch SDK are merely a means of allowing uniform access to filter implementations and data sources ("domains"). Nevertheless I should ensure that the download links on my page are working.

edit: foo_dbsearch_mini_sdk-1.2.zip wasn't uploaded for some unknown reason. Fixed.
Title: Database Search
Post by: Moonwhaler on 2004-09-04 20:42:21
Hi!

I don't know if this has been asked in the past, but how about re-styling the UI of the search-window to be more scalable like the main window with "ColumnsUI". In special I thought about introducing columns...  Anyway: Great work on this component - I love it!


Thanks!
Moon
Title: Database Search
Post by: foosion on 2004-09-04 20:53:54
Quote
I don't know if this has been asked in the past, but how about re-styling the UI of the search-window to be more scalable like the main window with "ColumnsUI". In special I thought about introducing columns...

I currently don't have plans in that direction.

Quote
Anyway: Great work on this component - I love it!

Your welcome.
Title: Database Search
Post by: upNorth on 2004-09-04 21:02:37
"Press column header to sort results" would be nice 
[span style='font-size:8pt;line-height:100%']You answered Moonwhaler's request before I finished writing...[/span]

Another thing, how about adding color support. Something I like about foobar, is the ability to make it easier to read by using colors. It would also blend in more nicely with the rest.
Title: Database Search
Post by: foosion on 2004-09-04 21:53:44
Quote
Another thing, how about adding color support. Something I like about foobar, is the ability to make it easier to read by using colors. It would also blend in more nicely with the rest.

What colors do you mean? For the edit boxes and the dialog background?
Title: Database Search
Post by: upNorth on 2004-09-04 22:23:33
Quote
Quote
Another thing, how about adding color support. Something I like about foobar, is the ability to make it easier to read by using colors. It would also blend in more nicely with the rest.

What colors do you mean? For the edit boxes and the dialog background?
[a href="index.php?act=findpost&pid=239498"][{POST_SNAPBACK}][/a]
Sorry, I should have explained it better. I was talking about supporting color codes in the "Display" formatting string (TAGZ).

A simple example:
Code: [Select]
FFFFFF|FFFFFF%artist% 00FFFF|00FFFF%title% 0000FF|0000FF%album%


As I've said earlier, I like to display quite a bit of information about the search results. Currently it shows: artist, title, album, tracknumber, rating, play counter, length, playlist name and some codec info. I guess some would consider this information overkill, but I find it useful. Anyway, it would be alot easier to read this info if I could add some colors to it, that's all.
Title: Database Search
Post by: foosion on 2004-09-04 23:11:00
Seems like you haven't tried using color codes.  Support for color codes was added to foo_dbsearch a little over 14 months ago, thus making it the first third party component with that feature AFAIK.
Title: Database Search
Post by: upNorth on 2004-09-04 23:26:43
Quote
Seems like you haven't tried using color codes.  Support for color codes was added to foo_dbsearch a little over 14 months ago, thus making it the first third party component with that feature AFAIK.
[a href="index.php?act=findpost&pid=239507"][{POST_SNAPBACK}][/a]
OMG!
          a good time to use them all.

I was actually afraid of this being the case, so i tried adding some colors before I posted. Don't know what went wrong.

What I can't understand though, is how I missed this feature in the first place. I remember when you first released this plugin and I made myself a nice formatting with colors. When it was ready I realized that it didn't support colors, so I removed them. That's the way it has been ever since, but now I can add some colors to the formatting I made earlier today.

At least it was easy to please me this time. 


14 months is such a looong time...
Title: Database Search
Post by: bugmenot on 2004-09-25 03:17:17
could someone tell me what plugin i need so that i can double click on a searched item so that it will add it to the current playlist with the full version on foobar200 in properties you go to database search --> defualt action and select something like Edit/?
which will complete what i need, i currently use the lite version and can't find the plugin

any help?
Title: Database Search
Post by: foosion on 2004-09-25 16:37:17
You are looking for foo_utils, the command is called Edit/Add to playlist.
Title: Database Search
Post by: upNorth on 2004-09-25 18:31:43
Would it be possible to add support for %_isplaying% in the display string?
It would be nice to make the current track stand out, when searching for similar tracks.

Please don't tell me this is an old feature too.  [span style='font-size:8pt;line-height:100%']Ok, I would like to know, even if it is...[/span]
Title: Database Search
Post by: bugmenot on 2004-09-26 00:39:46
Quote
You are looking for foo_utils, the command is called Edit/Add to playlist.
[a href="index.php?act=findpost&pid=244391"][{POST_SNAPBACK}][/a]



thanx alot foosion, i'm new to this appliation but i'm learning
Title: Database Search
Post by: foosion on 2004-09-26 17:00:18
Quote
Would it be possible to add support for %_isplaying% in the display string?
It would be nice to make the current track stand out, when searching for similar tracks.

It should be possible to add this. (And no, it is not an old feature. )
Title: Database Search
Post by: dano on 2004-09-26 19:38:16
Is it possible to make the "Track focus in playlist" also work for playlists other  than the active playlist? (so that it switches to another playlist if the song is present on any of the playlists that are loaded in foobar)
Title: Database Search
Post by: jokull on 2004-09-29 04:08:22
I have a suggestion for this otherwise helpful plug-in.

I love everything about it except for having to navigate the mouse to select the results from a search I want to play/cue. Why not just type in a search, hit Shift+CTRL+DOWN to select all of the results and then CTRL+ENTER to play them directly. Just being picky...
Title: Database Search
Post by: foosion on 2004-09-29 10:02:18
Quote
Is it possible to make the "Track focus in playlist" also work for playlists other  than the active playlist? (so that it switches to another playlist if the song is present on any of the playlists that are loaded in foobar)

This might be possible in a future version.

Quote
I have a suggestion for this otherwise helpful plug-in.

I love everything about it except for having to navigate the mouse to select the results from a search I want to play/cue. Why not just type in a search, hit Shift+CTRL+DOWN to select all of the results and then CTRL+ENTER to play them directly. Just being picky...

You should be able to press Tab to navigate to the result list. Other than that, Enter, Shift+Enter, and Ctrl+Enter can also be used from outside the resultlist, in which case they affect all items. Of these three keyboard shortcuts, only Enter is configurable right now, but this is subject to change.
Title: Database Search
Post by: lukeprog on 2004-09-30 03:32:03
Is development still underway on this excellent and extremely useful component? What features are planned for the next update. Apparently, it has not been updated since May...
Title: Database Search
Post by: foosion on 2004-09-30 10:10:31
Quote
Is development still underway on this excellent and extremely useful component? What features are planned for the next update. Apparently, it has not been updated since May...

See this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=7841&view=findpost&p=239462) for a list of planned features (near the bottom). Some of them have already been implemented, but I'm currently focusing on getting foo_history 0.8.0 ready for final.
Title: Database Search
Post by: lukeprog on 2004-10-01 02:26:27
Thanks for the link! Sorry, what do you mean by 'ready for final'?
Title: Database Search
Post by: mezenga on 2004-10-01 05:45:37
Quote
Thanks for the link! Sorry, what do you mean by 'ready for final'?
[a href="index.php?act=findpost&pid=245594"][{POST_SNAPBACK}][/a]


right now, foo_history 0.8.0 is an RC2 (2nd release candidate)...
this stage is supose to give some "mileage" with testers to assure nothing is wrong.
if so (no bugs showing up), a final version 0.8.0 is released.
Title: Database Search
Post by: lukeprog on 2004-10-02 02:14:48
ah, k
Title: Database Search
Post by: jokull on 2004-10-26 23:17:41
The playlist search plugin has been adapted to fit into a columns_ui panel
Will this plugin get similar treatment?

Is there any interest for this in the HA community?

EDIT: Sorry I saw your plans for this plugin earlier in this thread. I'm looking forward to seeing the next version!!!
EDIT2: As I understand it you are not planning to impliment the columns_ui thing because of design problems....hmmmm what if it looked like this

= T E X T - F I E L D =    =DROPDOWN=

R---------------------------------------------
E---------------------------------------------
S---------------------------------------------
U---------------------------------------------
L---------------------------------------------
T---------------------------------------------
S---------------------------------------------


The dropdown would consist of "All", "Artists", "Album", and "Song titles". The Filter string in "TEXT FIELD" would then have a 1 sec delay for filtering and if the results are over 50 the results would not display and instead a message of "too many search results" or better yet just display the first results that fit in the box and then the bottom line would be "...more" or something like that.

I know you have stated that you are not implimenting this so please if you are still firm on this ignore my post altogether. It's just the final step towards foobar2000/columns_ui UTOPIA!

Thanks for your attention.
Title: Database Search
Post by: Moonwhaler on 2004-10-27 23:19:53
Again: I love this excellent plugin! Despite the fact that I (still) would love to see a result output that's similar to the playlist output of ColumnsUI, I personally wish for an option to choose to which playlist a song should be sent - and YES I know there is the "send to playlist" option, but I'm speaking of a default action... 


Would this be possible? Thank you very much - and again: Keep up the great work!
Moon
Title: Database Search
Post by: foosion on 2004-10-28 01:24:50
foo_dbsearch 1.3.0wip
This version is still work in progress. I post it here because it fixes the crash bug when you try to choose an item from the system menu of the search window, and because it could still take some time until I manage to finish the new version.

Apart from fixing the aforementioned crash bug, this version has the following new features:Other things to be expected for 1.3.0 are support for tooltips in the resultlist and an API to control the search window (already partially implemented).

Last but not least, the download link:
foo_dbsearch-1.3.0wip.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-1.3.0wip.zip)
Title: Database Search
Post by: foosion on 2004-10-28 01:35:51
Quote
Again: I love this excellent plugin! Despite the fact that I (still) would love to see a result output that's similar to the playlist output of ColumnsUI, I personally wish for an option to choose to which playlist a song should be sent - and YES I know there is the "send to playlist" option, but I'm speaking of a default action...   [{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=250503")

Try [a href="http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_utils/foo_utils-0.4.0.zip]this version[/url] of foo_utils. I've had this thing lying around for some time, but was a bit reluctant to actually release it. The way it handles dynamically generated menu commands is not what I'd desire, yet it is about the best that can be done with the current version of foobar2000. foo_utils 0.4.0 offers several ways to directly send tracks to an existing playlist, but you have enable them in the preferences first ("Components/Playlist tools"). Hm, and discussion about foo_utils should take place in the appropriate thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=18276&).


@jokull:
For now I'll focus on further developing the existing search window. With the advent of 1.3.0 final, it should be possible to use the search engine of foo_dbsearch even in other plugins, i.e. create different front ends (even ones that are realized as panels). Whether such a panel is coded by myself or someone else remains to be seen.
Title: Database Search
Post by: spase on 2004-10-28 04:30:56
Quote
foo_dbsearch 1.3.0wip
This version is still work in progress. I post it here because it fixes the crash bug when you try to choose an item from the system menu of the search window.
[a href="index.php?act=findpost&pid=250536"][{POST_SNAPBACK}][/a]

how do you get the system menu from teh right click?
Title: Database Search
Post by: foosion on 2004-10-28 10:44:17
Quote
how do you get the system menu from teh right click?[a href="index.php?act=findpost&pid=250571"][{POST_SNAPBACK}][/a]

The system menu is the menu that appears when you rightclick on the titlebar of a popup or application window. It contains commands to close, move, resize, minimize or maximize a window (so-called system commands).
Title: Database Search
Post by: jokull on 2004-10-28 12:02:33
Quote
@jokull:
For now I'll focus on further developing the existing search window. With the advent of 1.3.0 final, it should be possible to use the search engine of foo_dbsearch even in other plugins, i.e. create different front ends (even ones that are realized as panels). Whether such a panel is coded by myself or someone else remains to be seen.
[a href="index.php?act=findpost&pid=250539"][{POST_SNAPBACK}][/a]
I wasn't expecting a response! This just made my day....can barely wait!
Thank you very much
Title: Database Search
Post by: Mr_Rabid_Teddybear on 2004-10-28 19:25:41
This plug seems to sort on %date% field and also on History fields in history search so that the oldest entries are listed first, newest last. Could it be possible to alter this?
Title: Database Search
Post by: upNorth on 2004-10-28 20:37:41
I like the way the "format" drop down list works now. More convenient for everyday use when you don't have to aim for the arrow.

Problem:
When I tried to edit one of my own "format presets", by double clicking the name in preferences, it resulted in a crash and the following failure.txt (http://www.stud.ntnu.no/~mortek/foobar2000/failure.txt).
After restarting foobar it worked just fine though.


[OT]You seem to prefer the "new" formatting syntax (e.g. $meta(artist) instead of %artist%). Is there any speed benefits or other advantages?[/OT]
Title: Database Search
Post by: foosion on 2004-10-28 23:13:06
Quote
[OT]You seem to prefer the "new" formatting syntax (e.g. $meta(artist) instead of %artist%). Is there any speed benefits or other advantages?[/OT][a href="index.php?act=findpost&pid=250695"][{POST_SNAPBACK}][/a]

%artist% truncates multi-line values, $meta(artist) does not. I figured you'd get a more complete search result this way. Well, artist may not be a good example for this, but still...
Title: Database Search
Post by: dano on 2004-11-12 20:34:22
Hello foosion, is it possible to search case sensitive? (on "match prefix")
Title: Database Search
Post by: foosion on 2004-11-13 16:03:18
No, all search modes are case-insensitive.
Title: Database Search
Post by: alphaex32 on 2004-11-16 00:37:43
Just wondering, could you make an option to automatically bring the database search window to the front and give it focus when it is invoked? I like to use a global hotkey to open it even when foobar is minimized, and it often pops up under other windows and I have to click to give it focus, which is kind of annoying. Thanks
Title: Database Search
Post by: alphaex32 on 2004-11-16 03:16:30
nevermind, I did it myself with a bit of resource hacking. At least it seems to be working nicely now.
Title: Database Search
Post by: metal_termite on 2004-12-20 01:50:44
I find this plugin very useful. However, can you make it available as a panel... please
Title: Database Search
Post by: alphaex32 on 2004-12-20 03:28:49
I agree. We need a database search panel which shows the results in the playlist window.
Title: Database Search
Post by: NEMO7538 on 2004-12-22 17:55:01
Quote
I agree. We need a database search panel which shows the results in the playlist window.
[a href="index.php?act=findpost&pid=260771"][{POST_SNAPBACK}][/a]


Yes .... that would be great
Title: Database Search
Post by: anza on 2004-12-23 15:03:00
Is it just me or are the context menu items (search for same xxx) broken?
Title: Database Search
Post by: Fishy Joe on 2005-01-09 14:11:21
Is it possible to do a dbsearch for items that don't match the search string? For example, if I searched for 2004 and wanted to find everything not released in 2004.
Title: Database Search
Post by: upNorth on 2005-01-09 14:55:57
Quote
Is it possible to do a dbsearch for items that don't match the search string? For example, if I searched for 2004 and wanted to find everything not released in 2004.
[a href="index.php?act=findpost&pid=263997"][{POST_SNAPBACK}][/a]
You could alternatively use the extended playlist generator with the query:
Code: [Select]
NOT DATE IS 2004
Title: Database Search
Post by: foosion on 2005-01-09 15:28:42
Quote
Is it possible to do a dbsearch for items that don't match the search string? For example, if I searched for 2004 and wanted to find everything not released in 2004.[a href="index.php?act=findpost&pid=263997"][{POST_SNAPBACK}][/a]
In the "match all" and "match one" modes, simply prefix the word that should not be included with "-" (minus sign).
Title: Database Search
Post by: graham_mitchell on 2005-01-17 02:13:31
Just addin gmy voice to the choir of those who want the results to appear in the playlist

FWIW, I think the iTunes search is a great model of how a search should work.

If you want to hear an album, you just need to add to your search string until the only results left are the members of that album, then play the whole album.

Or... you can even search on genre and then play all songs of that genre. Very easy.

The search field should be an integrated panel too. Then we're cookin!
Title: Database Search
Post by: wortels on 2005-01-23 16:07:30
Quote
I agree. We need a database search panel which shows the results in the playlist window.
[a href="index.php?act=findpost&pid=260771"][{POST_SNAPBACK}][/a]

I also request this...as mentioned above itunes does an excellent job of this and this helps in moving through a huge library
Title: Database Search
Post by: Kalynn on 2005-03-02 07:04:28
Yeah, a panel would be really nice, with a similar autoplaylist feature to the one albumlist panel has...
Title: Database Search
Post by: madivad on 2005-03-31 15:16:30
I see no-ones posted here for a while, and I'm new to foobar, but I thought I would add in my suport for a dbsearch panel. I usually hate it when people say: "Hey man, this is a great plugin, but can you fix this..."

But, this IS a great plugin and I do love it, however (there's that word) I would like to see the following:

1. Maybe more than a panel, I would like to see the dbsearch become the main window! (ie, i suppose that's just a big panel, but I would just like to use this as my main window!)

2. Be able to configure the CTRL and SHIFT ENTER keys.  I want the default to be adding songs to my playlist, and if I wanted to play it directly, press shift or ctrl. But now, I have 2x add to playlist

3. (Maybe this is already there... but...) A hot key to bring up the search dialog. Is this possible?

Thanks
Title: Database Search
Post by: foosion on 2005-03-31 22:06:18
Quote
2. Be able to configure the CTRL and SHIFT ENTER keys.  I want the default to be adding songs to my playlist, and if I wanted to play it directly, press shift or ctrl. But now, I have 2x add to playlist[a href="index.php?act=findpost&pid=287236"][{POST_SNAPBACK}][/a]
That's already on the to-do list for this component.

Quote
3. (Maybe this is already there... but...) A hot key to bring up the search dialog. Is this possible?[a href="index.php?act=findpost&pid=287236"][{POST_SNAPBACK}][/a]
You can add one in preferences under "Core/Keyboard shortcuts".
Title: Database Search
Post by: sergeymen on 2005-04-01 01:17:31
Quote
Maybe more than a panel, I would like to see the dbsearch become the main window! (ie, i suppose that's just a big panel, but I would just like to use this as my main window!)


a panel? I've been kinda out of touch with foobar/dbsearch developments. Are you saying you can configure dbsearch to be a panel in foobar? How do you do it? I would love to have it!
Title: Database Search
Post by: madivad on 2005-04-01 05:43:31
Quote
Quote
Maybe more than a panel, I would like to see the dbsearch become the main window! (ie, i suppose that's just a big panel, but I would just like to use this as my main window!)
a panel? I've been kinda out of touch with foobar/dbsearch developments. Are you saying you can configure dbsearch to be a panel in foobar? How do you do it? I would love to have it!
and so would I which is why I asked.

This as a main window would certainly be an ultimate. just imagine, having a playlist running (my default running playlist is called "Playing Now" and "Follow Cursor" is set to off. So in my dbsearch 'window/panel' I could be able to just search and press enter to add the found songs onto the end of the cue.

Well that's the end goal anyway.
Title: Database Search
Post by: HiFiRE on 2005-04-08 06:10:49
The download link http://www.stud.uni-karlsruhe.de/~uzbs/fb2...bsearch-1.2.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-1.2.zip) is broken. Is there somewhere else I could pick up this plugin?
Title: Database Search
Post by: foosion on 2005-04-08 06:40:21
Quote
The download link http://www.stud.uni-karlsruhe.de/~uzbs/fb2...bsearch-1.2.zip (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/foo_dbsearch/foo_dbsearch-1.2.zip) is broken. Is there somewhere else I could pick up this plugin?[a href="index.php?act=findpost&pid=289070"][{POST_SNAPBACK}][/a]
It seems like there was a problem with the webserver, but it is working now. Just try to download the component again.
Title: Database Search
Post by: Trigger911 on 2005-08-26 19:29:55
I use this almost every song I play haha. I would love if there was a setting that if u middle click or highlight somthing there it will show in the open playlist if its in there. It just starts getting old right clicking scrolling down to highlight every time. But great app i would realy need love in a database search even with out id still use it.
Title: Database Search
Post by: snoxu on 2005-09-10 00:25:47
Quote
I agree. We need a database search panel which shows the results in the playlist window.
[a href="index.php?act=findpost&pid=260771"][{POST_SNAPBACK}][/a]

I think it would be cool if this and album list were merged into one thingie somehow. I guess it's up to the people making these plug-ins.
Title: Database Search
Post by: Franklin on 2005-09-15 14:42:51
Hello,

If I do a search, how can I play the files directly without adding them to a playlist? This would be great.

Greetings
Franklin
Title: Database Search
Post by: foosion on 2005-09-15 16:23:43
For foobar2000 0.8.3 you need foo_utils and more specifically the "Play" context menu command. For foobar2000 0.9 beta that is not possible.
Title: Database Search
Post by: fabiospark on 2005-10-30 16:25:51
Is there a way to add more commands to the list for the menus?

I'm particularly interested into being able to add custom queries (same performer, same situation, etc) to the context menu with the ability to link them to keyboard shorcuts.

I added my queries in the config page but I can't see them in the command lists for the menu or the keyboard shorcuts.

------------------

Foosion, as I'm programming my remote controle and enhancing it with Girder mainly through keyboard shortcuts. I made some tests in FB directly with the keyboard and found this behaviour:

1 - launch DB Search - same album (with a shortcut)
2 - press tab key to move the cursor from the pattern box to the result list box
3 - select all the lines in the result list (with a "select all" shorcut)
4 - right click on the selection and click on "add to playlist"

Everything worked ok. But, if I used a shortcut to launch the "edit/add to playlist" command, it didn't work. This prevented me to complete a macro in Girder.

After further testing, I've being able to use the "enter" key (or shift+enter or ctrl+enter) and see it work but I had to play around with Girder's "set focus" and "wait" commands and the only way I could close the DB search window was through an "ESC" key.

Am I doing some or many things wrong?


Thanks.
Title: Database Search
Post by: foosion on 2005-10-30 17:38:40
Quote
Is there a way to add more commands to the list for the menus?

I'm particularly interested into being able to add custom queries (same performer, same situation, etc) to the context menu with the ability to link them to keyboard shorcuts.

I added my queries in the config page but I can't see them in the command lists for the menu or the keyboard shorcuts.[a href="index.php?act=findpost&pid=338309"][{POST_SNAPBACK}][/a]

That is only possible in the version for foobar2000 0.9.

Quote
Everything worked ok. But, if I used a shortcut to launch the "edit/add to playlist" command, it didn't work. This prevented me to complete a macro in Girder.[a href="index.php?act=findpost&pid=338309"][{POST_SNAPBACK}][/a]

Congratulations, you have found a bug in one of the oldest parts of the foo_dbsearch code.
The problem is that any keyboard shortcut that involves one of the keys used in the built-in navigation shortcuts of the result list but not Alt will never be triggered. The keys in question are:This will be fixed in the version for foobar2000 0.9 beta 11. As I will most likely not update the version for foobar2000 0.8.3, I suggest using a keyboard shortcut that does not include one of the above keys or that includes Alt on the existing versions.
Title: Database Search
Post by: krazy on 2005-11-01 15:15:32
I believe I've found a small bug:
If you queue up a song in 0.9 b10, bring up dbsearch with default action set to "Play" and double click a song in the search window, it will play the next-queued song instead of the one clicked on.
Title: Database Search
Post by: foosion on 2005-11-01 17:40:29
Quote
I believe I've found a small bug:
If you queue up a song in 0.9 b10, bring up dbsearch with default action set to "Play" and double click a song in the search window, it will play the next-queued song instead of the one clicked on.[a href="index.php?act=findpost&pid=338752"][{POST_SNAPBACK}][/a]

Thanks for reporting. As the "Play" command is implemented in foo_utils, this is actually not a bug in foo_dbsearch. Anyway, a fixed version should be available when (or shortly after) beta 11 goes public.
Title: Database Search
Post by: Seldaek on 2005-11-13 20:23:38
Hi, I was wondering if it would be possible to search "without accents", meaning i would match i & ï & î, e would match e, ê, é, etc. and reversed too, ï matching i.
I ran into a problem earlier today trying to find something which had an ï in it, and I didn't remember, so I noticed this "problem", which I hope will be fixed someday.
Now I guess I can replace all a/e/i/o/u/n by * to fix it but that would not be very convenient I think.
Thank you.
Title: Database Search
Post by: BlindSeer on 2005-11-21 17:24:13
Quote
Hi, I was wondering if it would be possible to search "without accents", meaning i would match i & ï & î, e would match e, ê, é, etc. and reversed too, ï matching i.
I ran into a problem earlier today trying to find something which had an ï in it, and I didn't remember, so I noticed this "problem", which I hope will be fixed someday.
Now I guess I can replace all a/e/i/o/u/n by * to fix it but that would not be very convenient I think.
Thank you.
[a href="index.php?act=findpost&pid=341605"][{POST_SNAPBACK}][/a]

You can replace these characters in the "format preset" search strings using the $replace() function. For example, $replace(%title%,é,e,ö,o) will solve the problem for é and ö in a title search.
Title: Database Search
Post by: onthejazz on 2005-12-10 22:33:33
You mentioned earlier running db_search in version .9, I just did a clean install of the latest beta 12 and then installed db_search 1.20.  I keep getting a utf8 error on startup. Any suggestions?
Title: Database Search
Post by: hunted on 2005-12-10 23:10:56
Quote
You mentioned earlier running db_search in version .9, I just did a clean install of the latest beta 12 and then installed db_search 1.20.  I keep getting a utf8 error on startup. Any suggestions?
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=349253")

Sounds like you are using the dbsearch for 0.8.3, which is 1.2.4, the current version for 0.9 is 1.3.1, available at [a href="http://foosion.foobar2000.org/beta/]http://foosion.foobar2000.org/beta/[/url]
Title: Database Search
Post by: onthejazz on 2005-12-11 00:48:16
Seems like you know something I didn't. 

Thanks.
Title: Database Search
Post by: hunted on 2005-12-11 07:59:15
Quote
Seems like you know something I didn't. 

Thanks.
[a href="index.php?act=findpost&pid=349298"][{POST_SNAPBACK}][/a]

the clue was utf8, that is gone in 0.9
Title: Database Search
Post by: anza on 2005-12-11 09:10:55
Quote
the clue was utf8, that is gone in 0.9
[a href="index.php?act=findpost&pid=349353"][{POST_SNAPBACK}][/a]

Actually foobar still uses utf8 (and always will), only the file utf8api.dll has been changed and renamed to shared.dll.
Title: Database Search
Post by: 33miguel33 on 2005-12-15 03:31:07
Sorry if this has been asked before:

Can I make dbsearch a tab in uie_tabs? If so, how?

thanks.
Title: Database Search
Post by: hunted on 2005-12-30 01:11:44
Quote
Quote
the clue was utf8, that is gone in 0.9
[a href="index.php?act=findpost&pid=349353"][{POST_SNAPBACK}][/a]

Actually foobar still uses utf8 (and always will), only the file utf8api.dll has been changed and renamed to shared.dll.
[a href="index.php?act=findpost&pid=349366"][{POST_SNAPBACK}][/a]

I know there is still utf8, what I meant was I could tell the error he was getting was related to utf8api.dll, which is renamed as you said.

Anyways, one thing I liked more about the version for 0.8, was that the format drop down was a combo box not a drop down list box, so you could just put in something like %__replaygain_album_gain% for those times you were searching something miscelaneous, but didn't want to add a preset for it.  Was there a reason for changing this?
Title: Database Search
Post by: foosion on 2006-01-03 17:45:39
Yes, it annoyed me a lot (and AFAIK some users as well) that you could no longer click anywhere on the format dropdown to show the list of available format, but instead had to aim for the arrow button on the right. In the end, I decided to sacrifice a bit of flexibility for convenience.
Title: Database Search
Post by: simmosn on 2006-04-17 23:40:57
Quote
4) Make this plugin available as a panel for UI Columns. Probably most useful if musicmusic adds support for horizontal panels under the playlist. At least to me as I like to show quite a bit of information for each search results.

It won't happen now, but it might happen later. The reason is that a) the ui_extension API still has some weaknesses considering support for single-instance panels and program control over opening panels, and b) dbsearch IMO requires that there can be at most one (identifiable) instance that can be shown on request. The rationale for the latter is that the "search for same" commands require a designated target window that they can modify. This is really rather a design than an implementation problem.

Has anything changed regarding these issues that makes a media library search panel a possibility?
Title: Database Search
Post by: 4nt1 on 2006-04-18 00:46:40
couldnt the search results just appear as a new playlist as *search results* and display to that ??
Title: Database Search
Post by: Killmaster on 2006-04-18 10:33:23
Is there any way to select and keep the default format when using the search? It keeps on switching every time I use 'Search for Same'. I'd rather be able to set it to search 'all your favorite tags' when invoking the search command, instead of the last searched format.
Title: Database Search
Post by: simmosn on 2006-04-18 10:38:31
My ideal situation would be a panel based search box that displayed all results in a seperate playlist.
Title: Database Search
Post by: Jimbo51 on 2006-04-18 15:53:51
My ideal situation would be a panel based search box that displayed all results in a seperate playlist.


Yes a panel would be fantastic (are you sick of people requesting it yet? ). foo_uie_search worked great for 0.83 so i think it must be possible, i'd love something similar for dbsearch, that sends the results to a playlist entitled with the search term.
Title: Database Search
Post by: simmosn on 2006-04-18 16:24:26

My ideal situation would be a panel based search box that displayed all results in a seperate playlist.


Yes a panel would be fantastic (are you sick of people requesting it yet? ). foo_uie_search worked great for 0.83 so i think it must be possible, i'd love something similar for dbsearch, that sends the results to a playlist entitled with the search term.


I only requested is again because of what I said a couple of posts above. The reasons foosion stated for not having one could have changed with 0.9
Title: Database Search
Post by: Jimbo51 on 2006-04-18 16:32:48


My ideal situation would be a panel based search box that displayed all results in a seperate playlist.


Yes a panel would be fantastic (are you sick of people requesting it yet? ). foo_uie_search worked great for 0.83 so i think it must be possible, i'd love something similar for dbsearch, that sends the results to a playlist entitled with the search term.


I only requested is again because of what I said a couple of posts above. The reasons foosion stated for not having one could have changed with 0.9


I know that, i mean't that many people have requested a panel since the plugin began, it wasn't aimed at you .
Title: Database Search
Post by: picmixer on 2006-04-18 16:36:19
I wouldn't hold my breath for foosion ever to release a panel version of dbsearch.  If anything in that area is gonna happen it will probably have to be some other developer making a seperate component fo this.
Title: Database Search
Post by: simmosn on 2006-04-18 23:34:59
I wouldn't hold my breath for foosion ever to release a panel version of dbsearch.  If anything in that area is gonna happen it will probably have to be some other developer making a seperate component fo this.

Hmmmm, that doesn't sound too promising 

I know that, i mean't that many people have requested a panel since the plugin began, it wasn't aimed at you .

Ah right, I understand now
Title: Database Search
Post by: Seldaek on 2006-04-20 06:27:01
The only one I can see is if you're loading the 0.8.3 plugin into foobar 0.9. And as there is no 0.9 version of this plugin, if that's what you're trying I think you can give up for the time being.

Edit: Damn I thought I was crazy when I just read my post again.. but the reason why this doesn't make any sense is because some posts went away in there (http://www.hydrogenaudio.org/forums/index.php?showtopic=43829). Don't know why mine was left behind, any mod who pass by can simply delete it.
Title: Database Search
Post by: mil3s on 2006-04-25 18:21:26
Here are my thoughts on this really good Media Library search plugin.

First, the stuff I like.
* It's simple to use, finds what you search for and display a list without expandable (treeview) enteries.
* Great options in the Preferences.

What I don't like.
* Toolstyle Window. Normal style please.
* UI elements not spaced properly. To close to each other and the border.
* Statusbar. This is where the search details should be imo. "5 items found. Search took 0.07 seconds."
* Too few options for the doubleclick action. Here is where I would want an option to 'Add To Playlist' or 'Play'.
* 'Search for Same >' shoudn't be at the bottom of the list. That's where the normal rightclick menu is.
* Plugin doesn't respect the option 'Show keyboard shortcut menus'.
Title: Database Search
Post by: Generalverdacht on 2006-04-25 19:49:01
i´d like to have an option to select the selected dbsearch item directly in the playlist, like its done with the playliste search.
Title: Database Search
Post by: foosion on 2006-04-25 22:08:46
* Too few options for the doubleclick action. Here is where I would want an option to 'Add To Playlist' or 'Play'.
Those commands are provided by foo_utils. I do not intend to pointlessly implement them in multiple components.
* 'Search for Same >' shoudn't be at the bottom of the list. That's where the normal rightclick menu is.
I'm not sure what you mean. If this is about the position of the "Search for Same" submenu in the context menu, well, that's what the context menu editor is for.
* Plugin doesn't respect the option 'Show keyboard shortcut menus'.
I'll put it on my to-do.

i´d like to have an option to select the selected dbsearch item directly in the playlist, like its done with the playliste search.
In the context menu of the result list, there is an option "Track focus in playlist". If you activate it, the playlist focus will be set the item that is focused in the result list. To select all tracks in the playlist that are in the result list, first select all results on the use the "Edit/Highlight in Playlist" command from foo_utils.
Title: Database Search
Post by: sPeziFisH on 2006-04-26 20:59:02
..a panel-version (a la foo_uie_dbsearch) would be really usefull - you don't have to close the search-window with each query in the media libary and you don't have to switch between different windows while acting between playlist and search-window - it's more integrated, the way to your music is more comfortable.

Any chance to get a panel-version by you, foosion ? 
Title: Database Search
Post by: foosion on 2006-04-26 21:35:24
No, there will be definitely no panel version from me. Converting the existing code for that purpose would take a lot of effort, and since I wouldn't use a panel version myself at all (it would only waste screen space while I'm not using it, i.e. most of the time), this effort does not seem justified for me.

However, the upcoming release (v1.4) will finally allow all the relevant backend code (data sources, filter modes, background search, even format presets) to be re-used by other components.
Title: Database Search
Post by: Mew on 2006-05-12 06:51:27
I've got a problem when using database search (latest version as far as i know) from the command prompt with foobar2000 0.9.1.

Code: [Select]
%PROGRAMFILES%\foobar2000\foobar2000.exe "/command:database search"

This pops up the "Help/Database Search" instead of "Library/Database Search" which is what I want.

How can I fix this, or is one of the mentioned menu entries in need of a new name?
If that's the case, may I suggest "Database Search Help" or something?

Anyway, LOOOVE the plugin.  Great work!
Title: Database Search
Post by: foosion on 2006-06-02 15:14:13
foo_dbsearch 1.4 beta 2 is available for download from my components page (http://foosion.foobar2000.org/0.9/). Please see the Database Search (http://foosion.foobar2000.org/0.9/#dbsearch) section on this page for details.
Title: Database Search
Post by: roentgen on 2006-06-02 15:34:36
foo_dbsearch 1.4 beta 2 is available for download from my components page (http://foosion.foobar2000.org/0.9/). Please see the Database Search (http://foosion.foobar2000.org/0.9/#dbsearch) section on this page for details.

thanx!
PS: RSS feeds on your page don't seem to work properly (using opera 9 beta 2 as rss reader)
Title: Database Search
Post by: foosion on 2006-06-02 15:44:04
PS: RSS feeds on your page don't seem to work properly (using opera 9 beta 2 as rss reader)
Could you tell exactly what doesn't seem to work properly?
Title: Database Search
Post by: roentgen on 2006-06-02 15:58:51
PS: RSS feeds on your page don't seem to work properly (using opera 9 beta 2 as rss reader)
Could you tell exactly what doesn't seem to work properly?


some screenshots might help better

(http://img101.imageshack.us/img101/4781/rsserr012gs.th.jpg) (http://img101.imageshack.us/my.php?image=rsserr012gs.jpg)
(http://img101.imageshack.us/img101/804/rsserr021fo.th.jpg) (http://img101.imageshack.us/my.php?image=rsserr021fo.jpg)

there should be an address at the end of the feed
the latest feed with foo_dbsearch 1.4 beta 2 does not show up
Title: Database Search
Post by: foosion on 2006-06-02 16:07:43
Ah, okay. Some components do not have a proper description (in the feed) at the moment, and foo_dbsearch 1.4 beta is not contained in there at all.
Title: Database Search
Post by: sPeziFisH on 2006-06-02 22:39:57
I really like foo_dbsearch, thanks foosion for the update !

I found the following things to optimize:

foo_dbsearch:

Typo at:  search dialog > Finding-Mode ('Find all words','Find any word' etc.):

'fnid parshe' --> 'find parshe'  or 'find parse' , don't know

BTW Can you give an explanation about this mode (ok, I guess, you'll update the online-help if there's time)

foo_dbsearch-Demo-Toolbar:

I've got  the demo-toolbar within a horizontal splitter and resizing of any toolbar is nearly impossible, there's heavy flickering (even though it is thought as an API-demo)

  NEMO7538's should add your 'by typing'-behaviour (or should change to the dbsearch_API at all, if there are advantages), than we would have the ultimate search-toolbar.

foo_dbsearch 1.4beta 2, foobar 0.9.2beta4 & ColumnsUI 0.1.3 beta 1v5 here.
Title: Database Search
Post by: foosion on 2006-06-02 23:37:08
'fnid parshe' --> 'find parshe'  or 'find parse' , don't know

BTW Can you give an explanation about this mode (ok, I guess, you'll update the online-help if there's time)
As I've said before (even in this thread, I think), this is somewhat of an easteregg. You'll have to reorder the letters get the real name, and that is more or less what this mode does as well. If this is still to cryptic, well, I plan to update the help file tomorrow.

I've got  the demo-toolbar within a horizontal splitter and resizing of any toolbar is nearly impossible, there's heavy flickering (even though it is thought as an API-demo)
Well, yes, it is only an API demo, and no, I haven't tested it anywhere except in the toolbar area.
Title: Database Search
Post by: 4nt1 on 2006-06-03 09:07:43
should it be find phrase
yay for blues clues
Title: Database Search
Post by: fabiospark on 2006-06-03 21:55:39
should it be find phrase
yay for blues clues


Curiously, searching for "tmie" gives the same results as searching for its anagram "time" (titles with "time" or with "*time*").
Title: Database Search
Post by: foosion on 2006-06-04 14:20:14
foo_dbsearch 1.4 beta 3 is available for download from my components page.

This version adds the "Query" filter mode which allows you to use playlist generator query syntax. There are some minor fixes and API changes as well, so if you use the toolbar demo, please update that as well. Also, the online help has been updated. The descriptions of the word based search modes are still missing; I plan to add them later today.
Title: Database Search
Post by: Infernus on 2006-06-04 15:38:17
Hi,
I miss an option in the "format presets - search for the same" preferences dialoge.
Something like a option to select the format pattern.
Example:
Up to now "search for the same artist" uses format: artist only
But sometimes it would be really useful to use "search for the same artist" with the "all your favourite tags" format to find e.g. not only "vitalic" as artist but also "...vitalic remix" in title tag.

Is this something for 1.4 final?
Title: Database Search
Post by: fabiospark on 2006-06-04 20:35:38
After a search with the demo toolbar, it seems I can't delete the 'Database search results' playlist.
Title: Database Search
Post by: foosion on 2006-06-07 21:17:37
Hi,
I miss an option in the "format presets - search for the same" preferences dialoge.
Something like a option to select the format pattern.
Example:
Up to now "search for the same artist" uses format: artist only
But sometimes it would be really useful to use "search for the same artist" with the "all your favourite tags" format to find e.g. not only "vitalic" as artist but also "...vitalic remix" in title tag.

Is this something for 1.4 final?
If I understand you correctly, you want two formatting scripts for each format preset: one that is used in the search window as it is now, and a second one that is used by "Search for Same" to generate the pattern. I have not decided yet, if I will add this.

As a workaround, you could use the Query mode introduced in the latest beta. If you use the standard Artist preset with the Query mode, you will get all tracks that contain the name of the selected artist in any tag. If you want to search only the ARTIST and TITLE fields for the artist's name, you could set a new preset with the following script:
Code: [Select]
artist IS "%artist%" OR title IS "%artist%"
Since the Query mode does not use the format from the preset, but "Search for Same" generates the pattern using it, you will get a query in the pattern where the actual artist name is inserted.

Note that the choice of the filter mode is shared for all format presets with "Search for Same".

After a search with the demo toolbar, it seems I can't delete the 'Database search results' playlist.
This is an intended effect for the demo toolbar; the result playlist will be removed when you remove the toolbar. I was testing the ability to prevent the deletion of a playlist with a playlist lock. I probably won't bother to remove this for the demo toolbar, but there might be a more polished, non-demo version of it in the future.
Title: Database Search
Post by: Infernus on 2006-06-08 14:45:35
...didn't get the workaround working. Maybe you understand me better when you take a look at my photo assembly

http://img86.imageshack.us/img86/12/snag00028qy.jpg (http://img86.imageshack.us/img86/12/snag00028qy.jpg)
Title: Database Search
Post by: foosion on 2006-06-08 16:32:40
Try this: Set the filter mode to "Query" in the Search for Same settings. You will not be able to restrict the search to a given set of fields; instead it will search all metadata fields. It might also yield weird or no results, if the generated pattern contains elements that have special meaning in the query syntax, but otherwise this should do pretty much what you want.
Title: Database Search
Post by: Infernus on 2006-06-08 20:26:22
Great, I got it worked!
This Query does exactly what I wanted
Code: [Select]
artist IS "%artist%" OR title HAS "%artist%"


But I'm not able to set filter mode to "Query" in Search For The Same settings of beta3 
Title: Database Search
Post by: foosion on 2006-06-08 20:52:11
But I'm not able to set filter mode to "Query" in Search For The Same settings of beta3 
My bad. Search for Same offers only filter modes that use both the format and the pattern fields. I will change that for beta 4.
Title: Database Search
Post by: morishani on 2006-06-09 14:58:59
Database search toolbar isn't working for me 
Working with columnsUI.
ok, so i installed the database search and database search toolbar interface.
The normal database search works just fine,
but when i search with the toolbar it dosen't show results in the playlist (clear playlist)

foobar 0.9.2, db search 1.4 beta 3

Any ideas?
Title: Database Search
Post by: foosion on 2006-06-12 01:26:36
foo_dbsearch 1.4 beta 4 is now available for download. Search for Same does no longer require a filter mode that uses the format preset and the pattern, now one of them is enough, so it now is possible to use the Query mode with Search for Same. Some minor changes in "Find all words", "Find any word", and "Find most words". Finally, the online help has been updated with descriptions of all included filter modes.

Any ideas?
Unfortunately not.
Title: Database Search
Post by: Insolent on 2006-06-13 04:47:13
Is it possible to implement Play as the "Default Action" without having to have foo_utils installed?
Title: Database Search
Post by: foosion on 2006-06-13 09:03:04
In theory yes, but there are enough reasons for not doing it.
Title: Database Search
Post by: Insolent on 2006-06-13 12:59:18
In theory yes, but there are enough reasons for not doing it.

...such as?
Title: Database Search
Post by: foosion on 2006-06-13 14:02:41
Duplicating code: the implementation of the "Play" command is not horribly complicated, but it's not a one-liner either.

Complicating code: Every part of foo_dbsearch that deals with this would need an extra code path to distuingish between built-in commands and regular context menu commands.

I like to spend my time more productively than that.
Title: Database Search
Post by: frankthechicken on 2006-06-13 19:08:40
Apologies if this has been requested before, is it possible to show the entire contents of the database (or playlist dependant on context/choice) when the search is blank (i.e when nothing has been typed, or everything deleted)?  Alternatively it would be nice to have a button to show all songs in the database (or playlist dependant on context/choice).

Otherwise this is an excellent plug-in.
Title: Database Search
Post by: foosion on 2006-06-13 19:16:44
Just change to the "All items" filter mode.
Title: Database Search
Post by: jkwarras on 2006-06-13 19:52:13
Hi foosion,

Just one question, it's possible to autosend the generated search results in a playlist (like quick search toolbar)? I really like the fact that you can setup custom search in your plugin under the query mode, which brings a lot of possibilities, and it'll be great if the results could be sent automatically to a new playlist.

Thanks.
Title: Database Search
Post by: foosion on 2006-06-13 20:04:42
I do not intend to add such an option. You can use Ctrl-Return to invoke the standard "Send to playlist..." command on all results; this also works in the pattern field (see Database Search Help (http://foosion.foobar2000.org/help/0.9/foo_dbsearch-1.4-help.html#dialog_keyboard)).
Title: Database Search
Post by: frankthechicken on 2006-06-13 21:39:26
Just change to the "All items" filter mode.


I take it this was aimed at myself regarding leaving a blank space to gain the full database being shown, I guess you mean in the preferences for Database Search, under the Format Presets changing the "using the . . . mode" to an option, unfortunately I have tried all these options with the results being a blank playlist if the search criteria is blank. 

I'm using 1.4 beta 4, oh and this is regarding using the database toolbar demo, just noticed you meant the non-toolbar option, apologies for not making myself clear initially.
Title: Database Search
Post by: fabiospark on 2006-06-13 21:45:55

Just change to the "All items" filter mode.


I take it this was aimed at myself regarding leaving a blank space to gain the full database being shown, I guess you mean in the preferences for Database Search, under the Format Presets changing the "using the . . . mode" to an option, unfortunately I have tried all these options with the results being a blank playlist if the search criteria is blank. 

I'm using 1.4 beta 4, oh and this is regarding using the database toolbar demo, just noticed you meant the non-toolbar option, apologies for not making myself clear initially.

With the normal database search (not the toolbar demo) you can choose 'All items' without having to go to the preferences page.
Title: Database Search
Post by: foosion on 2006-06-13 21:50:01
The toolbar demo has no option to select the filter mode or the data source. It alwas searches the media library using the "Find all words" filter. The only part of the Database Search preferences that has any effect on it, is the format presets tab (without the Search for Same options).
Title: Database Search
Post by: frankthechicken on 2006-06-13 21:53:00
Apologies again, I should have read more thoroughly the release notes, ignore all I've said, though it would be nice to have a blank search on the toolbar to show the entire database.

And thanks for the quick replies.
Title: Database Search
Post by: jkwarras on 2006-06-13 22:55:46
I do not intend to add such an option.

 

You can use Ctrl-Return to invoke the standard "Send to playlist..." command on all results; this also works in the pattern field (see Database Search Help (http://foosion.foobar2000.org/help/0.9/foo_dbsearch-1.4-help.html#dialog_keyboard)).

Thanks for the tip, that's a quick way to get a new playlist from the results.
Title: Database Search
Post by: topdownjimmy on 2006-06-14 00:11:10
Foosion, thanks for continued development on this component.  I was wondering if you'd consider adding a "Find n Words" option, where n is a user-specified number of words.
Title: Database Search
Post by: loco on 2006-06-18 17:49:46
database search toolbar is a really great plug-in.. i used it the first time and were impressed by the speed-up of the workflow.. thx to foosion.. ok enough of the good words, i'll come to the point of my posting 

Quote
Searches the media library using the "Find all words" filter and displays results in a playlist.

there is one problem.. when this playlist is active and i double click on a file in windows to play that it would not be added to foobar.. i think it's caused of the write protection of the search-result-playlist..
i also can not close this playlist..

why is this playlist read-only? that makes no sense to me because you can quickly get the search results one more time, when you use this toolbar

just my 2c (sorry for my bad english)
Title: Database Search
Post by: foosion on 2006-06-18 21:50:29
The primary purpose of the demo toolbar is to demonstrate the use of the Database Search programming interface. In order to not obscure that too much, I have omitted some polishing you would expect from a regular plugin, and I also added some rather experimental features like not being able to remove the result playlist without removing the toolbar. The write protection on the other hand is deliberate. You would have the same problem, if the current playlist was an autoplaylist. The general solution would be to have incoming files always sent to a playlist of your choice (see the General page in preferences).
Title: Database Search
Post by: loco on 2006-06-18 23:40:58
The general solution would be to have incoming files always sent to a playlist of your choice (see the General page in preferences).

oh thx i always overlooked this option.. but this fits my needs very well
keep on your good work foosion^^
Title: Database Search
Post by: Fabien on 2006-07-15 11:26:21
Is it possible to display list results on a VFD or write it in file (with use of text writer component) ?

My need is to search audio files through my VFD and not to switch on my Plasma for that.

Regards
Fabien
Title: Database Search
Post by: foosion on 2006-07-15 12:57:56
You can move the search window to any monitor that belongs to your Windows desktop, but I do not plan to support exotic display devices.
Title: Database Search
Post by: sPeziFisH on 2006-07-22 10:15:35
This is only cometic, but shouldn't 'database search (foo_dbsearch)' be renamed to 'media library search (e.g. foo_mlsearch)' with introducing the 1.4 final component.
I know that the search-window itsself still displays media library, so this is minor, even though the component is well known under its current name.
Just a thought, as I still saw the confusion about 'database' and 'media library' in this (http://www.hydrogenaudio.org/forums/index.php?showtopic=46737) thread , and changing the name would generally be consequent     

edit: typo
Title: Database Search
Post by: foosion on 2006-07-24 11:06:20
I know that the search-window itsself still displays media library, so this is minor, even though the component is well known under its current name.
That was the final reason why I did not change the name as of yet. I've thought about it during the 0.9 beta cycle already. I considered various names back then; foo_mlsearch or "Media Library Search" being one of them, though I didn't quite like that it describes only a part of the functionaliy. (Yes, "foo_dbsearch" has the same issue.)
Title: Database Search
Post by: kopf on 2007-07-13 17:34:42
Could someone tell me if it's possible to put two database search boxes in the foobar dialog box, each controlling their own playlist?
Title: Database Search
Post by: foosion on 2007-07-13 18:22:18
No, that is not possible.
Title: Database Search
Post by: otawa on 2007-08-26 14:15:06
Thanks for the great plugin.

foosion, would you please release Database Search SDK for foo_dbsearch v1.4?
Title: Database Search
Post by: halabund on 2007-09-02 08:51:08
It impossible to play a song directly from the Database Search window (and set Play as default action).  Would it be possible to add this feature?
Title: Database Search
Post by: kanak on 2007-09-02 14:51:01
It impossible to play a song directly from the Database Search window (and set Play as default action).  Would it be possible to add this feature?


you CAN change the default action. Go to preferences -> Database search -> Other -> Shortcut Commands. Under "Default Action", select Play.
Title: Database Search
Post by: halabund on 2007-09-02 19:53:32
you CAN change the default action. Go to preferences -> Database search -> Other -> Shortcut Commands. Under "Default Action", select Play.
Thanks for the reply, but "Play" just isn't listed for me ... I don't know why
Title: Database Search
Post by: Insolent on 2007-09-03 11:38:07
you CAN change the default action. Go to preferences -> Database search -> Other -> Shortcut Commands. Under "Default Action", select Play.
Thanks for the reply, but "Play" just isn't listed for me ... I don't know why

AFAIK, you need to have foo_utils installed as well. That's the only thing stopping me from using this component, is that I need to install another component I wouldn't even use just to get 'Play' functionality.
Title: Database Search
Post by: foosion on 2007-09-03 12:22:27
AFAIK, you need to have foo_utils installed as well. That's the only thing stopping me from using this component, is that I need to install another component I wouldn't even use just to get 'Play' functionality.

That is correct, the Play context menu command is implemented in foo_utils. I have zero intentions to duplicate this code in any form.

Edit:
It impossible to play a song directly from the Database Search window (and set Play as default action).  Would it be possible to add this feature?

This question is answered in the FAQ section of the Database Search help which is accessible from the Help menu. Please check the documentation first next time.
Title: Database Search
Post by: q-stankovic on 2007-10-12 17:15:45
Hello Foosion!

I would like to ask for an improvement concerning the "search for same" functionality. In the preferences of database search you have opportunity to set wich search mode is choosen by default when the search is invoked from context menu. In many cases it is ok to have the "find exact" mode but often enough i need another one: "find prefix" when i like to look for same title (in other versions) or "find all" when i am searching for same mood (i use "$meta_sep(%mood%, )" to fill the pattern field). And since we can use Query as search mode it is no wonder that i already have some of them as search mode.

Now my question: it is annoying always to remember wich search mode i defined for a special format and then to switch manually to it. Would you consider to change that in that sense that we can define the search mode for each format independently? Addionally to that it would be nice to have an option that formats wich are using the Query mode for searching are not shown in the format drop down box - i can't imagine that somebody would use them.



By the way: i discovered two smaller issues.
1. If the text in the pattern field is to long i can't scroll with cursor to the end - i must make the windowsize greater to see the rest
2. The entries in contextmenu aren't sorted correctly by alphabet
Title: Database Search
Post by: foosion on 2007-10-12 23:43:49
Now my question: it is annoying always to remember wich search mode i defined for a special format and then to switch manually to it. Would you consider to change that in that sense that we can define the search mode for each format independently? Addionally to that it would be nice to have an option that formats wich are using the Query mode for searching are not shown in the format drop down box - i can't imagine that somebody would use them.
To be honest, I do not particularly like how the "Search for same" function works and how it is configured, especially since the Query mode was added. There are some fundamental differences between this mode and the older ones which leads to some conflicts. For example, consider the absurdity of defining format presets for use with the query mode all the while this mode does not even use format presets - it's only for use with "Search for same"! So my preferred solution would be to separate the configuration for the "Search for same" items from the format presets.

Added to the todo list; priority: definitely after 0.9.5.

1. If the text in the pattern field is to long i can't scroll with cursor to the end - i must make the windowsize greater to see the rest
It seems the edit field of a combobox has some restrictions. As far as I can see, the only solution would be to turn this into a regular edit field, so there would be no history of previously used patterns.
Forget that. I'm to tired to see the obvious.

2. The entries in contextmenu aren't sorted correctly by alphabet
Thanks for pointing this out. Added to the todo list. Little work but low priority.
Title: Database Search
Post by: q-stankovic on 2007-10-14 20:29:11
So my preferred solution would be to separate the configuration for the "Search for same" items from the format presets.


That would mean that the "search for same" then will only use queries?
Title: Database Search
Post by: foosion on 2007-10-15 09:53:15
No, it would simply mean that "Search for same" and format presets would be configured separately.
Title: Database Search
Post by: Fangs404 on 2007-12-11 21:10:29
Is there any chance this will be updated to enable embedding in the main window?  I love this plugin, and it'd be really neat if I could just add it as another component in the main window.
Title: Database Search
Post by: foosion on 2007-12-12 10:15:20
Maybe, maybe not. Definitely not any time soon.
Title: Database Search
Post by: NullString on 2007-12-13 18:28:19
This is a great component and already is very configurable, but just wanted to ask if it will incorporate the UI of the 0.9.5 beta, I mean using the color theme of the whole UI, grouping the search results, and stuff like that.
Title: Database Search
Post by: foosion on 2007-12-14 09:33:10
When (and if) it will be possible to embed the database search window in the Default UI, it will also use the common font and color configuration. As for grouping, this feature is not available through the SDK, it is internal to the Default UI.
Title: Database Search
Post by: q-stankovic on 2007-12-15 18:30:15
No, it would simply mean that "Search for same" and format presets would be configured separately.

Hello foosion,
i just would like to mention when doing so it would make sense to change the name of context menu entry from "Search for same" to "Search for": the rest could then be part of the presets name. It is more natural language to search for:

-similar artists
-same album
-other albums of the same artist
-appearences of the artist on compilations
and so on...


(By the way! There is a little but annoying usability issue with foo_random: when choosing a query preset from the dropdown list you can't access the OK button as long as you don't add a space sign(f.e) to the query text)

And yes, it would be wonderful to see somedays Database Search as Ui-element.
Title: Database Search
Post by: KungFuZius on 2008-01-18 08:35:54
Hi,

I really appreciate this plugin. But I found a bug that is somehow strange and I don't know if it is a Database Search Plugin bug or a bug of the new Foobar version 0.9.5 or the interaction between them.

The Bug:

"Add to Playback Queue" does not work with Hotkeys (neither global nor local) in the search result box (since foobar 0.9.5 beta versions (???)).

Explanation:

I've always used the global hotkey ctrl+alt+j to open the search dialogue and the local hotkey q to add a search result to the playback queue. But instead of adding the search result to the playback queue the current playing song is added to the playback queue.

My workaround:

Use "Add to playback Queue" as default action. Then everything is fine.

So long
KungFuZius
Title: Database Search
Post by: foosion on 2008-01-18 08:58:56
Have you checked what the "Q" shortcut is bound to after upgrading to 0.9.5?
Title: Database Search
Post by: 2E7AH on 2008-07-14 13:10:54
well, that OSX icon in Database Search Demo toolbar just fits my needs, and the options for searching is just too great.

for example talking about some unicode filenames & tags, it points that this is the only plugin that can do it (+ not restrected to only media library):

configuring tags to for ex. $ascii(%artist%) gives the chance for some searces like "Šarlo Akrobata" to get results just by typing "Sarlo" without the need for some keyboard arrangements

the examples are probably endless just like your ideas to search

great plugin, thank you foosion
Title: Database Search
Post by: Onkel Andy on 2008-09-04 01:43:03
This one is really cool and powerful. How good are the chances of getting a panel-version of that plugin for ColumnsUI?
Title: Database Search
Post by: foosion on 2008-09-04 09:19:26
About the same as the chances of a UI element version for the Default UI: zero.
Title: Database Search
Post by: halabund on 2008-12-28 00:49:19
Foosion, do you plan to update this component so search will work regardless of diacritics (i.e. ö and o considered the same)?
Title: Database Search
Post by: Schuft on 2008-12-30 09:46:29
well, that OSX icon in Database Search Demo toolbar just fits my needs, and the options for searching is just too great.

for example talking about some unicode filenames & tags, it points that this is the only plugin that can do it (+ not restrected to only media library):

configuring tags to for ex. $ascii(%artist%) gives the chance for some searces like "Šarlo Akrobata" to get results just by typing "Sarlo" without the need for some keyboard arrangements

the examples are probably endless just like your ideas to search

great plugin, thank you foosion



Hey 2E7AH,
how do you do this? I tried to alter my search string in this way with $ascii(%album%) but it do not work.
Example: I've got the song:

[blockquote]%artist% - %album% - %title%
Sigur Rós - Ágætis Byrjun - Viðrar Vel Til Loftárása[/blockquote]

If I alter my search string from  [$meta(album)] to [$meta($ascii(%album%))] or [$ascii($meta(album))]  I just do not find the album "Ágætis Byrjun" if I type "Agaetis".
Where is my fault?
Title: Database Search
Post by: 2E7AH on 2008-12-30 10:01:26
$ascii($meta(album)) should work, but others not (you have to put $ascii in front of the metadata)

better try:

$ascii(%album%)

but latest foobar version have this ability - to parse search string with accented latin characters

EDIT: hey, you are right!

the latest version doesn't work, but 0.9.6 works OK

so, maybe foosion will do something about it
Title: Database Search
Post by: Schuft on 2008-12-30 11:09:30
Hey 2E7AH,

it doesn't works with 0.9.6 / 0.9.6.1b2 for me.

I thing the ability to parse search string with accented latin characters applies only to the build in Media Library Search.

Here you see, that all the other songs of the album Ágætis Byrjun are not displayed (only the title named Agaetls).. 

screenshot (http://schuft69.gmxhome.de/3.JPG)

Am I doing it wrong?

Moderation: Please do not inline images larger than roughly 800x600 and 80KB. Please use thumbnails and/or links for large pictures instead.
Title: Database Search
Post by: 2E7AH on 2008-12-30 11:42:17
hey again

i probably made a mistake

i haven't used it for some time

you'll need to search using Query, and it works fine in latest foobar version

(http://img81.imageshack.us/img81/1383/34121882nh3.th.png) (http://img81.imageshack.us/my.php?image=34121882nh3.png)

sorry for misleading
Title: Database Search
Post by: Schuft on 2008-12-31 11:07:08
Hey again,

no problem! :-)
I've tried it in several ways again, but with my foobar, it doesn't work :-/


I renamed a song to "Šarlo Akrobata", to reproduce your search..

screenshot 1 (http://schuft69.gmxhome.de/5.JPG)

screenshot 2 (http://schuft69.gmxhome.de/4.JPG)

Could it be some kind if incompatibility?

These are my components:

Code: [Select]
Core (2008-12-23 14:17:14)
    foobar2000 core 0.9.6.1 beta 2
foo_albumlist.dll (2008-12-22 21:06:20)
    Album List 4.3
foo_audioscrobbler.dll (2008-03-09 19:08:02)
    Audioscrobbler 1.3.16
foo_cdda.dll (2008-12-11 23:36:36)
    CD Audio Decoder 2.1.4
foo_converter.dll (2008-12-11 23:36:36)
    Converter 1.2
foo_dbsearch.dll (2007-01-25 20:58:48)
    Database Search 1.4
foo_dsp_std.dll (2008-12-11 23:36:40)
    Standard DSP Array 1.0
foo_facets.dll (2008-12-04 11:55:31)
    Facets 2008-02-25
foo_fileops.dll (2008-12-11 23:36:30)
    File Operations 2.1.1
foo_highlightplaying.dll (2006-08-13 19:57:05)
    Highlight playing 0.1.0
foo_input_std.dll (2008-12-11 23:37:08)
    Standard Input Array 1.0
foo_lastfm_radio.dll (2008-10-11 07:12:14)
    Last.fm Radio 0.4.2
foo_masstag.dll (2008-11-29 20:46:18)
    Masstagger 1.7.1
foo_playcount.dll (2008-11-13 11:04:28)
    Playback Statistics 2.1.7
foo_pqview.dll (2008-03-11 18:02:54)
    Playback Queue Viewer 0.2
foo_prettypop.dll (2008-12-01 19:48:22)
    Pretty Popup 1.2.4
foo_rgscan.dll (2008-11-13 20:08:54)
    ReplayGain Scanner 2.0.8
foo_run.dll (2008-01-17 19:32:42)
    Run services 0.3.4
foo_sendtodevice.dll (2007-11-28 10:13:46)
    Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
foo_ui_std.dll (2008-12-12 22:05:28)
    Default User Interface 0.9.5
foo_vis_shpeck.dll (2008-12-04 11:06:41)
    Shpeck - Winamp vis plugins wrapper 0.3.0



A happy new year to all of you :-)

Moderation: Replaced large inline images with links.
Title: Database Search
Post by: 2E7AH on 2008-12-31 13:54:45


well, that is strange

have you tried "Gron" for Grönemeyer?
(http://img227.imageshack.us/img227/5576/95440476le4.th.png) (http://img227.imageshack.us/my.php?image=95440476le4.png)

also my filenames are ascii (ansi), no unicode chars (in case that be the glitch)

and what is your need from this component: to be able to search in all playlists?
Title: Database Search
Post by: Schuft on 2009-01-01 17:01:40
Hey again and a happy new year!

I found a way to make it work for me:

Code: [Select]
[$ascii(%artist%)]|[$meta(artist)]



If I chose only one of them, I always only get results with or without accented characters.
so my "All your favorite tags" now look like:
Code: [Select]
[$meta(artist)]|[$ascii(%artist%)]|[$meta(album)]|[$ascii(%album%)]|[$meta(title)]|[$ascii(%title%)]|[$meta(comment)]|[$ascii(%comment%)]|[$meta(date)]


Thanks for help!
Title: Database Search
Post by: 2E7AH on 2009-01-02 00:00:26
hey Schuft, happy new year to you too

you always find some way to do it, like the one for multiple value tagging
Title: Database Search
Post by: Tobias Conradi on 2009-02-14 17:59:39
I didn't find the component that creates the UI Playlist View. What I ask may be either good to ask there or here.

I am looking for something that gives me search fields directly in the playlist. First row are the fieldnames as it is now, 2nd row would have input boxes and the next rows would display the results. At the end, this would function as filtering on several fields.
Title: Database Search
Post by: ojdo on 2009-02-14 18:09:21
I am looking for something that gives me search fields directly in the playlist. First row are the fieldnames as it is now, 2nd row would have input boxes and the next rows would display the results. At the end, this would function as filtering on several fields.


If you are using the default UI, foo_facets is capable nearly exactly what you want. The only "drawback" is that the results would not show up in a playlist but in a facets view.

Or: Have you already tried the "Media Library Search" UI Element?
Title: Database Search
Post by: Tobias Conradi on 2009-02-14 19:29:55
Have you already tried the "Media Library Search" UI Element?

Yes, and it is now replaced it with foo_facets, thank you! :-) Field specific search boxes still would be better, combined with drop downs like in Excel ;-)
Title: Database Search
Post by: 2E7AH on 2009-03-31 16:12:55
when i try to put database_search_demo toolbar as panel, it show only at fixed dimension and cannot be resized and also forces other panels at that size like shown:
(http://img106.imageshack.us/img106/5929/18941014.png)
in toolbar it works ok
other toolbar panels don't behave like this, they work correcly if put as panels outside the toolbars
also if i put database_search_demo in dockable panels it shows correctly
so i don't know if it is something with this component or with columns ui?
same on vista and xp
Title: Database Search
Post by: 2E7AH on 2009-11-06 10:42:58
I didn't expect that I'll see my post as last here  I use it as standard toolbar now

OK, don't know if this component is developed any more, but thought to ask something:
"Search for same..." context menu entry is activated only when one item is selected, but can it become dynamical?
For example:
- I have selected artist in filter or facet or just multiple playlist items that have same artist - in this case "Search for same > Artist" should be available (and maybe also entry "more..." with filtered entries in dropdown)
- or I have selected some items that share same album and date - so that this entries should be available

It can extend it functionality in playlist view, but mainly I think as new function in all media library views.
Title: Database Search
Post by: q-stankovic on 2009-11-06 20:34:44
- I have selected artist in filter or facet or just multiple playlist items that have same artist - in this case "Search for same > Artist" should be available


The query used for a certain search could also be used as grouping pattern: so if the selection contains just one group then a senseful search could be performed. I can't estimate if filtering context menu items is technically feasible when you have many search presets - i could live with a small popup-window that tells me that a search is not possible because the selections contains more than one group.


It can extend it functionality in playlist view, but mainly I think as new function in all media library views.


I also suggested multiple selection for database search but also had an idea to show results in a uielement/panel (without using context menu but an selection info viewer that automatically changes it s content when you change the selection): look here (http://www.hydrogenaudio.org/forums/index.php?showtopic=67741)
Title: Database Search
Post by: D260 on 2009-11-07 19:29:35
Is there a way to integrate this into the default foobar2k ui? I'm looking for a search plugin able to do this. Sorry if that was already mentioned.
Title: Database Search
Post by: foosion on 2009-11-09 20:14:08
I have barely enough time for bug fixes of my foobar2000 component, so new features are out of the question.
Title: Database Search
Post by: 2E7AH on 2010-02-23 05:11:02
I've changed my windows color settings for "window item" to grey:
(http://img641.imageshack.us/img641/9875/sshot1x.png)
i.e. playlist dropdown toolbar got it but db_search has it's own white color set and only icon bg gets setting from my windows color settings

I edited foo_dbsearch_api_demo.dll but don't know to which control should I change WS_EX_TOOLWINDOW or how to change it style so that it accept window color
Any tips?
Title: Database Search
Post by: foosion on 2010-02-23 21:01:06
Do standard edit controls have a grey background in your Windows theme? Forget about WS_EX_TOOLWINDOW, that approach is completely wrong.
Title: Database Search
Post by: 2E7AH on 2010-02-24 08:03:33
CUI's typefind got the color, although it's input control
others no, of course, they are white too. i thought that there is some easy solution
i've changed playlist dropdown bg to white
Title: Database Search
Post by: foosion on 2010-02-24 17:42:18
It seems that typefind is completely custom-drawn and does not use Windows themes. The Database Search API demo bar on the other hand only uses custom drawing (without support for Windows themes) for the icon within the edit control, the rest of the control is drawn by Windows (with support for Windows themes, of couse).
Title: Database Search
Post by: 2E7AH on 2010-02-24 18:16:14
it seems also that foobar search input boxes take "window" color as it background, thou resource editor won't do it, as you said
Title: Database Search
Post by: Krushr` on 2010-03-08 13:11:55
Is there a way to sort 'Find Most Words' results by the number of word matches?
Title: Database Search
Post by: foosion on 2010-03-10 18:47:47
Krushr: I'd have to look at the source code to be sure. The documentation (http://foosion.foobar2000.org/help/0.9/foo_dbsearch-1.4-help.html) doesn't mention anything, and considering that I've always tried to keep this component well-document, that probably means no.
Title: Database Search
Post by: Scyld on 2010-08-31 23:12:21
Any chance you could upload the source for this again?  The links from earlier on in the thread no longer work.
Title: Database Search
Post by: nickdc on 2010-12-22 09:53:08
I've changed my windows color settings for "window item" to grey:
(http://img641.imageshack.us/img641/9875/sshot1x.png)
i.e. playlist dropdown toolbar got it but db_search has it's own white color set and only icon bg gets setting from my windows color settings

I edited foo_dbsearch_api_demo.dll but don't know to which control should I change WS_EX_TOOLWINDOW or how to change it style so that it accept window color
Any tips?

same problem here
http://img6.imageshack.us/img6/7227/catturazr.jpg (http://img6.imageshack.us/img6/7227/catturazr.jpg)
just changed colors and font in "display" tab in foobar preferences, but nothing is changed...any help?
Title: Database Search
Post by: lender1257 on 2013-01-11 16:57:46
@foosion:

any chance to make this plugin resizeable ?

thx
Title: Database Search
Post by: foosion on 2013-01-12 09:55:05
Does resizing the search window not work for you?
Title: Database Search
Post by: lender1257 on 2013-01-12 10:59:29
what i miss is scrolling (left/right)
Title: Database Search
Post by: foosion on 2013-01-14 19:08:23
Sorry, but I won't add that.
Title: Database Search
Post by: HHHHH on 2014-11-14 04:42:59
I'm wondering how to search the content of a field into another one. Typically, I have a MOOD field and a MOODEND field. I would like to search into the MOOD field of all tracks that match the MOODEND field of a certain track. Would that be possible with foo_dbsearch? Thanks!!!!
Title: Database Search
Post by: HHHHH on 2014-11-14 05:03:31
Also, when I try to use the '<' (less-than sign) or '>' (greater-than sign) operators with a text field (ex: %mood%>H3), it doesn't work... I thought the sorting order was lexicographical, that is it compared two texts character by character, Is it not the case anymore or am I just not typing the fuction correctly? Thanks again!
Title: Database Search
Post by: foosion on 2014-11-14 23:04:10
Go to the "Database Search" preferences page (in the "Media Library" section). Choose the "Format Presets" tab. Click the "Add..." button to add a new preset. Set the name to "Next Mood" or whatever you like. Set the format to the following code:
Code: [Select]
%%mood%% IS "%moodend%"
Click OK, then click the checkbox of the new preset. Finally set the parameters in the "Search for same" section to "Search in [Media Library] using the [Query] mode." This will give you a "Search for Same/Next Mood" command in the context menu which should do what you want.

Regarding your second question: I faintly remember that some old version of foo_dbsearch supported a query syntax with the > and < operators (and some other funky features). However this syntax is not supported in the current version.
Title: Database Search
Post by: HHHHH on 2014-11-16 12:06:45
Go to the "Database Search" preferences page (in the "Media Library" section). Choose the "Format Presets" tab. Click the "Add..." button to add a new preset. Set the name to "Next Mood" or whatever you like. Set the format to the following code:
Code: [Select]
%%mood%% IS "%moodend%"
Click OK, then click the checkbox of the new preset. Finally set the parameters in the "Search for same" section to "Search in [Media Library] using the [Query] mode." This will give you a "Search for Same/Next Mood" command in the context menu which should do what you want.

Regarding your second question: I faintly remember that some old version of foo_dbsearch supported a query syntax with the > and < operators (and some other funky features). However this syntax is not supported in the current version.

Wow, wonderful! Thanks Foosion, works great indeed! It's a very smart way of doing this, thank you so much for sharing it with me. 
I'm wondering though whether it would be possible to set the Query mode of the Search for Same sectino only for this Format Preset. Because otherwise it screws with the other Presets I use. Therefore this suggestion: maybe it would be appropriate to be able to select one mode per preset, which would then eanble the different Presets to be linked to a keyboard shorcut and work seamlessly without having then to remember to change manually the mode in the Search for Same popup window.

Regarding the second question, it's what's documented in the "Testing the value of fields" section of the Database Search v1.4 online documentation:
Quote
To test if a field value sorts before or after a given text, use the '<' (less-than sign) or '>' (greater-than sign) operator. The sorting order is lexicographically, that is it compares two texts character by character, with the exception of numeric fields which are compared as natural numbers.
Source: http://foosion.foobar2000.org/help/0.9/foo...odes_word_based (http://foosion.foobar2000.org/help/0.9/foo_dbsearch-1.4-help.html#filter_modes_word_based)

Would you have any idea how I could maybe use a similar syntax to find the results that sort before or after a given alphanumeric value? Thanks again!
Title: Database Search
Post by: foosion on 2014-11-16 19:09:54
Sorry, you are right regarding the less than and greater than operators. I guess I need to use my own plugin more often.  I am not sure though why they do not produce the expected results. I would have to dig out the source code.
Title: Database Search
Post by: HHHHH on 2014-11-17 16:08:33
Sorry, you are right regarding the less than and greater than operators. I guess I need to use my own plugin more often.  I am not sure though why they do not produce the expected results. I would have to dig out the source code.


  Ok, let me know if you find something.

Alors, are brackets () supported in the query syntax? Ex: Artist IS bla AND (performer HAS blo OR performer IS instrumental)

Thanks again Foosion!
Title: Database Search
Post by: HHHHH on 2014-11-18 14:13:20
It's OK for the brackets, it just requires the decimal unicode character: $char(40) for "(" and $char(41) for ")".
Title: Database Search
Post by: HHHHH on 2014-11-24 01:28:44
Sorry, you are right regarding the less than and greater than operators. I guess I need to use my own plugin more often.  I am not sure though why they do not produce the expected results. I would have to dig out the source code.


Any update on the less than and greater than operators?

Cheers!!!
Title: Database Search
Post by: Tundra on 2015-06-29 21:56:35
Is it possible to make the "Track focus in playlist" also work for playlists other  than the active playlist? (so that it switches to another playlist if the song is present on any of the playlists that are loaded in foobar)

Any updates on this feature? Is there any way to go to the playlist which contains selected track from the search results?
Title: REQUEST: Add Goto Item in Playlist to context menu and allow as a default action
Post by: jlware on 2021-03-14 13:07:51
[ I hope this excellent component is still being maintained ]

When I use foo_dbsearch to find a track across all my playlists, I always want to then navigate directly to the item in its corresponding playlist. But I don't see a way to do that currently. Please, therefore, add a Goto Item in Playlist item to the context menu for any found track. In addition, add this as an optional default action in the global settings.

Thanks!
Title: Re: Database Search
Post by: Adil on 2021-03-14 17:44:04
Sorry for my lack of knowledge, but what is the difference between this component and the Quick Search Toolbar (http://www.foobar2000.org/components/view/foo_quicksearch)?
Title: Re: Database Search
Post by: jlware on 2021-03-14 17:58:06
Sorry for my lack of knowledge, but what is the difference between this component and the Quick Search Toolbar (http://www.foobar2000.org/components/view/foo_quicksearch)?
For my purposes, a big difference: The Quick Search Toolbar does not tell you the name of the source playlist where each found track actually resides. It puts the results into a new playlist but without any additional column giving the name of the source playlist. Foo_dbsearch gives you the name of the source playlist in the status bar when you select any entry.

I'm never interested in working with or playing tracks from a new temporary playlist; I want to go to the playlist where the track actually is.  However, if your interest is not primarily in searching and locating, but creating new playlists on the fly, then the Quick Search Toolbar is the tool for that.
Title: Re: Database Search
Post by: Adil on 2021-03-14 18:16:21
Very clear, thank you very much!