Python script to convert TextExpander 7 CSV files to Alfred 5 .alfredsnippets
files
This repository contains a script which convert TextExpander 7 .csv
files to Alfred 5 .alfredsnippets
files. It only handles the subset of TextExpander tokens that I used in my collections, but could be easily extended to handle more.
- Check out this repository.
- Create and source a Python virtual environment:
python -m venv --prompt textexpander-to-alfred .venv source .venv/bin/activate
- Install
pip
andpip-tools
:python -m pip install --upgrade pip pip-tools
- Generate the
requirements.txt
file:pip-compile requirements.in
- Install the dependencies:
pip-sync
- Run the script passing the name of the
.csv
file to convert as an argument:python textexpander_to_alfred.py Export.csv
- Double-click on the generated
.alfredsnippets
file to import it.