Easily convert Alfred Text Snippets into macOS Text Replacements.
- Multiple Collection Processing: Convert multiple Alfred snippet collections in a single operation
- Flexible Output Strategies:
- Merge: Combine all collections into a single plist file with collection prefixes
- Separate: Generate individual plist files for each collection
- Dual Input Support: Process both exported snippet directories and
.alfredsnippetszip files - CLI: Support for multiple inputs with output strategy control
- macOS 13 (Ventura)
You can either build the project from source using Xcode or download one of the pre-built packages from the Releases tab.
-
Navigate to the project's package directory:
cd Packages -
Build and run the snippet converter:
# Single collection swift run snippet-converter path-to-exported-snippets-collection-from-alfred- Tip: Execute
swift run snippet-converter --helpto view all available options and arguments.
- Tip: Execute
- Export a Snippets Collection from Alfred.
- Use the exported
.alfredsnippetsfile directly, or extract the archive to get a directory.
Alfred Text Snippets are exported as
.alfredsnippetszip archives. The converter supports both the zip files and extracted directories.
The CLI supports both single and multiple collection processing:
# Single collection (backward compatible)
./snippet-converter-cli path-to-exported-snippets-collection-from-alfred
# Multiple collections - merge into single file (default)
./snippet-converter-cli work-snippets/ personal.alfredsnippets team-snippets/
# Multiple collections - create separate files
./snippet-converter-cli work-snippets/ personal.alfredsnippets --output-strategy separate
# Add collection prefixes to snippet keywords
./snippet-converter-cli work-snippets/ personal.alfredsnippets --add-collection-prefix- Open the macOS Snippet Converter app.
- Either:
- Drag and drop your
.alfredsnippetsfile or extracted directory into the app - Click to browse and select your snippets file or directory
- Drag and drop your
- Click "Convert".

