Bug 120253 - Auto Brackets not working properly
Summary: Auto Brackets not working properly
Status: RESOLVED DUPLICATE of bug 117716
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.4.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 17:53 UTC by Timo Bergmann
Modified: 2008-04-28 18:36 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 Timo Bergmann 2006-01-16 17:53:08 UTC
Version:           2.4.1 (using KDE 3.5.0 Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.7-default

The "auto brackets" option in kate is not working properly.

Example:

When I type "{" for the first time, I get a closed bracket "}" correctly.
When I now type som letters or e.g. a simple space, and I type a new bracket "{",
the closing bracket doesnt occur, i.e. the resulting output would be "{ {}"
instead of "{ {}}". In general one gets "{something{}" instead of "{something{}}"
when using the auto brackets option in kate.

When I do not type any letters, I will get all brackets correctly, e.g. "{{{}}}".
Comment 1 Dominik Haumann 2006-01-16 19:43:05 UTC
This is due to changes made in bug #101213 ...
Comment 2 Dominik Haumann 2006-06-05 13:41:41 UTC

*** This bug has been marked as a duplicate of 117716 ***
Comment 3 Mathieu Jobin 2006-07-21 02:29:31 UTC
I don't think This is due to changes made in bug #101213 ... 

I think its related to the auto-indent code. see my comment#27 and #28 in bug #101213

therefore it is not a duplicate of bug #117716

which is totally different anyway.

Comment 4 Dominik Haumann 2006-07-30 10:41:47 UTC
It is a duplicate, because the root of the evil is the same, period.
Comment 5 Mathieu Jobin 2006-07-31 02:20:06 UTC
no its not.
its auto indent problem.
Comment 6 Oleksandr Manzyuk 2008-04-28 18:36:40 UTC
The bug status is "RESOLVED", although I still get exactly the same behavior as described above. I am using kate 2.5.8 on Ubuntu Linux (i686) release 2.6.22-14-generic. 

May I make a general suggestion: it would be nice to have a configurable auto-bracketing. For example, when editing a LaTeX file, I systematically use \(...\) instead of $...$ and \[...\] instead of $$...$$. It would be nice to have the opportunity to specify (preferably, depending on the context) what sequences of characters should be treated as delimiters and how they should be auto-completed.