Feature - Implemented aliasref command

As the number of aliases I use grows I often find myself desiring this feature. I don't know which is preferred, but I kinda like just extending the current alias command to accept a filter as opposed to making a new aliasref command. What does everyone think?

Either way, a patch for each is attached.
 

Attachments

  • alias.patch
    2.2 KB · Views: 29
  • AliasRefCommand.txt
    2 KB · Views: 35
  • AliasRefCommand.patch
    1.9 KB · Views: 28

Bale

Minion
Agreed!!!!!!!!!!!!!!!!!!!!

Filter alias. I've wanted to be able to add a filter to alias for a long time now.
 

slyz

Developer
r9533.

I modified your patch a tiny little bit : the filter now works against the alias name and the expanded command.

EDIT: I forgot to mark the thread as "implemented", but someone beat me to it. I also forgot to add "thanks to That FN Ninja @ kolmafia.us" to the commit log, sorry!
 
Last edited:
r9533.

I modified your patch a tiny little bit : the filter now works against the alias name and the expanded command.

I was thinking about matching against both, but didn't do it for whatever reason. Can't remember why now. Anyways thanks.
 
Top