Skip to main content

App Rules

App Rules

App Rules let you limit which snippets are available in a specific application.

If you keep work snippets, code snippets, and personal snippets side by side, it can be useful to see only the relevant ones depending on where you are typing. For example, only the Code collection in your IDE, and only the Email collection in Mail.

info

App Rules require Snippety Pro.

Configuration​

Open App Settings -> App Rules.

  1. Click + under Applications and pick one or more apps from the /Applications folder.
  2. Select the app in the list.
  3. In Applies To, choose where the rule should take effect: the Snippet Expander, Compact Snippety, or both.
  4. Tick the Collections and Tags the app should see.

The line under each app name summarizes the rule, so you can see at a glance what a given app is limited to.

To remove a rule, select it and click -.

How Rules Are Applied​

  • A snippet is available in the app when it belongs to any of the selected collections or carries any of the selected tags.
  • A rule with nothing selected doesn't filter at all - all snippets remain available in that app. This way adding an app to the list never makes your snippets disappear before you configured it.
  • Apps without a rule are not affected.

Different Filters Per Surface​

The same app can be added to the list more than once. This is how you give the Snippet Expander and Compact Snippety different filters for it.

For example, add your browser twice:

  • The first rule applies to the Snippet Expander only and allows the Work collection.
  • The second rule applies to Compact Snippety only and allows everything tagged #links.

When an app appears several times, the summary under its name spells out which surface each rule covers.

Renaming & Deleting​

Renaming a collection or a tag updates your rules automatically, so the selection is preserved. Collections and tags that no longer exist are removed from the rules.

Please note that renaming a collection or tag from another device (e.g. iPhone) will not update the rules - you'll need to update them manually on your Mac.

Demo​