I do a lot of text editing for work and there are some phrases that I have to type frequently. What’s the best way to quickly paste those phrases into a document using a shortcut or keyword? I mainly use Kwrite and Kate as i prefer plain text editors and need no formatting.
I mainly use Kwrite and Kate
Check out Espanso, if you’re ok with something that is system-wide and not a text-editor:
Vim macros are quite easy to use, if you already know how to vi.
Besides macros, I think vim had some other relevant feature for this. Just can’t remember it right now.
I use (neo)vim with UltiSnips for coding, text editing and writing e-mails, and it works great! It’s super customizable.
If I understand you correctly, this is trivial in emacs:
(defun insert-text ()
(interactive)
(insert "your text here"))
(global-set-key your-keybind-here #'insert-text)
You could make it a format string if it relies on data specific to some file or parameter. You could also make the keybind local to certain modes/files rather than a global keybind if you don’t want to pollute your keybind space.
Depending on the complexity, there’s also abbrev-mode
: https://www.gnu.org/software/emacs/manual/html_node/emacs/Abbrevs.html
I use Autokey because I prefer a global snippets engine. Then it works in text editors, browsers, email clients, etc.