---
title: "Local Text Expander for Mac: Snippets and Dynamic Values"
description: "A local text expander for Mac: typed-trigger snippets, 11 dynamic values, cursor placement, one-file import from 8 formats. No cloud, no subscription."
date: 2026-05-18
updated: 2026-10-03
author: "Ben Racicot"
tags: ["Text Expander", "Snippets", "Productivity", "Privacy", "macOS"]
type: "article"
canonical: "https://modelpiper.com/blog/text-expander-mac-local"
---

# Local Text Expander for Mac: Snippets and Dynamic Values

> A local text expander for Mac: typed-trigger snippets, 11 dynamic values, cursor placement, one-file import from 8 formats. No cloud, no subscription.

## TL;DR

A text expander turns a short trigger into a longer block of text as you type. ToolPiper does this locally on your Mac: type a delimiter and abbreviation (like ;addr), and it expands. It resolves 11 dynamic values at expand time (;today, ;date, ;time, ;now, ;iso, ;timestamp, ;name, ;login, ;myemail, ;host, ;app), places your cursor with %|, and imports snippet libraries from 8 formats - TextExpander, Raycast, Alfred, Espanso, Apple Text Replacements, CSV, TSV, and its own JSON - with zero duplicates on re-import. Your snippet library lives on your Mac, not in a cloud account. Free download (DMG).

You type the same things over and over. Your email signature. A mailing address. The boilerplate at the top of every invoice. A Zoom link you paste into three calendar invites a day. **A text expander replaces those repeated strings with a short trigger you type once and never think about again.** Type `;addr`, get your full address. Type `;sig`, get your signature. The classic version of this job is exactly what TextExpander built a business on, and it's worth doing well.

The catch with the big-name expanders is where your library lives. Your snippets - which can include addresses, account numbers, internal URLs, code you reuse - sit in a vendor's cloud account, synced through their servers, usually with a subscription for the full feature set. ToolPiper does the same expansion entirely on your Mac. **Your triggers and their expansions are stored locally, there's no monthly charge for text replacement, and nothing syncs to a server you can't inspect.** That's the trade we're making.

This article is about static and dynamic expansion - the deterministic, no-AI core. If you want the next step up, where a trigger like `;fix` sends your selected text to a local model and rewrites it, that's a separate feature covered in [AI text snippets on Mac](/blog/ai-text-snippets-mac). Here we're focused on the part that's been a solved problem for fifteen years, done locally.

## What is text expansion and why would a power user want it?

Text expansion is a system that watches what you type and replaces a short trigger string with a longer, predefined block of text. Power users want it because it removes the repetitive typing that fills a workday: signatures, addresses, code boilerplate, canned replies, and date-stamped filenames.

The mechanism is simple. A small background process monitors keystrokes for trigger strings you've defined. When you type one, it deletes the trigger characters and types the expansion in their place. The win compounds: a snippet you use thirty times a day saves more keystrokes per month than you'd expect, and it removes the small errors that creep in when you retype the same address for the hundredth time.

The reason this matters more for power users than casual ones is volume and consistency. Support reps send the same answers. Lawyers paste the same clauses. Developers retype the same import blocks and license headers. Once your most-typed text becomes a two-keystroke trigger, you stop context-switching to hunt for the canonical version of a thing - the trigger _is_ the canonical version.

## Why run a text expander locally instead of in the cloud?

A local text expander keeps your snippet library on your Mac instead of in a vendor's cloud account, which means no per-use or subscription cost for text replacement and no copy of your private snippets sitting on a server you can't audit. The trade-off is that local-only snippets don't sync to your other devices.

Text replacement is mechanically trivial - it does not need a server. The cloud in a cloud expander exists almost entirely to sync your library across devices and to support team-shared libraries, both real features. But syncing means your snippets, which often contain addresses, internal links, account numbers, and reused code, are stored and transmitted by a third party. For a tool whose entire job is inserting text into other apps, that's worth thinking about.

