Skip to content

When you start marktext, remember the last file you opened #3533

Closed

Description

@AdamoChen

When you start marktext, remember the last file you opened。please~~~

Activity

  1. dennisorlando commented on Apr 4, 2023

    @dennisorlando

    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

  2. 1l0oO commented on Dec 9, 2024

    @1l0oO

    boom

  3. added
    ❓ question
    on May 13, 2026
  4. Jocs commented on Jul 4, 2026

    @Jocs
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓ question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions