Sublime Forum

How to restore cursor position on open file

#1

Good day commander !

How to restore cursor position on open file ?
Is there any plugin ?
Cant find them
thx

0 Likes

#2

I believe by default ST should restore any cursors, (multi-)selections you have made in any open files. You don’t require a plugin for that.

0 Likes

#3

no, they dont
maybe, is there option for it ?
maybe some plugins disabled it ?..

0 Likes

#4

Cursors are rested when ST is restarted or a workspace is re-opened, but for files that have been closed the selection, edit history, etc. is discarded.

0 Likes

#5

VISUAL STUDIO CODE work propertly…
Sublime Text 4 dont…

no one solution found

0 Likes

#6

VS Code indeed seems to restore selections for closed files. You could file a feature request, though https://github.com/sublimehq/sublime_text/issues

0 Likes

#7

I dont need restore selection, I need restore cursor position only

0 Likes

#8

For all intents & purposes, they refer to the same thing. A cursor is just an empty selection of length 0.

Anyways, your best bet is to open a feature request as stated above, because as also stated by bscaaf, ST doesn’t retain those information when the document closes.

0 Likes