Bug 347645 - auto-brackets option is missing and Auto Braces fails to give acceptable behavior.
Summary: auto-brackets option is missing and Auto Braces fails to give acceptable beha...
Status: RESOLVED DUPLICATE of bug 350317
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR grave
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-13 00:48 UTC by george.embrey@covirtual.net
Modified: 2015-10-08 15:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description george.embrey@covirtual.net 2015-05-13 00:48:21 UTC
In previous versions of kwrite / kate / kdevelop, auto-brackets allowed text to be highlighted, then encased between quotes (double and single), brackets, braces and square brackets.  The current version of kwrite in Debian Jessie is 4.14.2 and the auto-brackets functionality is missing.

The Auto-Braces plugin DOES NOT provide equivalent or acceptible behavior for a professional programmer's editor.  How can I quickly restore the previous behavior to my favorite editing IDE as the current version is costing me money?

Reproducible: Always

Steps to Reproduce:
1. With Auto Braces turned on (auto-brackets is no longer available), type a few words of text.
2. Highlight a portion of text then press any of the following keys " ' [ ( {
3. Instead of the highlighted text being encased between the chosen quotes or brackets / braces, the quotes or brackets / braces appear and the text is gone.

example: Type the following text: The Fat Cat
Now with the mouse or keyboard select the words Fat Cat then press the " key

Actual Results:  
The ""

Expected Results:  
The "Fat Cat"

Kate / Kdevelop have served me well for the past 7 years and without auto-brackets it is now seriously broken,  I use the earlier versions on several of my computer systems and none of these have the issue.

Please replace the Auto Braces plugin with one that enables the correct behavior of preserving selected text when using brackets, or restore the code for auto-braces.
Comment 1 Christoph Cullmann 2015-10-08 11:20:59 UTC
That is fixed now in ktexteditor master again. Should be ok for people after frameworks 5.16 is out in a month.
ATM only basic stuff works like the adding of closing brackets automatically and what you requested here => selection will be sourounded by brackets.

commits are found in bug 350317

*** This bug has been marked as a duplicate of bug 350317 ***
Comment 2 george.embrey@covirtual.net 2015-10-08 15:37:18 UTC
Are there any patches which can be backported to kdevelop 4.7.0 or kate 3.14.2 (Using KDE Development Platform 4.14.2)  to get them working correctly as I really don't want to wait for Debian 9 or 10 to get my editors working correctly again.