topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday December 14, 2024, 9:14 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

Author Topic: Feature Request v2 - custom commands  (Read 10114 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Feature Request v2 - custom commands
« on: July 12, 2005, 09:45 PM »
custom commands will be added to version 2.
you will be able to specify arbitrary sets of regular expression patterns, and then menus of one or more programs to launch based on the command.

this will let you do things like design commands for searching the web, ie
"search mangos"
could be set up to launch a browser and perform a google search for "mangos"

stuff like that; should be very general and very flexible.


we will add special features like being able to paste text in current application, etc.
i'd be interested in people who use such tools that let you type keywords to expand in text, about what kinds of things would be nice to support.

each command will be able to be configured with a single action to perform when you hit return after typing the pattern,
OR with a menu of actions that you can select from using the 1-9 keys like you handle search results.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #1 on: August 31, 2005, 08:43 AM »
i'd like to talk about possible kinds of commands.

to recap:

you will be able to define regular expression masks for command aliases, which will allow you to present a list of "commands" that match a string.

in the simplest case you would have a simple alias like:
"mynotes" which launches "c:\program\files\ultraedit.exe d:\mynotes.txt"

in more complicated cases you could have a command alias like
s (.*),(.*)

which would match
s taxes 100

and present a list of 5 options like
google search | http://www.google.com?s=$1?returnmatches=$2
yahoo search | http://www.yahoo.com?s=$1?returnmatches=$2

you get the idea.

but maybe it would be nice to add some extra kinds of functions besides just launching programs and websites.

for example clipboard pasting.

so you could have alias
"paste"
with the following entries
date | PASTE %currentdate%
time | PASTE %currenttime%

you get the idea.  so you using a program, you hit break key to launch f&r, type "paste"
and up comes two entries in result box:
1. date
2. time

you select the one you want and it closes and pastes it in your app.

any other ideas?

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #2 on: August 31, 2005, 09:16 AM »
Yeah preconfigured would be awesome and cut down on obtuseness (yes, it's a new word), but is their any way to make a gui?  Or a wizard? or something for complete newbies to regex (myself included)?  I remember there was a discussion elsewhere on this site for a regex helper (started by Scott I believe... not sure).  Perhaps something like this, or even simpler could be implemented.  The gui wouldnt have to translate from normal english to regex, just give different places to fill in the various parts.  Just a few quick ideas...

Kevin

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #3 on: August 31, 2005, 09:34 AM »
How about http://www.codeproje.../dotnet/expresso.asp as a starting point /

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #4 on: August 31, 2005, 09:42 AM »
i'm a big fan of examples.
i think a nice help page on regular expressions, plus some good example preconfigured commands will be enough to demonstrate to most people who care how to do it.  lets remember as you say 99% of f&r users will never make their own commands, let's just give them a nice set of preconfigured ones that beats the competition so that they don't feel like they are missing some nice commands.

« Last Edit: August 31, 2005, 09:44 AM by mouser »

zridling

  • Friend of the Site
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,299
    • View Profile
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #5 on: August 31, 2005, 09:54 AM »
Wow, what a great link to Expresso, Carol, thanks! Regex makes my brain swell, so guys like me need all the help I can get learning what I can.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,069
    • View Profile
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #6 on: August 31, 2005, 10:31 AM »
My thoughts (if I can count them as that) exactly ....

nontroppo

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 649
  • spinning top
    • View Profile
    • nontroppo.org
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #7 on: August 31, 2005, 07:12 PM »
Other excellent resources:

http://www.weitz.de/regex-coach/ - Regex coach is an excellent tool for learning regex's

http://www.regexbuddy.com/ - commercial, but probably the best regex test / learning tool

http://www.regular-expressions.info/ - from the creator of regex buddy, an excellent tutorial
FARR Wishes: Performance TweaksTask ControlAdaptive History
[url=http://opera.com/]

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #8 on: September 01, 2005, 06:22 AM »
What about only searching specific folders?  For example, at work I'm doing a specific project, I would like to constrain my search within folders for that project.  This would speed up my search and make it possible to name files similarly in different places.  If this is addressed, it would be handy to be able to specify whether the search is recursive or not.

Kevin

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #9 on: September 01, 2005, 07:08 AM »
yes, this should be addressed by the "modifiers" feature

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Feature Request v2 - custom commands
« Reply #10 on: September 06, 2005, 12:30 PM »
i'm working on regex commands now, will def. have a version up this week with regex supporting commands, like conducting web searches, etc.