topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday March 19, 2024, 1:29 am
  • 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

Last post Author Topic: Post your FARR v2 Plugin Idea Requests Here - Plugin Writers Read In  (Read 251898 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
sabot, we definitely need these plugin.  I have quite a few ideas for it too, how to make it even better by letting it search on tags as well as text.  eventually i'll have to code it if no one else does, but i'd also be happy to help someone else work on it.

joes_garage

  • Participant
  • Joined in 2008
  • *
  • Posts: 18
    • View Profile
    • Donate to Member
Sabot: do you know about grep?  This venerable command line tool does exactly what you need, and then more!
http://en.wikipedia.org/wiki/Grep
Sadly, grep does not come by default with windows (bleh), but you can definitely install a version of it:
http://gnuwin32.sour...et/packages/grep.htm

Hope that this can help make your city safer right this day!  ;-)

cheers,

sabot7726

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 27
    • View Profile
    • Donate to Member
Ya I use grep a lot when I'm running through *nix logs, but the systems we use at work are windows based and therefore don't have grep handy.

Until if/when someone makes the farr plugin, I've been using baregrep with some success. I like how its able to bring me my results fast on the fly rather than a search or cmd line where I have to enter a string and hit enter. For my purposes, I may not know exactly what I'm looking for until I find it by randomly entering strings :p

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
you can try this search. It has text file search and command line as well.

http://www.saleensof...ware.com/?ref=scanfs

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
Nice find, Kartal  :up:
Mentioned a few times in the forum, but never tried it

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Developer is very responsive as well

sabot7726

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 27
    • View Profile
    • Donate to Member
I didn't see an option for it to return lines inside of a file though, did I miss that somewhere? I only saw it return file names that matched what I was searching for :)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
search "file contents". You can also enable preview for text files.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
I don't use twitter, but it seems to me that if there was ever a plugin that would be a natural for FARR, it's a twitter plugin.. doesnt anyone want to write this?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
How about a plugin to work with "Remember the Milk":
http://www.remembert...lk.com/services/api/

It's a web service that lets you set up reminders to yourself that will be emailed or sms'd to you, etc.

Similar: http://iwantsandy.com/
« Last Edit: May 16, 2008, 08:01 PM by mouser »

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
I personally think that spending time more on extending commandline and argument passing would be better spent. Because most of these websites offer basic connection to tools like curl. I successfully sent twitter messages from Farr using curl. It is just an alias. But RTM could be little more daunting for novice Farr user because you may need to define multiple inputs.

http://curl.haxx.se/

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
I personally think that spending time more on extending commandline and argument passing would be better spent. Because most of these websites offer basic connection to tools like curl. I successfully sent twitter messages from Farr using curl. It is just an alias. But RTM could be little more daunting for novice Farr user because you may need to define multiple inputs.

couldn't agree more, spending time on the core of FARR, adding aliases functionnalities, switches, ... would be great
i consider some of my aliases pretty much like plugins  :D

considering curl, i personnaly use external autohotkey scripts that i call from FARR :

