CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Automatically inserted period after pressing space twice

Open clayton256 opened this issue 2 years ago • 4 comments

Description

Is there a way to prevent CE from automatically inserting a period after pressing space twice without turning it off system wide? I depend on the feature when writing documentation and emails. But when coding, it create errors.

To Reproduce

  1. type a block of text
  2. press the space key twice
  3. notice there is a period following the text

Expected behavior

I would rather there isn't a period inserted

CotEditor version

Version 4.5.6 (571)

macOS version

13.5 Beta (22G5059d)

Additional context

Yes, i'm running macOS ventura beta but this has been happening since the new editor core rolled out.

clayton256 avatar Jul 09 '23 23:07 clayton256

Is there a way to prevent CE from automatically inserting a period after pressing space twice without turning it off system wide?

Currently, CotEditor doesn't have an option to turn it off application-wide. I understand it is annoying for writing code. Let me think for the future implementation.

1024jp avatar Jul 30 '23 06:07 1024jp

I initially planned to implement this feature in the next minor update. However, now I realized this is way more complicated than I thought since Apple doesn't provide a proper API for it. So I would like to wait for better API in upcoming systems.

Instead, I recommend you to use the following command in Terminal.app. This allows you to disable the "Add period with double-space" option only in CotEditor.

defaults write com.coteditor.CotEditor NSAutomaticPeriodSubstitutionEnabled NO

1024jp avatar Feb 28 '24 10:02 1024jp

Filed: FB13669125

1024jp avatar Mar 02 '24 05:03 1024jp