TextBlaze to Espanso migration script/package.
Converts the whole TextBlaze text snippets repository to Espanso matches. Use the "Export all folders" button in the TextBlaze settings to export the snippets. Will work just as fine with a single folder. Support of images is not tested.
I use \ as a shortcut initiator because I think it is more convenient to access the shortcuts in a single button no
matter the keyboard layout.
- Python 3.X (the package is written using 3.12 so there might be package conflicts on the lower versions)
- pip
pip install textblaze-to-espanso
TEXTBLAZE_EXPORT_JSON_PATH: path to TextBlaze export jsonESPANSO_MATCHES_PATH: espanso/match directory path
SNIPPETS_DIRECTORY_NAME="test_version": Name of the directory where new matches will be storedREPLACER_CHARACTER="\\": The character that will replace the original/. I prefer backslashFOLDERS_KEY="folders": TextBlaze json key containing folders with snippetsFOLDER_NAME_KEY="name": TextBlaze Folder name json keySNIPPETS_KEY="snippets": TextBlaze snippets json keySNIPPET_SHORTCUT_KEY="shortcut": TextBlaze shortcut json keySNIPPET_TEXT_KEY="text": TextBlaze text snippet json keyESPANSO_FILE_EXTENSION=".yml": Espanso configuration file extension
- Configure paths in your environment
- Execute the package:
python -m textblaze_to_espanso --env-file=$ENV_FILE_PATH - Locate the matches inside the configured directory
- Try to use your snippets. They should work in all environments from the get-go. You might need to reload Espanso