I have turned on option: "Enable automatic brackets".
I start typing some string which starts with quotation mark and when I want to close quotation mark I get at end double quotation marks (two quotation marks). This is really annoying. I know I could turn off above option, but sometime I need to automatic closing of quotation marks. I don't want several time switch this option. I wonder if it could be a little bit smarter and always don't put two characters of quotation marks at end of string.
STEPS TO REPRODUCE
1. Turn on option "Enable automatic brackets".
2. Start type string like this: "abcd
3. Put quotation mark at end of string
Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Well, sometimes there is such similar behavior, but in the here mentioned way can I not reproduce this.
After first hit of double quotes you got "|" (the bar is the cursor) so, typing then abcd ended in "abcd|", which is fine.
You can have some odd result when you try to add the quotes afterwards to some word. With our abcd, adding a quote to the begin "abcd is fine, adding then a quote to the end ended in the mentioned result "abcd""
As workaround could you select the word and hit the quote, which ended in "|abcd". However, I'm annoyed too of that and will take a look at it.
(In reply to Lothar from comment #1)
> As workaround could you select the word and hit the quote, which ended in
> "|abcd". However, I'm annoyed too of that and will take a look at it.
Yes is simple and easy when you have only one word (double click solves it, I mean selects), but in case of sentence it is not so fast, obvious just because there is need to select whole longer or shorter collection of words and this of course takes more time.
BTW. I case of selection one word I wasn't able to find any shortcut (in editor). I think this for sure would speed up selection. Let me explain showing situation like this:
I have such string: abcd|e and I invoke some keyshortcut, which selects this word, and after just invoke quotation character. In result I get for example: "abcde"|
and all of this without taking your hands off the keyboard.
Thank you that you will take look at this.
> BTW. I case of selection one word I wasn't able to find any shortcut (in editor).
Ctrl-Shift-Left/Right See also Settings->Configure-Shortcuts... But, yes, no "Select word where cursor is in"
> I have such string: abcd|e and I invoke some keyshortcut, which selects this > word, and after just invoke quotation character. In result I get for example: >"abcde"|
> and all of this without taking your hands off the keyboard.
There is some scripting stuff in KTE, perhaps you can help yourself
If so, offer your result in https://phabricator.kde.org , if not open a new bug report for that different issue.
Git commit 714948cac1d12a96f3d6bad9351480f1fb347450 by Christoph Cullmann, on behalf of loh tar.
Committed on 24/03/2019 at 12:48.
Pushed by cullmann into branch 'master'.
DocumentPrivate: Skip auto quotes when these looks already balanced
* Improve readability, const correctness
* const QChar as value, not reference
Related: bug 382960
Differential Revision: https://phabricator.kde.org/D19598
M +60 -0 autotests/src/katedocument_test.cpp
M +2 -0 autotests/src/katedocument_test.h
M +33 -19 src/document/katedocument.cpp