Welcome Guest.   Make a donation to an author on the site December 20, 2014, 03:43:31 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Launch by piping path of a file found by a plugin to another application?  (Read 1473 times)
alijan
Participant
*
Posts: 4


View Profile Give some DonationCredits to this forum member
« on: January 07, 2011, 04:03:48 AM »

I was wondering if it was possible to call an application on the search result returned by the lite everything plugin. What I want:

gvim ev _vimrc

to launch vim on the first result returned in window by everything.

Is it possible to do such a thing?

I tried playing around with an alias but wasn't successful.

Thanks!
Logged
phitsc
Honorary Member
**
Posts: 1,022



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: January 07, 2011, 06:52:12 AM »

If it's always the same file type you want to open with vim you could use ewemoa's Akete plugin.
Logged

skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #2 on: January 10, 2011, 11:25:40 AM »

I use this alias for a similar action (open file in notepad).

The way I use it is I do a normal search and then add +edit to the ond of the search string.

[copy or print]
1000>>>Edit>->Edit $$1 in Notepad++ | C:\Program Files\Notepad++\notepad++.exe $$1 /ICON=icons\edit.ico

This is from the docs:

Quote
Using Alias Action Keywords
 Top  Previous  Next  
A new feature with FARR version 2 is the ability to specify alias names in your search string using the + prefix (just like keyword modifiers).

When an alias name is specified in this way, anywhere on the search string, it does not effect search, but it will cause the alias results to be displayed AFTER the result file is selected, with the selected file name as argument $$1 in the alias.

In this way, you can perform a normal file/folder search and then launch a specific alias command with that file/folder as an ARGUMENT.

For example, you could create an alias named +hexedit
whose result contents are:

C:\Program Files\HexEditors\HexEdit.exe "$$1"

Now you can type in your search:
+hexedit mydocsearch...

As you type mydocsearch words, FARR will let you search for files as normal.
After you choose the result, instead of launching the result file, you will be presented with
C:\Program Files\HexEditors\HexEdit.exe "SELECTEDFILE"
Which you can then launch.

NOTE:
You can use the same keyword for both alias names and search/scoring keyword modifiers.
Logged

It is impossible to make anything foolproof because fools are so ingenious.
alijan
Participant
*
Posts: 4


View Profile Give some DonationCredits to this forum member
« Reply #3 on: January 10, 2011, 02:16:11 PM »

Thanks!

I made this work by pressing tab after doing my everything search "ev somefile.txt" and appending the path with the alias.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.031s | Server load: 0.1 ]