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: igo + searchterm  (Read 9,413 times)

link68759

  • Participant
  • Joined in 2011
  • *
  • Posts: 4
Alias: igo + searchterm
« on: May 14, 2013, 10: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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Alias: igo + searchterm
« Reply #1 on: May 14, 2013, 10: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
  • *
  • Posts: 4
Re: Alias: igo + searchterm
« Reply #2 on: May 14, 2013, 10:53 PM »
Thanks for the quick reply; I was able to get it sorted out

daliu

  • Supporting Member
  • Joined in 2013
  • **
  • Posts: 1
Re: Alias: igo + searchterm
« Reply #3 on: December 28, 2013, 03:17 PM »
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

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