Bug 488077

Summary: quotes implicitly in "automatically close brackets" feature
Product: [Applications] kate Reporter: Eric S <subscriber>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eric S 2024-06-05 15:27:26 UTC
SUMMARY
My "Enclosing characters" field in my Settings->Editing Options->General is set to 
<>(){}[]
But checking the box above it for "Automatically close brackets when opening bracket is typed" causes the editor to automatically close double (") and single (') quotes. There are 3 problems with this:
1) these characters are not listing in the "Enclosing characters" field
2) the wording for the checkbox. These characters are not "brackets"
3) Autoclosing quotes should not be a default, nevermind a hidden default. It is counterproductive and annoying whenever you need to add quotes to existing text, write an appostrophe etc, which for me is OFTEN.


STEPS TO REPRODUCE
1. Do not have " or ' in the "Enclosing characters" field
2. Check the box for  "Automatically close brackets when opening bracket is typed"
3. Type a " and observe how it is automatically closed.
4. Uncheck the box for  "Automatically close brackets when opening bracket is typed"
3. Type a " and observe how it is no longer automatically closed.

OBSERVED RESULT
" and ' are automatically closed or not according to the "Automatically close brackets when opening bracket is typed" checkbox even if not in the "Enclosing characters" field

EXPECTED RESULT
" and ' are automatically closed only when the "Automatically close brackets when opening bracket is typed" checkbox even and included in "Enclosing characters" field

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0