topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday January 19, 2022, 7:17 pm
  • Proudly celebrating 15+ 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wiem [ switch to compact view ]

Pages: [1]
1
Simpler easier to maintain version with incremental search for program in list.

Use Case
  you want to open a file with a specific program (not being the default)

How to
 find a file or folder using farr
 copy file to searchbox (cursor down, cursor right)
 add  one or more spaces and -- after the filename or folder
 then select one of the programs from the list
 or do an incremental search through the list by adding searchstring character after the '--' you just entered.

You need to define the following alias:

alias name: Choose program to load
alias regular expression:       (.*)\s+--(.*)$
alias filter field : $$2


Use the following alias results (programpaths on your machine will most likely be different):

[Enter] view VLC| %programfiles%\vlc\vlc.exe "$$1"
[Enter] view IRFANview | %programfiles%\irfanview\i_view32.exe "$$1"
[Enter] edit notepad | c:\windows\notepad.exe "$$1"
[Enter] edit gvim | %programfiles%\vim\gvim.exe "$$1"
[Enter] goto totalcmd |%programfiles%\totalcmd\totalcmd64.exe /o "$$1"
[Enter] browser chrome|%programfiles%\chrome\chrome.exe "$$1"[Enter] copy to CLIPBOARD | copyclip $$1
[Enter] run deafult| shellexe $$1


To open the html file with your default browser
c:\User\Wiem\Documents\test.html --run
then press [Enter]

To open the html file with chrome browser
c:\User\Wiem\Documents\test.html --chrome
then press [Enter]


To open the html file with an editor you would type
c:\User\Wiem\Documents\test.html --edit
then choose the editor you want to use, and then press [Enter]
 
To open the html file with notepad you would type
c:\User\Wiem\Documents\test.html --pad
then press [Enter]

To open the html file with graphical version of vim (the greatest editor ever ;-) you would type
c:\User\Wiem\Documents\test.txt --gvim
then press [Enter]

A few notes:
 Keep the descriptions before the '|' character unique, then the searchstring can also be kept short...
 The text [Enter] is just a reminder that you must press the [Enter] key to really execute the command.
 

Njoy  ;)
wjamoe

2
@mouser

thanks for implementing this feature

   rightclick on farr results list, copy to clipboard

Sorry I missed the update (apparently in 2018) :Thmbsup:

One additional request though, can you please add separators between the results, e.g. cr-lf ?

K.R. Wjamoe

Pages: [1]