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.

2 points

CopyQ

permalink
report
reply
2 points

Looks good, thanks!

permalink
report
parent
reply
2 points

Kate snippets. If you download them you think “huh do I need to know XML or what?”

But just install the extension and everything has a nice GUI

permalink
report
reply
5 points

Pulsar (i.e. active fork of Atom) has a pretty comprehensive snippets package that comes bundled with the editor. Can be configured with some fairly simple cson, for example with Markdown:

'.source.gfm':
  'Hello Lemmy':
    'prefix': 'helem'
    'body': 'Hello Lemmy!'

You type helem then press tab and it will expand to Hello Lemmy! when using the Markdown grammar (source.gfm).
It can handle custom tab stops too so you can make a longer preformatted sentence with gaps to insert words which you can just tab through (the $1, $2, $3).

'.source.gfm':
  'My custom snippet':
    'prefix': 'mcs'
    'body': 'My snippet stops here $1 and then here $2 and then continues $3'

You can even do multi-line snippets. For anyone wanting to try it out the docs are here

permalink
report
reply
3 points

I’ve used Autokey with great success in the past. Easy to set up, just works.

permalink
report
reply
7 points

I use Autokey because I prefer a global snippets engine. Then it works in text editors, browsers, email clients, etc.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.5K

    Monthly active users

  • 6.6K

    Posts

  • 180K

    Comments