Opening Files From Command Results

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
David Sargent

Opening Files From Command Results

Post by David Sargent »

I run a utility which creates a file and the following is output to the command results window.

Record saved to O:\RC\ANSWER\Q6

What I would like to do is to click on the file name and textpad open the file for me.

I'm sure this is quite simple but I don't know where to start and trawling through the forum has left me more confused than ever.
Andreas

Re: Opening Files From Command Results

Post by Andreas »

You should put the following into the
Regular expression to match output
edit field:

Record saved to \(.*\)

and select 1 in the "File Register" combo.

Andreas
Randall McDougall

Re: Opening Files From Command Results

Post by Randall McDougall »

Click on the File name (to put the cursor there) and enter ctrl+shift+g to open the file (if the filename isn't surrounded by whitespace you need to select it).

If you use it a lot you may want to assign the function to an easier key combo (it's set in "Configure/Preferences/Keyboard/File [FileGoTo]" ).
David Sargent

Re: Opening Files From Command Results

Post by David Sargent »

This worked great. Thankyou.
I must get to grips with these regular expressions as they seem quite useful.
Roy Beatty

Re: Opening Files From Command Results

Post by Roy Beatty »

Indubitably!

The following url will help you in your quest:

http://equity.wharton.upenn.edu/~epstei ... n_faq.html

Good luck,

Roy
Post Reply