ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

don't return aliases unless regexp matches exactly

(1/1)

ohkine:
Another (hopefully easy) question. :)

Is there any way to make FARR not return aliases unless the regexp pattern matches exactly?

For example, say i have a Wikipedia search alias with this pattern: ^wiki (.+)

My expectation was that this alias would not be returned, at all, unless that EXACT regexp was matched (e.g., the text 'wiki', followed by a space, followed by at least one more character). However, that is not what's happening. Instead, FARR returns the alias itself as if it were an item in the file system. So for example if i search for the string wik, with no space or anything else after it, i get an entry that says 'Wikipedia search ($$1 — look up in Wikipedia)'.

Is there any way to turn this off? I don't want to see it unless it matches the regexp exactly.

cheers

mouser:
regex aliases wont return matches unless they match exactly..
the only exception to this is if there is a partial match to the NAME of the alias.. this can be exploited to give you hints;
to turn it off, just delete the alias name (or make it something like "__myname").

i know that's not the most obvious solution, just emerged as the evolution of alias groups.. i'll see if i cant improve this in the future.

ohkine:
Ohh, i get it. Putting underscores in front of the name seems to have done it, i can live with that. Thanks again!

Navigation

[0] Message Index

Go to full version