DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: alias thas searches special folder AND returns folder link as match no 1?  (Read 5,513 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
I use this alias:
1000>>>mp3>->mp3 $$1 | dosearch +alb1_modifier +mp3_modifier $$1>+>^(?:mp|mp3) (\w.*)$

As you can see, the searchphrase mp3 something triggers a search in only the harddrive folders tied to the two modifiers (set in "Search Folder" options).

I want an alias that does just that AND also always return a link to one or more special folders (choosen by me) as the first match(es).

Example:

search: "mp3 beatles"

should return:
1. folder1
2. folder2
3. 01 beatles - I saw her standing.mp3
...

I think that kind of behaviour - being able to set one or more privileged matches that trumps whatever matching criteria the rest of the alias contains - could be useful in many other cases also.

Is it possible already without making a special plugin? If so, how?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
its not a bad idea.. you can't do it currently but it might not be too hard to add.

probably the easiest way for me to add a feature to let you do that would be to let you add the fixed entries by specifying them after the dosearch line in the alias results.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
That sounds good!  :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=14520.0