Page 1 of 1

Jumping to a specific match

Posted: Mon Jul 01, 2002 11:00 am
by ejg
I'm working on multiple C-code files and have been using "multiple file seach" and it's jumping to a specific match.
Now I'm trying to compile and would like my Error Output to work like the Search Results, that is double clicking on the filename in the line

main.cpp:51: parse error before `='

would jump to line 51 of file "main.cpp". I know it can be done in Emacs.
Does anyone know how to do this in TextPad?

Re: Jumping to a specific match

Posted: Mon Jul 01, 2002 12:44 pm
by Ed
Configure/Preferences/Tools/Add a tool
more could be said about that...
...but, having created a tool select
Configure/Preferences/Tools/"Your tool"/Regular Expression..."
set to ^\([^:]*\):\([0-9]+\):
Registers:
File 1
Line 2

I hope that's fairly clear
Ed

Re: Jumping to a specific match

Posted: Mon Jul 01, 2002 12:44 pm
by Ed
Configure/Preferences/Tools/Add a tool
more could be said about that...
...but, having created a tool select
Configure/Preferences/Tools/"Your tool"/Regular Expression..."
set to ^\([^:]*\):\([0-9]+\):
Registers:
File 1
Line 2

I hope that's fairly clear
Ed

Re: Jumping to a specific match

Posted: Mon Jul 01, 2002 3:20 pm
by ejg
Thanks - That's all I needed.

Don't know anything about Tools but creating the Tool:
DOScommand -> type "hard_link_to_my_file" (or -> type $file)
works exactly like I want it to do.