Skip to content

autosave and new file #3624

@yz778

Description

@yz778

Similar but not exactly the same issue #2230. When autosave is enabled and you create a new, unnamed ("No name") file, you can't exit without saving it first.

How to reproduce:

  1. Run: micro -autosave 5
  2. Type something in
  3. Try to quit (Ctrl+Q)

You're now stuck in a loop until you give the file a name.

Desired behavior:

Autosave should only apply to existing or named files. For unnamed ("No name") files, Micro should still prompt you to save or discard before exiting. This would allow you to keep autosave enabled while still being able to open tabs as a scratch pad without being forced to save.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions