Bug 488077 - quotes implicitly in "automatically close brackets" feature
Summary: quotes implicitly in "automatically close brackets" feature
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 24.02.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-05 15:27 UTC by Eric S
Modified: 2024-06-05 15:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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