Jumping to a specific match

General questions about using TextPad

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

Post Reply
ejg

Jumping to a specific match

Post 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?
Ed

Re: Jumping to a specific match

Post 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
Ed

Re: Jumping to a specific match

Post 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
ejg

Re: Jumping to a specific match

Post 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.
Post Reply