The cost angle is straightforward. **TextExpander's free plan keeps 5 snippets active at a time; Pro, which lifts that cap, is $6 a month or $60 a year as of October 2026.** ToolPiper ships text expansion as part of a free download. You'll find more on that comparison in our [TextExpander alternative for Mac](/blog/textexpander-alternative-mac) writeup. The privacy angle is the same one we apply across [local-first AI on macOS](/blog/local-first-ai-macos): the work happens on your machine, so there's no transit to audit in the first place.

## How does the typed-trigger engine work?

ToolPiper watches for a delimiter plus an abbreviation (for example, `;addr`) and expands it the moment the trigger completes. When two triggers overlap, it matches the longest one first, so a more specific trigger always wins over a shorter prefix.

The matching is whitespace and punctuation-flanked, which is the detail that keeps expansion from misfiring. A trigger like `;fix` only fires as its own token - it will never expand inside the word `;fixed`, because the characters around it aren't a boundary. That sounds like a small thing until you've used an expander that interrupts you mid-word.

Longest-trigger-first matching is the other piece that makes a real library usable. Say you have both `;ad` (your ad copy) and `;addr` (your address). When you finish typing `;addr`, the engine resolves it to the address, not to the ad copy plus a stray `dr`. You build your shortcuts the way they read in your head, and the engine sorts out the overlaps.

Setup is short. Install ToolPiper, grant Accessibility on first launch, open the Snippets pane, and create a snippet: a trigger like `;addr` plus the text it should type. The editor exposes the expansion text, a macro hint line, case sensitivity, and expand-when. Type the trigger in any standard text field and it expands.

## What dynamic values can a snippet resolve?

ToolPiper resolves 11 dynamic values at expand time - things like the current date, time, your name, your computer's hostname, and the frontmost app. Each one computes fresh every time the snippet fires, so `;today` always inserts today's date, not the date you created the snippet.

Static text is half the job. The other half is values that change. A filename that needs today's date. A log line that wants an ISO 8601 timestamp. An email greeting that should address you by your account name. These resolve when you trigger the snippet, not when you write it. Here's the full set:

| Trigger | Resolves to |
| --- | --- |
| ;today | Today's date, long format (for example, May 18, 2026) |
| ;date | Today's date, short format |
| ;time | The current time |
| ;now | The current date and time together |
| ;iso | The date in ISO 8601 form |
| ;timestamp | A full ISO 8601 timestamp |
| ;name | Your full user name |
| ;login | Your short (login) user name |
| ;myemail | The email on your ToolPiper license (placeholder text when signed out) |
| ;host | Your computer's name |
| ;app | The frontmost app at the moment you expand |

These compose as you type. Open a bug report by typing `;timestamp`, `;host`, and `;app` back to back and the header stamps itself - timestamp, machine, frontmost app. Inside a snippet's stored text, use `%date` and `%time` to embed the current date or time directly. The values compute at expand time, so there's nothing to keep in sync.

## How do you control where the cursor lands and how a trigger matches?

Place the marker `%|` anywhere in a snippet and your cursor lands there after expansion, so template snippets drop you straight into the field you need to fill. Case-sensitivity modes give you finer control over how each trigger matches the text you type.

Cursor placement is the feature that turns a snippet from a paste into a template. Define an email reply as `Hi %|,` followed by your standard body, and after expansion the cursor sits right after "Hi " waiting for the name. No arrow-keying back into position. The first unescaped `%|` places the cursor - later occurrences stay literal.

The cursor marker is one part of a small macro grammar inside snippet text. `%clipboard` pastes the current clipboard contents, `%date` and `%time` stamp the current date and time, and `%%` escapes a literal percent sign so text like '100% done' types exactly as written.

Two controls shape behavior beyond the raw text:

