coteditor / CotEditor

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

Directly open a blank document when launching the app #1642

Closed Roccobot closed 1 month ago

Roccobot commented 1 month ago

Description

I used to have a new blank document created every time I launched CotEditor. Now as I click the icon on the Dock the app opens a 'Open' dialogue that also has a 'Create new document' button:

Snap_20240522_143705

I have versioning and iCloud disabled so I wonder why it is happening? 🤔 It might be something OS-related, but it currently happens with CotEditor only

To Reproduce

Just launch CotEditor '(Preferences → General → When app launches' must be set as Open new document)

Expected behavior

No response

CotEditor version

4.8.3

macOS version

14.5

Additional context

No response

1024jp commented 1 month ago

duplicate #1638 This is a bug (sorry!) on CotEditro 4.8.3 and will be fixed in the next version, which will be released within this week.

Roccobot commented 1 month ago

duplicate #1638 This is a bug (sorry!) on CotEditro 4.8.3 and will be fixed in the next version, which will be released within this week.

Happening again :(

1024jp commented 1 month ago

Happening again :(

In fact, the current implementation cannot 100% suppress the Open dialog on launch. Especially when CotEditor was in the background when it finished the launch and is made active after that, the Open dialog tends to appear instead of creating a new untitled document. This behaviour is the same as versions before CotEditro 4.8.3. Unfortunately, there is no way to control the launch behaviour for what to open with the APIs currently provided by Apple. I have already sent feedback about it to Apple. I hope Apple will solve it one day.

If you face a case that the Open dialog always shows up, let me know.

Roccobot commented 1 month ago

Thanks, fingers crossed 🤞🏻🍀