Ticket #815 (new enhancement)
Clickable filenames in Console
| Reported by: | patspam | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | editor | Version: | 0.53 |
| Keywords: | Cc: |
Description
Padre should have an option to scan for valid filenames in console output and make them clickable links. Clicking the link should open the file, and if possible, the appropriate line number.
I got this working for Perl error messages experimentally (locally) as follows:
- changed Padre::Wx::Output to subclass Wx::RichText? instead of Wx::TextCtrl?
- added regexp to scan for " at <file> line <line>."
- Wx::Event::EVT_TEXT_URL handles link onclick event
Ideally I think it would be nicer if it detected all valid file paths (and optionally detected the line number).
I think it should be an option like "Coloured Text in Output Window (ANSI)" since it will obviously slow down console output to scan for paths.
Diff attached.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Diff