coteditor / CotEditor

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

Abnormal phenomenon during input #1661

Closed woshiniming007 closed 3 months ago

woshiniming007 commented 3 months ago

Description

When I select the character in the picture and type 4418, I will find that the nearby quotation marks become abnormal and the input is confused.

https://github.com/coteditor/CotEditor/assets/55045806/31d1a142-ee26-4054-8484-b2b341b43d0f

raw text:

curl -X POST http://127.0.0.1/pipelinePerform/savePipelineImage  -H 'Content-Type: application/json;charset=UTF-8' -d '{\"pipelineHistoryId\":'$HISTORY_ID', \"uniqueId\":\"'$imageId'\", \"artifactoryName\":\"'${imagename}'\", \"artifactoryType\":\"container\",\"artifactoryTag\":\"'ci_${commitId}_$BUILD_ID'\"}'   -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8'  

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

No response

CotEditor version

4.8.5

macOS version

14.5

Additional context

No response

1024jp commented 3 months ago

You can disable the feature by turning off the "Smart quote" option for the appropriate mode in the Mode settings pane.

Screenshot 2024-06-29 at 11 57 14
woshiniming007 commented 3 months ago

Thank you! But if it weren't for your reply, some people might not know the impact caused by this option, and as shown in the video, the logic of the automatic quotation marks effect generated in certain contexts is also difficult to understand. @1024jp