Saturday, May 4, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3141  / 3 Years ago, mon, october 18, 2021, 11:07:47

Is there any way (Plugin, Script) to add quotation marks (or square brackets or parentheses) at the beginning and the end of selected text via a keyboard shortcut in the Kate editor?



I think of something like selecting a word and then pressing Ctrl-U (this would upcase the selected word). Is there something similar for quotation marks?



The "Configure Shortcuts" menu does not provide this option.


More From » shortcut-keys

 Answers
6

One solution would be the following:




  • Go to Settings > Configure Kate > Editing

  • Activate the Auto brackets option



Now you are able to wrap the selected text with brackets.



Though there is one drawback. The Auto brackets option is "always on", meaning that once you type "(" the corresponding ")" also comes up.


[#36637] Wednesday, October 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mance

Total Points: 198
Total Questions: 105
Total Answers: 128

Location: South Georgia
Member since Mon, Aug 16, 2021
3 Years ago
;