Clippings are pieces of text you insert often: a header, a log statement, a TODO with the date. Marlin fills in the variables and lets you Tab through the fields you still need to type.
Insert a Clipping
There are four ways to insert a clipping. Choose it from Text > Clippings. Type Insert Clipping in the command palette (⌘K). Type its trigger word and press Tab. Or press the key shortcut the clipping has.
The clipping replaces the selection, or goes in at the caret.
Tab Stops
After a clipping goes in, the first field is selected. Type to replace it, then press Tab for the next field or Shift-Tab for the one before. The caret ends at the last stop. Escape, or a click outside the clipping, ends the fields.
Variables
A clipping can contain $SELECTION, $CLIPBOARD, $FILENAME, $DATE and $TIME. Marlin replaces each one with the selected text, the clipboard, the file name, the date as year-month-day, or the time.
Write Your Own Clippings
Text > Clippings > Reveal Clippings Folder opens the folder of clipping files. Each clipping is a JSON entry with a trigger and a body, and can also have a name, a language and a shortcut.
In the body, $1 to $9 are tab stops and ${1:default} is a tab stop with default text. $0 is where the caret ends. Write \$ for a dollar sign. A shortcut is written as modifiers and a key joined with +, for example ctrl+opt+1.
After you edit the files, choose Text > Clippings > Reload Clippings.