SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => SlickEdit User Macros => Topic started by: SlickBuddy on December 19, 2009, 09:24:21 am

Title: Macro needed to jump from a line with path to a specific file.
Post by: SlickBuddy on December 19, 2009, 09:24:21 am
Hi there,

I hope to be in the correct forum Smiley

I have a file which has only those lines:

"C:\user\test\main\main.cpp" 123 12 Testoutput

This means,
A) Path to specific file
B) line number
c) column number.

Is it possible to create a macro,
which when the cursor is in that line,
jumps to that specific file with correct line and column?

Thanks for your support.

SlickBuddy
Title: Re: Macro needed to jump from a line with path to a specific file.
Post by: hs2 on December 19, 2009, 07:03:41 pm
Here we go...
In addtion the trailing 'hint' is printed into status line and a bookmark is pushed to get back to the list file without closing the opened file. It's commented to you can can easily remove the parts you don't need/want.
Have fun, HS2