topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday December 13, 2024, 7:57 pm
  • Proudly celebrating 15+ 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: Alias: igo + searchterm  (Read 6790 times)

link68759

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Alias: igo + searchterm
« on: May 14, 2013, 05:09 PM »
Alias
^define (.*)
igo http://ninjawords.com/?q=$$1 /stayopen

Doesn't work as expected. Or rather, it doesn't work at all. I've been using FarSubScript for a while and all the dictionary things just seem so redundant.

Am I doing something wrong? Is this a bug? Is there a way to just have "hotstrings" where "nw" automatically is replaced by "igo http://ninjawords.com/?q=" in the search box?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Alias: igo + searchterm
« Reply #1 on: May 14, 2013, 05:23 PM »
The reason it doesnt work is that "igo" is the name of another alias.
If you look at the igo alias itself (in the Core-Internet alias file), you'll see it uses the special command "htmlviewurl".

So, change your alias from "igo http://ninjawords.com/?q=$$1 /stayopen"
to something like "Search Ninjawords for $$1 | htmlviewurl http://ninjawords.com/?q=$$1 /stayopen"

That assumes you want the web page to open up inside of the FARR window.  If you wanted it to open your external web browser you could just leave off the "htmlviewurl" part.

link68759

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Alias: igo + searchterm
« Reply #2 on: May 14, 2013, 05:53 PM »
Thanks for the quick reply; I was able to get it sorted out

daliu

  • Participant
  • Joined in 2013
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: Alias: igo + searchterm
« Reply #3 on: December 28, 2013, 09:17 AM »
hi~!
Search Ninjawords for $$1 | htmlviewurl http://ninjawords.com/definitions/get/$$1 /stayopen

you can use this. response is json.

if have a jsonview will be great