Bug 426906 - [Dialogs] Support filename:linenumber in Open Resource to open file and go to number
Summary: [Dialogs] Support filename:linenumber in Open Resource to open file and go to...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2014-01-29 10:38 EST by Robin Stocker CLA
Modified: 2017-12-05 01:27 EST (History)
1 user (show)

See Also:


Attachments
IntelliJ IDEA "go to line number" (9.05 KB, image/png)
2014-01-29 10:38 EST, Robin Stocker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Stocker CLA 2014-01-29 10:38:01 EST
Created attachment 239432 [details]
IntelliJ IDEA "go to line number"

For Java files, there is a command called "Open from Clipboard", which is useful for opening e.g. Foo.java:20, which opens the file and directly jumps to line 20.

It would be useful if "Open Resource" would also support a format like that so that it could be used for all file types. It already supports "/" for matching parts of parent directories.

In case of ".+:\d+", it would list the file(s) matching the pattern left of the ":", and when a selection is opened, jump directly to the line number specified right of the ":".

On some platforms it's possible that a file name contains ":", so a literal search for that file should probably be done in addition for the results to be complete.


Note that IntelliJ IDEA supports this syntax already (see attachment): http://www.jetbrains.com/idea/webhelp/navigating-to-class-file-or-symbol-by-name.html