coteditor / CotEditor

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

.txt not added to Plain Text files #1542

Closed FirasAleem closed 4 months ago

FirasAleem commented 11 months ago

Description

Hello,

I have Plain Text set as the default format, and it shows up on the top right as "Plain Text", however when I save the file, it saves with no extension. I have to add .txt manually for it to show up. I’ve tried changing the default format to something else, like C and it saves with .c but refuses to with a plain text file

To Reproduce

  1. Open CotEditor
  2. Save file with default set as plain text
  3. File saves without .txt extension

Expected behavior

No response

CotEditor version

4.6.3

macOS version

14.0

Additional context

No response

1024jp commented 4 months ago

Sorry for taking the time to reply.

The Save dialog on macOS has a feature to toggle hide file extension. This option became hard to find in modern operating systems, but it is in a menu on the Save dialog. Does this situation apply to you?

Screenshot 2024-05-28 at 9 22 28

If so, I recently found the file extension is completely removed when the option is turned on. I'll fix this issue on the next version by just disabling the option. (It is of course better if I could fix it without disabling it. However, this seems not easy on CotEditor...)

FirasAleem commented 4 months ago

Hey, no worries! This seems to have fixed it, thanks!