Megaxela/QCodeEditor

Remove parenthesis automagically

Closed this issue · 7 comments

Is your feature request related to a problem? Please describe.

Whenever you delete an opening bracket or parentheses as a typo, it won't delete the corresponding closing bracket.

Describe the solution you'd like

Let's say the cursor is at the |
In a(|)b and a()|b, when you press Backspace, it should become ab. but in a(|bcd)e when you press Backspace it should still be a|bcd)e.

Describe alternatives you've considered
none

Additional context
none

Originally requested here cpeditor/cpeditor#42

ouuan commented

I suggest making it optional.

I suggest making it optional.

Surely!! @Megaxela can provide a public method like setAutoRemoveParenthesis(bool).

Sounds nice. I'll implement this soon.

Sounds nice. I'll implement this soon.

Upto when (I mean how much time) can we expect it do be done?

ouuan commented

Sounds nice. I'll implement this soon.

Upto when (I mean how much time) can we expect it do be done?

I have no idea, but CP Editor will use Scintilla soon.

Sounds nice. I'll implement this soon.

Upto when (I mean how much time) can we expect it do be done?

I have no idea, but CP Editor will use Scintilla soon.

Yes but I I would still use this Editor because of rich theme support. I will propose some PR in coming days to make this and some other important features work.