-   **Case-sensitivity modes.** Each snippet can be set to _sensitive_ (the trigger must match exactly), _ignore_ (case doesn't matter), or _adapt_ (the expansion follows the case you typed the trigger in). Adapt is the one you want for snippets that start sentences.
-   **Longest-first plus boundary matching.** Covered above - together they're what keeps a large library from stepping on itself.

Triggers fire in any standard text field where injection works - there is no per-app scoping.

## Can you import your snippets from another expander?

Yes. ToolPiper imports snippet libraries from 8 formats - TextExpander (.textexpandersettings bundles), Raycast JSON, Alfred .alfredsnippets archives, Espanso YAML, Apple Text Replacements, CSV, TSV, and its own export format - detected by file content, not extension. Import is one file pick or one drag onto the Snippets pane, and re-importing the same file creates zero duplicates.

Switching tools is only worth it if your library comes with you. Pick Import from the Snippets pane menu, or drop the file on the pane, and the importer reads the bytes to figure out what it has - magic numbers, JSON shape, a delimiter sniff for CSV versus TSV. You never tell it the format. Alfred archives are read entirely in memory, nothing extracted to disk, and the collection's keyword prefix and suffix are applied to every trigger - the classic trap that breaks hand-rolled Alfred migrations.

**Re-running the same import lands zero duplicates.** Snippets dedupe on a content fingerprint - the trigger plus what it types - so a second import, or an export round-trip, is a no-op. Snippets with the same trigger but different content both import and are counted as trigger conflicts in the import summary. A Remove Duplicates command in the same menu cleans up libraries that arrived messy.

Placeholders translate where the mapping is exact. Clipboard placeholders become `%clipboard`, cursor markers become `%|`, and simple date and time forms become `%date` and `%time`. Placeholders with no exact equivalent, like strftime date patterns or {argument}, are kept as literal text and counted - except for a few constructs that skip the whole snippet instead, listed below. A literal percent sign in imported content is escape-protected, so a snippet containing '100% done' can never fire a live macro.

What doesn't import: fill-in forms, script snippets (AppleScript, shell, JavaScript), nested snippet references, {random} placeholders, and regex triggers. Espanso support covers a YAML subset - variables resolve only where deterministic, and unsupported constructs are counted skips. Each skipped snippet is counted with a named reason in the import summary, never silently dropped. Caps are 32 MB per file and 10,000 snippets per import. Keyboard Maestro, PhraseExpress, Text Blaze, and typedesk have no native parser - export CSV from those tools and the CSV importer covers them, the same route aText, Beeftext, and Rocket Typist take.

## Where does AI fit in?

The static and dynamic engine described above uses no AI at all - a trigger maps to fixed text or a computed value. AI lives in a separate feature called action snippets: type a trigger like `;fix` inside your text, select the region containing it, tap the right Command key, and the selection is rewritten through a local model running on your Mac. Classic expansion works fully without it.

Everything above is deterministic. A trigger maps to fixed text or a computed value, and that's it - no model, no network, nothing to wait for. That predictability is exactly what you want from the core of an expander.

The step up is action snippets. Type `;fix` or `;formal` inline, select the region containing the trigger, tap the right Command key, and the selection is rewritten through a model running on your Mac. Same muscle memory, but now the expansion is a transform instead of a constant. That's a different enough feature that it has its own article: [AI text snippets on Mac](/blog/ai-text-snippets-mac). If you only want classic expansion, you never have to touch it - the static and dynamic engine stands on its own.

## Where text expansion falls short

Injection isn't universal. ToolPiper expands in standard macOS text fields, but some apps render and handle text in non-standard ways - certain terminal emulators, some Electron apps, and editors with custom text rendering may not accept injected expansion. When that happens the trigger simply doesn't fire in that field. It's a per-app limitation, not a crash, and every other app on your Mac keeps working normally.

**There's no cloud sync across your devices, and that's by design.** Your snippet library lives on the Mac it was created on. Sync is where TextExpander puts its weight: it keeps one library identical across Mac, Windows, Chrome, and iPhone and iPad on every plan, the free one included, and its team plans add shared libraries, roles, and SSO. We chose local.

## Text expansion on Mac: how the options compare

The comparison table below lays the field out plainly. A few notes on reading it: [Espanso](/blog/espanso-alternative-mac) is free and open-source and runs everywhere, but you configure it by editing YAML files rather than a GUI. [Raycast](/blog/raycast-alternative-local-ai) bundles snippets into a full launcher and window manager, so if you want all of that in one place it's a strong pick (snippets are free, and Pro is $10 a month or $96 a year as of October 2026). Typinator is a long-standing one-time-purchase Mac expander. The honest summary is that each tool optimizes for something different. Pick by what you need most: cross-device sync, scripting, a built-in launcher, or a local GUI with no subscription.

## Get ToolPiper

[ToolPiper](/toolpiper) is a free download from [modelpiper.com](https://modelpiper.com) (DMG). It requires macOS 26 or later and Apple Silicon (M1 or newer). It isn't on the Mac App Store because text expansion needs Accessibility and CGEvent APIs that the App Store sandbox doesn't allow - the same reason TextExpander, Raycast, Alfred, and Keyboard Maestro ship outside it. Grant Accessibility once on first launch and your static and dynamic snippets work immediately.

_This is part of a series on [text and clipboard workflows on Mac](/workflow/text-clipboard) and the broader pillar on [local-first AI on macOS](/blog/local-first-ai-macos). Next up: [AI text snippets on Mac](/blog/ai-text-snippets-mac) - the same trigger muscle memory, but the expansion is a local model rewrite of your selection._

## FAQ

### What is a text expander on Mac?

A text expander is a tool that watches what you type and replaces a short trigger with a longer block of text. On Mac, you type something like `;addr` and it expands into your full mailing address. ToolPiper runs this locally on your Mac, supports static snippets and 11 dynamic values, and stores your library on-device rather than in a cloud account.

### Does ToolPiper sync my snippets across devices?

No. ToolPiper's snippet library is local to the Mac it was created on - there's no cloud sync across devices. This is a deliberate trade-off: your snippets never leave your machine. Cloud expanders such as TextExpander are built around the other choice, syncing one library across Mac, Windows, Chrome, and iPhone and iPad and sharing it across a team.

### Can I import my TextExpander snippets into ToolPiper?

Yes. ToolPiper imports 8 formats, detected by file content rather than extension: TextExpander (.textexpandersettings bundles), Raycast JSON, Alfred .alfredsnippets archives, Espanso YAML, Apple Text Replacements, CSV, TSV, and its own export format. Triggers, expansion text, and cursor markers carry over, clipboard and simple date/time placeholders translate to ToolPiper's macro grammar, and re-importing the same file creates zero duplicates.

### What dynamic values can ToolPiper insert?

ToolPiper resolves 11 dynamic values at expand time: `;today` (long date), `;date` (short date), `;time`, `;now`, `;iso`, `;timestamp` (ISO 8601), `;name` (full user name), `;login` (short user name), `;myemail` (license email), `;host` (computer name), and `;app` (frontmost app). Each computes fresh every time the snippet fires.

### What happens if I import the same snippet file twice?

Nothing duplicates. The importer dedupes on a content fingerprint - the trigger plus what it types - so re-running an import, or exporting and importing the same library, is a no-op. Snippets with the same trigger but different content both import and are counted as trigger conflicts in the import summary, so nothing is silently dropped or silently merged.

### Which snippets don't import into ToolPiper?

Fill-in forms, script snippets (AppleScript, shell, JavaScript), nested snippet references, {random} placeholders, and regex triggers are skipped, each counted with a named reason in the import summary. Other placeholders with no exact equivalent, like strftime date patterns, are kept as literal text and counted rather than dropped. Keyboard Maestro, PhraseExpress, Text Blaze, and typedesk have no native parser - export CSV from those tools and import that.

### Why isn't ToolPiper on the Mac App Store?

Text expansion needs Accessibility APIs to inject text and CGEvent taps to monitor typing for triggers. Both are incompatible with the Mac App Store sandbox. This is normal for the category - TextExpander, Raycast, Alfred, and Keyboard Maestro all ship outside the App Store for the same reason.

### Does ToolPiper text expansion work in every app?

It works in standard macOS text fields, which covers most apps. Some terminal emulators, certain Electron apps, and editors with custom text rendering handle input in non-standard ways and may not accept injected expansion. In those fields the trigger simply doesn't fire. It's a per-app limitation, not an error, and the rest of your apps keep working normally.

### What's the difference between static snippets and AI text snippets?

Static and dynamic snippets are deterministic: a trigger maps to fixed text or a computed value like today's date, with no model and no network involved. AI text snippets are a separate feature where a trigger like `;fix` sends your selected text to a local model that rewrites it. This article covers the deterministic core - see [AI text snippets on Mac](/blog/ai-text-snippets-mac) for the transform side.
