Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 08, 2016, 12:05:56 AM
  • Proudly celebrating 10 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: [Feature request(s)] Aliases  (Read 477 times)

illicium

  • Participant
  • Joined in 2014
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
[Feature request(s)] Aliases
« on: September 06, 2016, 11:15:58 AM »
This is a wonderful program - thank you for it!

As my alias list grows, it would be great if...

(a) there was a feature which could reorder my aliases alphabetically, so that I could spend less time searching through them under Options  when I need to; and

(b) it would also be good if there was a mechanism to export just simple alias information - really, just trigger/keyword and results- so as to be able to put them into a .txt etc file and print them out. (I am aware it's possible to export a full .csv file, but then sifting through that and isolating the information I want to keep is rather a laborious task!

Thanks again for this pprogram!

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 858
    • View Profile
    • Donate to Member
Re: [Feature request(s)] Aliases
« Reply #1 on: September 08, 2016, 10:21:47 AM »
Hi, here is a small Autohotkey script that I think does what you're requesting in (b). It exports the alias and results fields in myaliases.alias to a textfile on the desktop.

Code: Autohotkey [Select]
  1. ;FARR myaliases: export alias and result fields to txt list
  2. myaliases := A_MyDocuments "\DonationCoder\FindAndRunRobot\AliasGroups\MyCustom\myaliases.alias"
  3. output := A_Desktop "\myalias_" A_Now ".txt"
  4. if !FileExist(myaliases)
  5. Loop, Read, %myaliases%, %output%
  6. {
  7. RegExMatch(A_LoopReadLine, "<AliasText>(.*)</AliasText>", alias)
  8. RegExMatch(A_LoopReadLine, "<Result>(.*)</Result>", result)
  9. FileAppend, % alias1 ? "`n" alias1 "`n" : result1 ? result1 "`n" : ""
  10. }

Like you I also hope for sorting/filtering for the aliases window in FARR. Though I think an editbox to live filter the list of aliases would be more useful than sorting options like A-Z etc. But both would be great. Aliases is an outstanding FARR feature and sets FARR apart from many other launchers.

Edit: here is a version of the script that also includes the Regex lines
Code: Autohotkey [Select]
  1. ;FARR myaliases: export alias and result fields to txt list
  2. myaliases := A_MyDocuments "\DonationCoder\FindAndRunRobot\AliasGroups\MyCustom\myaliases.alias"
  3. output := A_Desktop "\myalias_" A_Now ".txt"
  4. if !FileExist(myaliases)
  5. Loop, Read, %myaliases%, %output%
  6. {
  7. RegExMatch(A_LoopReadLine, "<AliasText>(.*)</AliasText>", alias)
  8. RegExMatch(A_LoopReadLine, "<Regex>(.*)</Regex>", reg)
  9. RegExMatch(A_LoopReadLine, "<Result>(.*)</Result>", result)
  10. FileAppend, % alias1 ? "`n" alias1 "`n" : result1 ? result1 "`n" : reg1 ? reg1 "`n" : ""
  11. }
« Last Edit: November 29, 2016, 01:06:29 PM by Nod5 »

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 516
    • View Profile
    • Donate to Member
Re: [Feature request(s)] Aliases
« Reply #2 on: September 08, 2016, 11:53:17 AM »
Thanks Nod5 for sharing this  :Thmbsup:

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 858
    • View Profile
    • Donate to Member
Re: [Feature request(s)] Aliases
« Reply #3 on: November 29, 2016, 01:08:58 PM »
In case someone has notification or finds this thread, I did a workaround script to filter the aliases list here .

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 6,141
  • Slartibartfarst
    • View Profile
    • Donate to Member
Re: [Feature request(s)] Aliases
« Reply #4 on: November 29, 2016, 11:13:25 PM »
I missed that. Thanks for cross-posting.
Nice workaround script.