here is one to save an url on your del.icio.us account (change name and password) :
this is pretty basic but does the job... first the names, then the tags...
Code: AutoIt [Select]
  1. OSD(text)
  2. {
  3.    #Persistent
  4.    ; borderless, no progressbar, font size 25, color text 009900
  5.    ;Progress, hide Y600 W1000 b zh0 cwFFFFFF FM50 CT00BB00,, %text%, AutoHotKeyProgressBar, Backlash BRK
  6.    Progress, hide b w400 zh0 cw000000 FM30 CTFFFFFF,, %text%, AutoHotKeyProgressBar, Backlash BRK
  7.    ;WinSet, TransColor, FFFFFF 255, AutoHotKeyProgressBar
  8.    DetectHiddenWindows, on
  9.  
  10.    WinSet, Transparent, 150, AutoHotKeyProgressBar
  11.    Progress, show
  12.    SetTimer, RemoveToolTip, 2000
  13.  
  14.    Return
  15.  
  16.  
  17. RemoveToolTip:
  18.    SetTimer, RemoveToolTip, Off
  19.    Progress, Off
  20.    return
  21. }
  22.  
  23. EncodeURL( p_data, p_reserved=true, p_encode=true )
  24. {
  25.    old_FormatInteger := A_FormatInteger
  26.    SetFormat, Integer, hex
  27.  
  28.    unsafe =
  29.       ( Join LTrim
  30.          25000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F20
  31.          22233C3E5B5C5D5E607B7C7D7F808182838485868788898A8B8C8D8E8F9091929394
  32.          95969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6
  33.          B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8
  34.          D9DADBDCDDDEDF7EE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9
  35.          FAFBFCFDFEFF
  36.       )
  37.      
  38.    if ( p_reserved )
  39.       unsafe = %unsafe%24262B2C2F3A3B3D3F40
  40.    
  41.    if ( p_encode )
  42.       loop, % StrLen( unsafe )//2
  43.       {
  44.          StringMid, token, unsafe, A_Index*2-1, 2
  45.          StringReplace, p_data, p_data, % Chr( "0x" token ), `%%token%, all
  46.       }
  47.    else
  48.       loop, % StrLen( unsafe )//2
  49.       {
  50.          StringMid, token, unsafe, A_Index*2-1, 2
  51.          StringReplace, p_data, p_data, `%%token%, % Chr( "0x" token ), all
  52.       }
  53.      
  54.    SetFormat, Integer, %old_FormatInteger%
  55.  
  56.    return, p_data
  57. }
  58.  
  59. DecodeURL( p_data )
  60. {
  61.    return, EncodeURL( p_data, true, false )
  62. }
  63.  
  64. dir_curl = C:\_Garbha\Program Files\curl
  65.  
  66. IfExist, %dir_curl%\log.txt
  67.         FileDelete, %dir_curl%\log.txt
  68.  
  69. url = %1%
  70.  
  71. url := EncodeURL(url)
  72.  
  73.  
  74. InputBox, description, Description, Entrez la description,,150,100
  75. if !ErrorLevel
  76. {
  77.                 InputBox, tags, Tags, Entrez les tags avec des virgules,,150,100
  78.                 if !ErrorLevel
  79.                 {
  80.  
  81.                         description := EncodeURL(description)
  82.                         tags := EncodeURL(tags)
  83.                         RunWait, %dir_curl%\curl.exe -ku name:password "https://api.del.icio.us/v1/posts/add?url=%url%&description=%description%&tags=%tags%&replace=yes&shared=no" -o "%dir_curl%\log.txt",,hide
  84.  
  85.                         if !ErrorLevel {
  86.  
  87.                                 Sleep, 1000
  88.                                 FileRead, result, %dir_curl%\log.txt
  89.                                
  90.                                 if not ErrorLevel  ; Successfully loaded.
  91.                                 {
  92.                                                 IfInString, result, "done"
  93.                                                  {
  94.                                                         OSD("URL saved")
  95.                                                  }
  96.                                                  else {
  97.                                                         OSD("Problem!!!")
  98.                                                  }
  99.                                  Sleep, 500
  100.                                  ExitApp       
  101.                                 }
  102.                                
  103.                        
  104.                                                                        
  105.                         }
  106.                 }
  107. }

in FARR : it is one of multiple results for the following regex trigger :
^(https?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|localhost|alextd|mickytd|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$

Delicious___$$4$$8$$9 | C:\_joker\Utilities\Ahk\DeliciousPost.ahk "http://$$4$$8$$9" /ICON=icons\delicious.ico

THIS is the beauty of FARR, it is only one of multiple results, so when i have an URL in FARR, i can either save the it to del.icio.us, open it in opera or firefox, etc.
you really customize you experience ;)


... to the point... one fantastic addition to FARR would be the possibility to post variables to a website and open the resulting page
don't know how to do it with curl by the way, you post you get the resulting page but not in the browser...

on many search sites, you cannot send your search using get variables... i'd be great to be able to post your search... and see the resulting page
it would be easy to automate logging to a website (without using tools like roboform...)

« Last Edit: May 17, 2008, 03:02 AM by nitrix-ud »

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
I'd love to see something similar to InstantNavigator for OneNote, which searches for specific notes. It behaves much like FARR, but I'd obviously prefer doing this through FARR and not run another app just for this.

s.newave

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 124
    • View Profile
    • Donate to Member
Two more plugin requests:

1) a plugin that can run an exe with commandline parameters and capture its stdout and show it in results memo view (note that users could use this with the explicit dll invocation technique to make their own alias configurations that use your dll to run any commandline program and capture the output).

2) a plugin that can fetch a web page and then extract text from the webpage (using a regex mask) and display text (stripped of html) as farr result memo.  (again this should use the explicit dll invocation technique to let people configure their own aliases that fetch different pages and use different regex matches).  The uses for this one are practically unlimited.

note: i guess that #1 might benefit from a regex mask as well, making these two plugins 95% identical.

Wow #2 would be amazing  :o :o  Any progress on that front. As you say the uses for this, combined with the html viewer you mentioned in another thread, would be practically limitless. I wouldnt think it necessary to reinvent the wheel with a full browser inside farr however a scaled down html mode would be great. I can imagine using this for quick wiki searches, reviews, quick weather updates etc etc where all you need is some specific info from a html page without having the need to browse and follow links. It actually shouldnt be that hard to do as long as FARR could support html output :D

