#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:
Has a Patch: no 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 Changed 11 months ago by siarzhuk

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 follow-up: Changed 11 months ago by bonefish

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

comment:3 in reply to: ↑ 2 ; follow-up: Changed 11 months ago by anevilyak

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.

comment:4 in reply to: ↑ 3 Changed 11 months ago by bonefish

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 Changed 11 months ago by anevilyak

  • Status changed from new to in-progress

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

comment:6 Changed 11 months ago by anevilyak

  • Resolution set to fixed
  • Status changed from in-progress to closed

Implemented in hrev45695.

Note: See TracTickets for help on using tickets.