Urgently needs a 'function finder'

Ideas for new features

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

Post Reply
Xpressive
Posts: 5
Joined: Wed May 05, 2004 10:32 am

Urgently needs a 'function finder'

Post 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
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

This is the best TP has at the moment.
Then I open up and see
the person fumbling here is me
a different way to be
Xpressive
Posts: 5
Joined: Wed May 05, 2004 10:32 am

Post by Xpressive »

Does not support Blitz Basic :(
acroton
Posts: 1
Joined: Tue Mar 08, 2005 11:43 am
Location: London

Post 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 :)
Post Reply