Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

Display pair brackets on selection #5583

Closed pintassilgo closed 3 days ago

pintassilgo commented 3 days ago

I was using mouse to select a block of code to delete. When I reached the end of the first selected line, which is a if (...) {, I was expecting the closing } to be highlighted so I could easily see until where I should select. But there was no highlight. Pair highlight doesn't work while you're selecting. I miss this from other editors, it's a good feature to have.

Alexey-T commented 3 days ago

but in SublimeText 4 I don't see brackets hilite during selection. even if I release the mouse btn.

maybe you can mention in what editors you see the hilite during selection. and does user need to unpress the mouse btn?

Alexey-T commented 3 days ago

VSCode. without selection:

Screenshot from 2024-06-27 21-06-19

with selection: no hilite!

Screenshot from 2024-06-27 21-06-03

Alexey-T commented 3 days ago

SublimeText 4. w/o selection:

Screenshot from 2024-06-27 21-13-17

with selection: no hilite!

Screenshot from 2024-06-27 21-13-31

pintassilgo commented 3 days ago

Sublime and VSCode were never my main editor. It was Notepad++ when I was using Windows, then Kate on Linux before I was told about Cuda. Both Notepad++ and Kate have the feature I'm requesting.

And no, on both it s not needed to release the click, even while holding the button (doing the selection) the pair is already displayed and that's how I believe it should be.

Alexey-T commented 3 days ago

Ok, enabled the bracker finder during selection.

Alexey-T commented 3 days ago

beta for linux-x64-qt5. cudatext-x64-qt5-83.zip pls close if ok.

pintassilgo commented 3 days ago

It's good, thank you.