Page 1 of 1

SOLVED: [DELETE POST] May be yummy but please stop eating my )

Posted: 06 Sep 2022 04:13
by inspector71
Hi

Sorry to load you up with a third open bug Rickard but this one is, well, maybe not so much a bug as a forever-annoyance I just have ignored but want to raise now as it's just shitty, but may be a small one to fix.

Call them braces (those are for holding up your pants though) or parentheses (parents who write multiple thesis for fun?) or brackets (they hold up shelves, don't they?) ... whatever you like (yes, I know there's probably technically correct definitions but bugger that for now, not as fun :) ) ... but why must typing close brackets (my personal preferred word, along with "curly brackets", "square brackets", haha) within a set of brackets always MUNCH the existing close bracket ?

Just seems so silly and perhaps an unfortunate case, of which there seems to be so many that text editors have not evolved beyond, wherein attempting to be helpful with auto completions is, well, only ever half-arsed.

Again, this is not a massive issue and not a criticism specifically of RJTE. Many editors either do this sort of half-arsed (half helpful, half unhelpful) auto-correction. I may be the only hack in the world who types this way but it's bloody annoying as buggery, as it were.

Amongst the 'colour' of my writing, does this bug description make sense or would it be more helpful to have a video demo?

Re: May be yummy but please stop eating my )

Posted: 06 Sep 2022 08:15
by pjj
Frankly, I got used to it. ...However I can see curly braces don't behave this way, only round and square ones, so perhaps there would be some sense in uniting it? I really don't have opinion on this.

Re: May be yummy but please stop eating my )

Posted: 06 Sep 2022 15:06
by inspector71
pjj wrote: 06 Sep 2022 08:15 Frankly, I got used to it.
Turned off auto completion.

Re: [DELETE POST] May be yummy but please stop eating my )

Posted: 08 Sep 2022 14:53
by Rickard Johansson
Turning off "Auto close braces" should give the desired behavior.

I've marked this as solved (instead of deleting it, since it may be helpful to other users).

Re: SOLVED: [DELETE POST] May be yummy but please stop eating my )

Posted: 09 Sep 2022 02:24
by inspector71
Trouble is, auto closing braces is helpful in other cases, but I can think of one where it's not.

Is it theoretically possible to make RJTE ignore auto-completion with a keyboard override. For example, when I know I'm closing a bracket that will eat the next one, I could perhaps use Ctrl + Shift + ) ?

Not asking if this is possible with a tweak of an existing version. Does not appear to be through re-assigning keyboard shortcuts at least. Would it be possible to code into a future version?