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 with a space in the name not working  (Read 6,293 times)

BrokenNails

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 26
Alias with a space in the name not working
« on: June 08, 2008, 08:09 AM »
I recently added a simple alias for my bank's website containing a name and a result (ie no regex).

I discovered that if the name I gave it (the alias) was only one word eg "Bank" then I could type part of that name eg "ban", FARR would show the bank alias in the dropdown, and would launch the website if I selected it.

If, however, the alias name had a space in it eg "Bank Online" then when I typed "ban", FARR would again show the alias in the dropdown but if I clicked it it would just expand what I'd typed to "Bank Online" but wouldn't actually launch the website.

I tried this with a number of other aliases and there was definitely a difference between aliases with a space (or multiple words I guess) in the name and those without.

NOTE: this is not the case if you add a regex to the alias. eg in the case above I could get "Bank Online" to work correctly if I simply added the regex pattern "bank online". Given the pattern was considered 'optional' I wonder if this is an issue or I'm using FARR incorrectly...?

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Re: Alias with a space in the name not working
« Reply #1 on: June 08, 2008, 09:12 AM »
i also noticed that, what i do is what you did last...
always use a regex mask

name of the aliase :
keywords

regex :
^keywords$

other things i do (for modifiers)

for folder keyword i use : folder_nameoffolder
for action keyword i use : open_nameofprogram

i always do that since if you use the same name, you can have very strange behaviour (very difficult to "debug")

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 with a space in the name not working
« Reply #2 on: June 08, 2008, 12:55 PM »
im afraid this is true, farr does not match alias names with spaces properly.  i have on my todo list to decide how to handle this, but you can use regular expression match as nitrix said to get around the limittion for now.

BrokenNails

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 26
Re: Alias with a space in the name not working
« Reply #3 on: June 09, 2008, 02:04 AM »
Thanks guys. It's not a major issue (especially given the regex workaround) - I was mainly concerned that perhaps I'd misunderstood how to use FARR correctly!  :)

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