The media in this post is not displayed to visitors. To view it, please go to the original post.

Here's a fun little @libreoffice trick, that I've just stumbled across by accident:

If you select some text (e.g. triple click, or drag-to-select), and then type an opening bracket, it is automatically closed at the end of the selected text.

It works for (, [, and {.

#LibreOffice #Linux

in reply to Neil Brown
Coding text editors like emacs and vi/vim have had this kind of ability for decades, as most users know. Pairing open and close elements when editing source code is a common task that's easily automated. Word processors are not going to encounter similar structured content as often.
@libreoffice
in reply to Flittermouse 🎸🥁🎹🏳️‍⚧️🐩

@Flittermouse Except there are few cases when writing prose where you would use a single opening element (typically for the index of an enumerated list). Outside of a list context, grouping elements are almost always paired. Grouped expressions don't appear as often in human-oriented writing compared to code but the usage is about the same. When you do see a (, [, or { there will almost always bw a closing element. The exceptions would be < and > since they are mathematical characters repurposed for grouping; even then, they don't usually appear in running text.

Automatically pairing grouping elements seems generically useful, not just when writing Lisp...

in reply to Neil Brown
Cw: brackets/quotes for days
in reply to Neil Brown
Not only this, it leaves the selected text selected and adds the opening and closing brackets (or whatever) to the selection. So if you have some text that you want to put in (say) quotes and parentheses, you can select it, then type an opening quote and an opening parenthesis.
in reply to Neil Brown
This is a very surreal thing to read because I regularly do this in VS Code and Godot's code editor. You need brackets of varying kinds a lot while writing code, and LibreOffice sounds like software that you could possibly write in, so, it makes sense for it to be there!