Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Editor: reopen a file at the last cursor position

Open felhasznalonev opened this issue 2 months ago • 8 comments

Remembering last cursor position of previously edited and saved file after reopening for editing. (Setting example: toggle button to preserve the last editing position.) If I quit Markpad and open same file again, then I am positioned at start of file (with longer texts, this can be very annoying).

felhasznalonev avatar Sep 24 '26 00:09 felhasznalonev

I prototyped this. Doing it properly means a new per-file storage layer and changes across the whole open/close/restore path, and the prototype wasn't reliable enough to ship. Not something we can take on right now, so leaving this open for later.

PathGao avatar Sep 24 '26 21:09 PathGao

Also a kind of reopening case: If I open for example 10 files, edit them, save them, and close application, then next time, when I open application, I have to open all 10 files again. With many files, this is quite annoying. (Maybe setting option could be added so that it is not necessary to reopen previously opened files.)

felhasznalonev avatar Sep 26 '26 01:09 felhasznalonev

you can use window tag and tag group to do it。From menu to creat window tag group,and pin the tag,you will get a pinned group,like chrome

PathGao avatar Sep 26 '26 04:09 PathGao

Window tag manager is unusable for this. Tag grouping is only displayed on Home if one of items from group is open, and I need to know which ones belong to same group. For many files, this becomes unusable and quite annoying.

felhasznalonev avatar Sep 26 '26 08:09 felhasznalonev

Window tags should cover most of this. How to use them:

  1. Open the files you want to keep together in one window.
  2. Menu → Window Tag…, give it a name and color, Save.
  3. Right-click the tag in the title bar and choose Pin Tag.

Once pinned, the group shows up under Pinned Windows on Home even when none of its files are open, and clicking it reopens all of them. An unpinned tag is not listed on Home, which is probably what you ran into.

Right now the Home card only shows how many files a group has. I can add what Chrome does: right-click the group to see which files are in it. Would that help? Other kinds of grouping aren't something we can offer at the moment.

PathGao avatar Sep 26 '26 11:09 PathGao

I pinned Window Tag and not listed on Home when I close app and open again. If I open a file that has tag, then if I go to the Home, then tag is listed. Problem is that I need to remember which files (many files) have same tag, not to mention that one file can have two tags. So tag feature is okay but not for my suggestion starting with

"Also a kind of reopening case:" (...)

Regardless of all this, the file list that appears on right-click can help users in other cases.

felhasznalonev avatar Sep 27 '26 02:09 felhasznalonev

Thanks, that was a bug. We've reworked window tags for the next version:

  • Pinned tags show on Home right after launch, without opening a file first.
  • Right-click a pinned tag on Home to see which files it holds.
  • The app menu lists all pinned tags. Pick one to open its files in a new window, or jump to the window that already has it open.
  • Right-click the tag in the title bar and choose Close Tag to close its files and go back to Home. The pinned tag keeps its file list.

Please give it a try once the next version is out and let us know if it covers your reopening case.

PathGao avatar Sep 27 '26 04:09 PathGao

Please give it a try once the next version is out and let us know if it covers your reopening case.

Behaves v2.8.0 release better.

felhasznalonev avatar Sep 27 '26 23:09 felhasznalonev