« Last Edit: May 19, 2008, 05:18 PM by s.newave »

alivingspirit

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 167
    • View Profile
    • Donate to Member
a plugin that makes it easy to search/browse and install plugins

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • View Profile
    • My open-source online piano game
    • Donate to Member
a plugin that makes it easy to search/browse and install plugins
-alivingspirit (May 22, 2008, 06:32 AM)

Great idea. Mouser is going to add install option for plugins into Dcupdater, but I think it would be better as FARR plugin than to have special software for it. So when Mouser releases xml file for installing new plugins I will try to write FARR javascript plugin for searching/browsing and installing plugins
My open-source online piano game: https://github.com/musicope/game

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
This may be a rare occasion where i disagree with czb -- I think this is something i can do more cleanly by building it into FARR or the update system.. i dont think it's something that should be optional and done via a plugin.  And most of all I don't think we should waste our precious and valuable czb coding time on it.. there are more important plugins to write that we NEED him for(!)

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • View Profile
    • My open-source online piano game
    • Donate to Member
I understand. I just do not like the idea of having Dcupdater for plugins only... it should be directly in FARR, so it would be easy to install ;)
My open-source online piano game: https://github.com/musicope/game

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
To check the web for new plugins to install, my solution will require dcupdater.
But to install a new plugin for the first time that you have downloaded, i will add a function into FARR to let you browse for the zip and install it using just plain FARR.  Same with alias packs.

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • View Profile
    • My open-source online piano game
    • Donate to Member
and what about to create special FARR links on the web (similar to firefox plugins etc) and when you click on them FARR would be called and plugin installed automaticaly?
My open-source online piano game: https://github.com/musicope/game

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
yeah i could do that through updater system.

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • View Profile
    • Veign - Where design meets development
    • Donate to Member
How about a PHP function locator which lets me start typing 'php [function name]' and a list of matching function is provided and when selected takes me to the PHP.net website for that function (default browser).  If this is easy I could provide a function list to assist.

The format for locating a function at php.net is:
http://www.php.net/[function name]

so, to find information on strlen would be:
http://www.php.net/strlen

Plugin could be expanded to other languages as it would be a simple data file for the langauge syntax and a URL format to locate the information.  One data file could hold multiple languages in an array

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
From my another post.

Maybe someone can create "auto alias" plugin which would go through desktop and start programs and create aliases for installed shortcuts. So for newbie users that would make things faster.

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
mouser, please read this ;)

How about a PHP function locator which lets me start typing 'php [function name]' and a list of matching function is provided and when selected takes me to the PHP.net website for that function (default browser).  If this is easy I could provide a function list to assist.
this is a good idea

there is a way to do it without any plugins, it is cumbersome but it works :

convert the functions list to text files (1 file = 1 function), can be easily done with autohotkey for instance...

add a search folder (to the text files...) with the following modifier keyword : folder_with_php_function_text_files (<=can be shorter  :P)

add an action alias : open_browser
Open in browser $$1| C:\_pathtoscript\open_browser.ahk "$$1"

then create a dosearch alias :
regex : ^php (.*)
php $$1 | dosearch +folder_with_php_function_text_files +open_browser $$1

open_browser.ahk is as follows :
SplitPath, 1, name, dir, ext, name_no_ext, drive
Run, http://www.php.net/%name_no_ext%

as you see, it is a bit cumbersome but it WORKS exactly as expected (if i understood well)

now obviously one need to have autohotkey installed for that setup to work or i could send you a compiled version...


a new feature would simplify the process... and eliminate the need of autohotkey (or any other scripting langage)

in this alias :
Open in browser $$1| C:\_pathtoscript\open_browser.ahk "$$1"

$$1 refers to the full file name (with its path)
if we had some special FARR function to split that path
then we would have :
Open in browser $$1| http://www.php.net/FARR($$1,"only file name")


an other idea :
it would be great to have a new command :

dosearchfile "C:\...\functionlist.txt" +open_browser $$1

just specify a file and FARR searches it line by line...



i am not saying a plugins would not be great, however i think using core functions of FARR is almost enough to achieve Veign's idea
to be short... let me say that I am much much more excited by new core functions/features for FARR than anything else... it just opens new horizons each time

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
i believe the right way to do this is with a generic plugin that has been talked about before -- a kind of structured file searching plugin.

Basically the plugin would let you configure search keywords, along with specifying the file they should search, and how they should look for text and tags and what info to show on match.

So this could be used to search almost any kind of text,xml, or help file in a structured way that would allow you to type keywords or tags and have FARR show ranked resuls -- then select one to show full text of the entry.

It would be incredibly useful for a wide variety of things.

---

Though note that in veign's request, it might also make sense to use a generic web scraper plugin to query the php.org site and grab matches from that.