Messages - CatamountJack [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 12next
26
@czb:  I installed the new CZB Pack but I'm still running into the same issue I had before - it will lock up FARR.  If I go to the plugins manager screen ("fssc"), and then close it, and then type in "tds" FARR will bring up matches (sometimes) as if it's searching for "tds" and then lock up (it's pegging the cpu at 100% on one of my cores).  Also, if I go into the TDS plugin without going into the FSSC plugins manager first, the plugin will work - once.  After that, if I try going into TDS again, it will lock up FARR in the same way.  (While it's locked up, the message in the status bar of the FARR results window says "Searching plugins...").  At this point, the only way to get out of it is to kill the process.

I'm running FARR 2.43.01 with the CZB Pack downloaded a few days ago.

Aside from that, the CZB Pack looks great!  Lots of useful tools in there!

Let me know if there is anything I can do to help narrow down the lock-up problem here.

27
Well, it turns out I'm just not very bright (and it only took me a month to figure that out!).  Since command line arguments in batch files are delimited by spaces anyway and, in this case, since I'm using spaces to delimit the arguments in FARR, I don't actually need to specify multiple capturing groups in the regex.  The screenshot is how I'm setting this up:

screenshot.png

The first line in the results box allows me to enter an argument, multiple arguments, or even no argument at all.  I realize the way this particular one is set up I don't need $$2.  The second and third lines are pre-defined examples of what the different arguments might look like.

My question does still stand, however, if I were to use something other than spaces to delimit the different arguments.  I think this would also be useful in the case of czb's Table Data Search plugin, where (if I understand it right) you currently need to create a specific regex to match the data you are filtering.  (e.g. if you are filtering on 4 columns of data, you need to create a regex with 4 capturing groups.)

So, my question is - how can I create a regex that will allow me to enter an arbitrary number arguments (bonus points if it also allows you to use a variety of delimiters).  In the case of my alias above, I might not want to enter any arguments, or maybe I want to enter 1, or 2.  In the case of the Table Data Search plugin, there could be more.  Is there a way to create a regex that is flexible enough to do this?

@lanux128:  Thanks for the suggestion, but from what I can see, while the nircmd aliases do use multiple arguments, the user needs to fill them all in to make the alias work - so that's a bit different than what I'm looking for.

Thanks!

28
Hmmmm.....

In the instances I'm planning on using this for, $$1, $$2, etc would be just short words (perhaps numbers).  In my case, there would be no spaces within each of those arguments since I want to use spaces as the separators between arguments.  I'm not sure whether the batch file I'm passing these to would complain if there were extra spaces included at the beginning/end of each argument or not - I just tried testing it but my computer is having some other serious issues at the moment.

Thanks!

29
Hi all,

Perhaps this is more of a general-case regex problem than an FARR problem, but since I'm trying to use it to make FARR work better, I'm hoping someone here might offer some helpful advice...

I have an alias, let's call it "test", and I want to *optionally* pass one or more parameters to it, separated with a space.
-- If I knew there was always going to be one parameter, I might use ^test (.*)
-- If I want that parameter to be optional, I've found that ^test ?(.*)? seems to work just fine
-- But how can I specify multiple optional parameters?

The alias will run a batch file that will handle the optional input.     (batchfile.bat $$1 $$2 $$3)

I've visited numerous sites over the last couple of weeks that explain how to create/use regular expressions, and I've tried all sorts of combinations, but I've yet to find a solution.

Thanks in advance!




30
I'm looking forward to this and, at the risk of sounding like a broken record, thanks to the both of you for your great programs!

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 12next
Go to full version