Page 1 of 1

Urgently needs a 'function finder'

Posted: Sat Feb 26, 2005 6:51 am
by Xpressive
I'd really, really appreciate a small window, tab (or whatever) that collects all function names declared in my source codes so that I could jump to a specified function just by clicking on it's name.

Is there any plug-in or feature I missed? I can't believe that such a professional tool like TextPad does not provide such a common coding feature? :cry:

BTW: I am using Blitz, where functions are declared using

Code: Select all

Function myFunctionName ( )
End Function

Posted: Sat Feb 26, 2005 12:52 pm
by s_reynisson
This is the best TP has at the moment.

Posted: Sat Feb 26, 2005 2:22 pm
by Xpressive
Does not support Blitz Basic :(

Posted: Tue Mar 08, 2005 12:25 pm
by acroton
Hi,

I looked at ctags a while back, and thought it looked far too much like hard work for the simple function finding capability that I was looking for.

So I threw together a quick Perl script that scans a file (when passed the name), matches the pattern that I'm looking for, and then outputs a line to stdout similar to the Perl interpreter's.

I then attach this as a Tool, set the Capture Output, and set the "Regular Expression to match output" to the one from the TextPad help file for matching errors from Perl. This is then bound to [CTRL]-2

Net result:
Working in Perl script - hit [CTRL]-2, the Command Results window is displayed, listing my subs (or whatever else I've chosen to match). Double click on the entry that I want - jumps back to my script at the correct line.

I'm happy to post the script (but make no apologies for the quick and dirty nature of the code) - or will e-mail it.

My ISP is demon.co.uk
My hostname is suffix
My mail account is alex

If you're human that should be easy to work out :)