Discussion:
braces being closed automatically when editing cmake files
René J.V. Bertin
2018-11-14 23:20:24 UTC
Permalink
Hi,

I cannot remember having noticed the automatic addition of a matching closing brace while editing cmake files before, e.g.

endif( -> endif()
${ -> ${}

I've never been able to get used to such things and NOT get duplicate closing braces because I "automatically" add them myself.

New or not, is it possible to deactivate this feature? The one relevant checkbox I found in the KTextEditor config panels is already off, and Kate doesn't do this so I'm guessing this is a KDevelop feature.

Thanks...
R.
Aleix Pol
2018-11-15 08:26:49 UTC
Permalink
Post by René J.V. Bertin
Hi,
I cannot remember having noticed the automatic addition of a matching closing brace while editing cmake files before, e.g.
endif( -> endif()
${ -> ${}
I've never been able to get used to such things and NOT get duplicate closing braces because I "automatically" add them myself.
New or not, is it possible to deactivate this feature? The one relevant checkbox I found in the KTextEditor config panels is already off, and Kate doesn't do this so I'm guessing this is a KDevelop feature.
Thanks...
R.
Yes, it's one coming from ktexteditor that you enabled eventually
since it's disabled by default.

Aleix
René J.V. Bertin
2018-11-15 10:04:11 UTC
Permalink
Aleix Pol wrote:

(apologies if this goes in twice; an intial copy sent via KNode/GMane got moderator-queued because considered spam...)
Post by Aleix Pol
Yes, it's one coming from ktexteditor that you enabled eventually
since it's disabled by default.
I was silently blaming KTextEditor too, I just installed it from git/master on
the machine where this happens.

Any idea which option? I've had "Editing Options"/General/"Auto Brackets" turned
off since forever (and I'd expect it to apply to all files, not just cmake files).

Might be related to 354fda8b563ea6fcf66813f02aadae3349aa25c6?

BTW, does KTextEditor have settings that are application-specific nowadays?

R.
Kevin Funk
2018-11-21 10:30:28 UTC
Permalink
Post by René J.V. Bertin
(apologies if this goes in twice; an intial copy sent via KNode/GMane got
moderator-queued because considered spam...)
Post by Aleix Pol
Yes, it's one coming from ktexteditor that you enabled eventually
since it's disabled by default.
I was silently blaming KTextEditor too, I just installed it from git/master
on the machine where this happens.
Any idea which option? I've had "Editing Options"/General/"Auto Brackets"
turned off since forever (and I'd expect it to apply to all files, not just
cmake files).
Yes. That's where it happens.

Did you try changing it in KDevelop's settings and test? It has the desired
effect here.
Post by René J.V. Bertin
Might be related to 354fda8b563ea6fcf66813f02aadae3349aa25c6?
BTW, does KTextEditor have settings that are application-specific nowadays?
Since KF5 v5.50.0 it does that again, see:
https://cgit.kde.org/ktexteditor.git/commit/?
id=7a7b2f02f89f170da34e68084d11fd813279260f

Regards,
Kevin
Post by René J.V. Bertin
R.
--
Kevin Funk | ***@kde.org | http://kfunk.org
René J. V. Bertin
2018-11-15 08:42:58 UTC
Permalink
Post by Aleix Pol
Yes, it's one coming from ktexteditor that you enabled eventually
since it's disabled by default.
I was silently blaming KTextEditor too, I just installed it from git/master on
the machine where this happens.

Any idea which option? I've had "Editing Options"/General/"Auto Brackets" turned
off since forever (and I'd expect it to apply to all files, not just cmake files).

BTW, does KTextEditor have settings that are application-specific nowadays?

R.
Loading...