Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically inserted period after pressing space twice #1497

Open
clayton256 opened this issue Jul 9, 2023 · 4 comments
Open

Automatically inserted period after pressing space twice #1497

clayton256 opened this issue Jul 9, 2023 · 4 comments
Labels
 matter issues caused by bugs by Apple request feature requests from users

Comments

@clayton256
Copy link

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 clayton256 added the potential bug issues not yet tested label Jul 9, 2023
@1024jp 1024jp added request feature requests from users and removed potential bug issues not yet tested labels Jul 30, 2023
@1024jp
Copy link
Member

1024jp commented Jul 30, 2023

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
Copy link
Member

1024jp commented Nov 29, 2023

cf. NSTextView - Any way to prevent the "double space to enter period" MacOS feature? - Apple Developer Forums

@1024jp 1024jp added this to the To Do milestone Nov 29, 2023
@1024jp
Copy link
Member

1024jp commented Feb 28, 2024

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 1024jp removed this from the To Do milestone Feb 28, 2024
@1024jp 1024jp added the  matter issues caused by bugs by Apple label Feb 28, 2024
@1024jp
Copy link
Member

1024jp commented Mar 2, 2024

Filed: FB13669125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
 matter issues caused by bugs by Apple request feature requests from users
Development

No branches or pull requests

2 participants