Author Topic: Macro needed to jump from a line with path to a specific file.  (Read 6644 times)

SlickBuddy

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Macro needed to jump from a line with path to a specific file.
« 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

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Macro needed to jump from a line with path to a specific file.
« Reply #1 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