Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 127145

Summary: [EditorMgmt] Remember line position in file when reopening it in an editor
Product: [Eclipse Project] Platform Reporter: Glenn Remar <glenn_remar>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: avijayr, daniel_megert, piotr.findeisen
Version: 3.0.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Glenn Remar CLA 2006-02-09 14:57:10 EST
Attempt to return to line position when reopening file.  This is functionality that I had in Slickedit that I miss in Eclipse.
Comment 1 Glenn Remar CLA 2006-02-09 16:18:19 EST
This is functionality that I miss from using Visual Slickedit.  
Comment 2 Douglas Pollock CLA 2006-02-13 12:39:31 EST
I believe the concept of line number is not generic enough to be part of the workbench's concept of an editor.  This is likely support that would need to be provided by Platform/Text.
Comment 3 Dani Megert CLA 2006-02-13 13:07:54 EST
We don't plan to do this on reopening an editor but when restarting Eclipse (see bug 124615).

*** This bug has been marked as a duplicate of 124615 ***
Comment 4 Dani Megert CLA 2008-01-24 11:27:09 EST
*** Bug 216163 has been marked as a duplicate of this bug. ***
Comment 5 Vijay Aravamudhan CLA 2008-02-26 21:10:45 EST
Since 2006 when comment #3 was entered, I think I saw that the platform text DOES now include the concept of line numbers. If that is correct, could you please add this functionality now? As I said in bug 216163, there is already an open source free plugin available that does this. It would be good if the concept can be accomplished from the core eclipse platform itself.
Comment 6 Vijay Aravamudhan CLA 2008-02-26 21:16:58 EST
Daniel - for comment #3, I dont think this is a duplicate of bug 124615. That one deals with the ACTIVE editor being chosen when the workbench was closed. The functionality that is being requested in this bug is to remember the line and character position of the cursor and restore that when an editor is opened or reopened (both within the same runtime session or on a later run).
Comment 7 Dani Megert CLA 2008-02-27 02:47:52 EST
Sorry, but no plans to do this.
Comment 8 Piotr Findeisen CLA 2015-03-18 08:42:17 EDT
Hi,

Note: this is resolved as duplicate bug 124615 but, as state before, this is not a duplicate. That's why I comment here, and not under bug 124615.


Several years passed, maybe you could reconsider adding this functionality to Eclipse? Perhaps for text editors only (the ones governed by "Text Editors" preferences section)?

I have a habit of closing the editor tabs when there are too many, but then I have to search my position in those files when i return (reopen).
Comment 9 Dani Megert CLA 2015-03-18 10:09:59 EDT
(In reply to Piotr Findeisen from comment #8)
> Hi,
> 
> Note: this is resolved as duplicate bug 124615 but, as state before, this is
> not a duplicate.

Correct.

 
> Several years passed, maybe you could reconsider adding this functionality
> to Eclipse?

No one will work on this. If someone wants to provide a solution, we can reopen the bug.