coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.46k stars 431 forks source link

'Reopen windows from last session' not working #1682

Closed MichaelHipp closed 3 months ago

MichaelHipp commented 3 months ago

Description

The option to 'reopen windows from last session' is not working.

To Reproduce

Open one or more files. Close CotEditor. Open CotEditor. The previously opened files are not there, only a new empty document.

Expected behavior

The files previously open are re-opened just as they were.

CotEditor version

CotEditor: 4.8.7 (657)

macOS version

System: macOS Version 14.4 (Build 23E214)

Additional context

No response

1024jp commented 3 months ago

I could not reproduce the issue in my environment.

So, could you provide further information to me?

  1. Close CotEditor. Open CotEditor.

    Please describe the actions step-by-step. Did you completely close CotEditor, for instance using the Command+Q keys?

  2. Please share the screenshots of both:
    • The General settings pane in CotEditor Screenshot 2024-08-13 at 14 18 13
    • The Windows section in the Desktop & Dock pane in the System Settings: Screenshot 2024-08-13 at 14 15 11
MichaelHipp commented 3 months ago

Thank you.

To close CotEditor, I clicked the red X in the upper left corner of the CotEditor window. To open CotEditor, I clicked the CotEditor icon in the dock.

Edit: presently CotEditor has 'keep in dock' checked on the dock icon, but I've tried it both ways.

Screenshot 2024-08-13 at 5 41 49 AM Screenshot 2024-08-13 at 5 42 34 AM
1024jp commented 3 months ago

Thank you for the reply.

To close CotEditor, I clicked the red X in the upper left corner of the CotEditor window.

Aha, OK. That’s not the right way to quite an application in macOS and the reason why your windows are not restored. If you close a window, the window is literally closed and not considered to be a window to restore. Instead, you need to quite an application either by selecting CotEditor > Quit CotEditor menu command or by the Command+Q shortcut keys.

MichaelHipp commented 3 months ago

Thank you for the reply.

To close CotEditor, I clicked the red X in the upper left corner of the CotEditor window.

Aha, OK. That’s not the right way to quite an application in macOS and the reason why your windows are not restored.

Ok. I'm recently converting from Windows & Linux. So what happens if I reboot or something crashes? Evidently the reloading of existing documents is not within the control of CotEditor at all?

1024jp commented 3 months ago

You can simply try it.

Well, answering your question: