You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When you start marktext, remember the last file you opened #3533
Agreed: that would be lovely. Possible implementation pseudo:
1. add an option in "Action on startup" called "Open the last opened folder" and one for "Open the last opened file" (or both)
2. On app exit, if the options in 1. are active, save the path to the file / folder to the preferences file (or wherever the app data is)
3. On app open, if the options in 1. are active, open the before-mentioned file / folder
It would be pretty much a copy-paste of the "open folder at startup" feature (located in Preferences->General->Action on startup) with a different file path; I might personally look into it but I don't speak javascript that well
Thanks for the suggestion! This is already implemented today: MarkText's default startup behavior (Preferences > General > Startup, 'Restore all previously opened files/folders') reopens exactly the files and tabs you had open when you last closed the app, and there's also an 'Open last folder' option if you prefer that instead. If you're still seeing MarkText forget your last file on a recent version, please reopen with your exact steps, OS, and version so we can dig into a possible regression — otherwise I'll close this as already completed.
Activity
dennisorlando commentedon Apr 4, 2023
Agreed: that would be lovely. Possible implementation pseudo:
It would be pretty much a copy-paste of the "open folder at startup" feature (located in Preferences->General->Action on startup) with a different file path; I might personally look into it but I don't speak javascript that well
1l0oO commentedon Dec 9, 2024
boom
Jocs commentedon Jul 4, 2026
Thanks for the suggestion! This is already implemented today: MarkText's default startup behavior (Preferences > General > Startup, 'Restore all previously opened files/folders') reopens exactly the files and tabs you had open when you last closed the app, and there's also an 'Open last folder' option if you prefer that instead. If you're still seeing MarkText forget your last file on a recent version, please reopen with your exact steps, OS, and version so we can dig into a possible regression — otherwise I'll close this as already completed.