restoring caret position when file re-opened

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
MoeBass
Posts: 14
Joined: Sat Oct 08, 2005 11:31 pm
Location: southeast USA
Contact:

restoring caret position when file re-opened

Post by MoeBass »

...it would be nice for the caret (text cursor) to remain at the position it was in each source file being re-loaded that it was when the editor was closed, instead of just being on first line of the file(s).
Thank you.
-Moe
if, no matter where you go, nothing seems to change, maybe it's time to look at what you're bringing with you.
TheGreatCornh0lio
Posts: 15
Joined: Sat Oct 08, 2005 11:36 pm
Location: Austria

Post by TheGreatCornh0lio »

Yes thats right, it's a very handy feature of my previous Editor.
<img src="http://www.cs.dartmouth.edu/~rockmore/rockmoreb.gif">
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

This would be possible for some 10 or 100 last files but not for every file. I'm surprised but this has not been requested before.
Karlis Blumentals
Blumentals Software
www.blumentals.net
mwb1100
Posts: 72
Joined: Thu Jun 02, 2005 8:00 am

Post by mwb1100 »

Karlis:

At least one editor I have stores per-file persistent state - including undo information - in an alternate stream of the file (if the file is on an NTFS partition).

I'm not sure of all of the impacts of doing something like this other than the obvious one (doesn't work on FAT/FAT32 partitions), but it might be something for you to think about.
MoeBass
Posts: 14
Joined: Sat Oct 08, 2005 11:31 pm
Location: southeast USA
Contact:

!!!

Post by MoeBass »

admin wrote:This would be possible for some 10 or 100 last files but not for every file. I'm surprised but this has not been requested before.
100 files? :shock: that's one monster editing session :!:
I've had maybe 12-13 files open at one instance when i closed the editor and only those files which were open when the editor was exited would be the ones I cared about having cursor location preserved for.
Implementation idea:
A) when launching editor, read stored config info, re-open previous open files, position cursor respectively per file as their opened, clear stored config info.
B) when exiting editor, store to config info each open file reference along with cursor position for each, proceed with shutdown.
Thanks,
-Moe
if, no matter where you go, nothing seems to change, maybe it's time to look at what you're bringing with you.
Post Reply