A simple script to convert TextBlaze snippets to Espanso matches.
Oriented for the conversion of the whole TextBlaze repository at once using the "Export all folders" button in the settings. Will work just as fine with a single folder.
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.
Prerequisites
- Python 3.12
- pip
Installation
pip install textblaze-to-espanso
Environment variables
TEXTBLAZE_EXPORT_JSON_PATH: path to TextBlaze export jsonESPANSO_MATCHES_PATH: espanso/match directory pathSNIPPETS_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
Usage
- Configure paths in 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 may need to reload Espanso
Metadata
Release files for textblaze-to-espanso 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| textblaze_to_espanso-0.1.10.tar.gz | 4.4 kB | Without provenance | Details for textblaze_to_espanso-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textblaze_to_espanso-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for textblaze_to_espanso-0.1.10-py3-none-any.whl |
Total release size: 9.4 kB
Release files / textblaze_to_espanso-0.1.10.tar.gz
| Download URL | textblaze_to_espanso-0.1.10.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f172d115af3ef82b244407be7524bea39970bf639c89ede257142eef9fcc31b4
|
|
BLAKE2b-256 checksum How to use checksums |
2d2b800b76de798754bbbdfe99c6d5c6d19622b23bda4c94e34bdea3b17c1d0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / textblaze_to_espanso-0.1.10-py3-none-any.whl
| Download URL | textblaze_to_espanso-0.1.10-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd0b8ff4df25c4c7916692c70b925151ed16c22b6924e910b5d974bddabba95d
|
|
BLAKE2b-256 checksum How to use checksums |
5becfd6a589ab101d9e76be89f3595e1eb479afd448db00ae89ab8c94756c6f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for textblaze-to-espanso 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.