Wednesday, 11 July 2018

kate - add quotation marks (or square brackets or parentheses) to selected word via shortcut


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.



Answer



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.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...