Skip to main content

Snippet Expander

Snippet Expander is probably the most powerful way to use snippets. You can use snippets in any text field by typing a keyword without opening the app, which can significantly speed up your workflow.

Configuration

To use the Snippet Expander, you need to set a keyword for your snippet. You can do this in the Snippety app by editing the snippet and setting the keyword field.

Once your keyword is set, you need to make sure that the app has the necessary permissions and that you know what prefix is set for the Snippet Expander.

You can check your trigger and see if everything is configured in App Settings -> Snippet Expander.

Also, please make sure that you configured the app following the Configuration section.

Usage

To use the Snippet Expander, you need to type the keyword you set for the snippet prefixed with the trigger. By default, the trigger is :. So if you set the keyword for the snippet to eml, you would type :eml to expand the snippet.

Delayed Expansion

You may need to define keywords that start with the same phrase, e.g. email and email-signature. Snippety provides a feature called Delayed Expansion, which applies a short delay before expanding the snippet if such a situation occurs, allowing you to type the full keyword.

If you stop typing, the current keyword will be expanded after a short delay.

Cancelling Expansion

Keep in mind that any clicks, shortcuts, or other interactions while typing the keyword, will cancel the expansion. However, Snippety allows using the Backspace key to correct the keyword if you made a mistake.

Using Multiple Prefixes

If you want to use multiple prefixes, you can disable the global prefix and set a prefix for each snippet individually, including it in the keyword.

So for example, instead of using the global prefix : and snippet keyword eml, you can disable the global prefix and set the keyword to :eml.

Advanced Options

All the options available in the App Settings -> Snippet Expander settings.

Match Keyword Case

If enabled, the Snippet Expander will match the keyword case.

Let's assume that you have a snippet hello world with the keyword hw:

  • :hw will insert the snippet as it is
  • :HW will insert HELLO WORLD
  • :Hw will insert Hello world (first letter capitalized)
  • :hW will insert Hello World (title case)

Capitalize Snippets Expanded After...

If enabled, the Snippet Expander will capitalize the first letter of the snippet expanded after a period, question mark, exclamation mark, or a new line.

Please note that this option works only if you type without interruptions like clicks, shortcuts, or other interactions.

This option is unavailable if the Match Keyword Case is enabled.

Case-insensitive Keywords

If enabled, the Snippet Expander will ignore the case of the keyword.

If you have a snippet with the keyword hw, you can expand it by typing :hw, :HW, :Hw, or :hW.

This option is enabled by default if the Match Keyword Case is enabled.

Expand Snippets Only For The Selected...

If enabled, the Snippet Expander will expand snippets only from the selected collection and tags.

This option is useful if you want to use the same keyword for different snippets and also when you want to achieve something like profiles. For example, you can have a snippet email in the Personal collection and email in the Work collection.

Another example is when you are programming in different languages and you want to use the same keyword for different snippets in different languages.

Do Not Expand Snippets With Placeholders To Fill In

If enabled, the Snippet Expander will not expand snippets that have placeholders that require the form to be presented.

It might be useful if you want to avoid popping up the form, especially if you use Snippet Expander without prefix & suffix triggers.

Apps Filter

You can use this feature to either whitelist or blacklist apps for which the Snippet Expander should work.