Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 07, 2016, 06:40:57 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Smart search Alias with Locate32  (Read 3148 times)

Enzomaticus

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Smart search Alias with Locate32
« on: December 04, 2008, 05:17:36 PM »
Can someone please tell me if it is possible to configure an alias that uses the locate32 plugin to search for all files of a certain type? Ideally I would like an alias called "Playlist" that would list all the .xspf files on my drive.
Is this doable or am I just making work for myself?

Cheers

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #1 on: December 04, 2008, 05:28:38 PM »
While I cannot help you as I don't know Locate32's parameters, I'm pretty sure it is possible, if you can search for files with a certain extension using Locate32. Would be something of the form dosearch loc32 *.xspf (not sure how you can call the plugin, and how you can search for files with a certain extension, sorry :))

Enzomaticus

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #2 on: December 04, 2008, 05:38:05 PM »
That's exactly what I was thinking - I just don't know how to implement the idea.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #3 on: December 05, 2008, 01:03:35 AM »
like d4ni mentioned. if you already have the locate plugin, create a new alias with the following details.

Group Alias Name: Playlist
RegEx Pattern: ^playlist (.*)
Result(s): dosearch loc -txspf $$1

then type 'Playlist' in Farr and all the files with that extension would appear.

note: i did something like that before but now with the availability of locate plugin, the above method is better.

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #4 on: December 05, 2008, 02:09:06 AM »
Not sure if you need the "(.*)" part in the RegEx, and the "$$1" in the Results. If I understood correctly he simply wants to list all the .xspf files, not have any restrictions on the name. So perhaps some wildcard in the Locate32 paramters to list all .xspf files is required instead of the $$1. Just '*' I assume.

Enzomaticus

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #5 on: December 05, 2008, 08:19:39 AM »
Brilliant - thank you so much. A combination of both your posts got it working and has just simplified my video learning library 100 fold.

Cheers

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: Smart search Alias with Locate32
« Reply #6 on: December 05, 2008, 10:31:49 AM »
Glad I could help :Thmbsup: