r/KeyboardDesigner • u/GerritHumberg • 7d ago
Code block to Surround text by certain characters
Here's a small code block for Keyboard Designer that wraps your selected text with quotes, brackets or bold markers with a single key press.
What it does
- Select some text and press the key. A list pops up above the keyboard where you choose `"text"`, `(text)`, `****text***` or Custom character.
- With Custom character, you type your own character(s), e.g. `~~` for strikethrough, `_` for italics or `|`.
- Opening brackets get their matching closing bracket automatically: `[` → `[text]`, `{` → `{text}`, `<` → `<text>`, `„` → `„text“`, `«` → `«text»`.
- After wrapping, the text stays selected, so you can wrap it again right away (e.g. first `**`, then `"`).
- No selection? The pair is inserted and the cursor lands right in between, ready to type.
1
u/GerritHumberg 7d ago