Bookmarks disappear upon save & reopening file
I am using the portable version of N++. I’m using the bookmarks and when I save and reopen the document, the bookmarks have disappeared.
How can I stop this from happening?
@kris-rowlands Hi. I’m pretty sure you mean “save, close and reopen the document”, right?
Sad fact is, bookmarks are not preserved across reopenings, including the explicit “Reload” command, and, when an externally changed file is autodetected and user says ‘yes’ to reload. This doesn’t rely on whether version is a normal install or portable.
You probably know that we get preservation when npp undergoes a normal close and restart (if Session snapshot enabled in Prefs-Backup), which kind of suggests npp could maintain bookmark data with recently closed files without gargantuan effort if there was community hunger for it.
If someone knows about workarounds, maybe a plugin providing bookmark preservation features, I’d love to hear about it.
Bookmarks are saved as part of the “session”.
If you close a file, it gets removed from the session, and when reopened, it looks like a new file to the session (thus no bookmarks).
There’s a demo PythonScript HERE that could be “rounded out” to pseudo-provide a load/save extension for bookmarks.
For me, and I presume most users, the capability in Notepad++ currently is enough.