Opened 11 years ago

Closed 11 years ago

#9776 closed enhancement (fixed)

Open source code in editor

Reported by: bonefish Owned by: anevilyak
Priority: normal Milestone: Unscheduled
Component: Applications/Debugger Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Often when finding a problem while debugging a problem one wants to immediately edit the source file in question. Not always is this file already open. An item in the source view's context menu to open the file (ideally at that line) in the editor would be a time-saving feature.

Change History (6)

comment:1 by siarzhuk, 11 years ago

I hope this may be usefull for work on this tiket: handling of RefsReceived with defined line/selection restoring was [re]implemented in StyledEdit in hrev45071. And as far as I remember, be:line support in Pe exists from the very beginning.

comment:2 by bonefish, 11 years ago

For the hyperlink feature I recently added to Terminal I simply used system("open <file>:<line>"). That actually works since hrev45662.

in reply to:  2 ; comment:3 by anevilyak, 11 years ago

Replying to bonefish:

For the hyperlink feature I recently added to Terminal I simply used system("open <file>:<line>"). That actually works since hrev45662.

Should be simple enough to add then, though I'm curious to see how open implements that since I'd rather avoid calling system() if possible.

in reply to:  3 comment:4 by bonefish, 11 years ago

Replying to anevilyak:

Should be simple enough to add then, though I'm curious to see how open implements that since I'd rather avoid calling system() if possible.

open just sends a message to Tracker. You can do that as well, of course. As Siarzhuk mentioned, you just have to add a be:line field to an otherwise regular B_REFS_RECEIVED message.

comment:5 by anevilyak, 11 years ago

Status: newin-progress

Thanks for the tip, will implement this tonight after work then.

comment:6 by anevilyak, 11 years ago

Resolution: fixed
Status: in-progressclosed

Implemented in hrev45695.

Note: See TracTickets for help on using tickets.