Skip to Content

Script snippets

Set the file environment to a script type to run on expand and insert stdout. This is Pro (codeExecution). Interpreter paths live in Settings → Custom runtimes.


Environments

EnvPlatformNotes
JavaScriptAllBuilt-in / plugin JS runtime
ShellmacOS / as configuredDo not concatenate untrusted input into the command line
PythonNeeds a local PythonCustom runtime can point at a binary
AppleScriptmacOS
PowerShellWindows
CustomYour executableAdd a runtime in Settings

FillIn still runs first, then the filled text is available to the script. Nested %s:abbr% expands before execute (failures notify; the frontmost document should stay intact).


Create one

  1. New snippet, pick a script environment.
  2. Print the insertion text to stdout.
  3. Save and test the abbreviation.

Need a small window? That is a plugin snippet. See Plugin Hub.


Create · Settings · FillIn

Last updated