Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353437 - Allow line:column in the file URLs
Summary: Allow line:column in the file URLs
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Editor (show other bugs)
Version: 0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.3 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 12:37 EDT by Gabriel Petrovay CLA
Modified: 2011-08-30 15:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Petrovay CLA 2011-07-29 12:37:05 EDT
If a line:column patter or similar would be allowed in a file URLs has many advantages:
- allows passing the exact location with a file URL that tells the editor where to scroll in a file
- this allows references to problems in files:
  - a future problem view
  - a future "debug error to code" navigation
  - etc.

Just please give me some hints/pointers where to start and I can look on this as a warm-up.

Thanks!
Comment 1 Mark Macdonald CLA 2011-08-03 11:32:46 EDT
We have something like this already: try opening a file in the editor and adding
> ?line=15
or 
> ?line=15&char=3

to the end of the address.
Comment 2 Mark Macdonald CLA 2011-08-03 11:36:47 EDT
(In reply to comment #1)
> > ?line=15&char=3

Hm, "line" works but "char" is broken. I will fix that.
Comment 4 Mark Macdonald CLA 2011-08-30 15:46:07 EDT
See Comment #3