No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file textblaze_to_espanso-0.1.10.tar.gz
.
File metadata
- Download URL: textblaze_to_espanso-0.1.10.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f172d115af3ef82b244407be7524bea39970bf639c89ede257142eef9fcc31b4
|
|
MD5 |
e3dd94003eda257362df3fce2328991b
|
|
BLAKE2b-256 |
2d2b800b76de798754bbbdfe99c6d5c6d19622b23bda4c94e34bdea3b17c1d0c
|
File details
Details for the file textblaze_to_espanso-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: textblaze_to_espanso-0.1.10-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fd0b8ff4df25c4c7916692c70b925151ed16c22b6924e910b5d974bddabba95d
|
|
MD5 |
c62c7be650cfb3fc3d3a85d044c66759
|
|
BLAKE2b-256 |
5becfd6a589ab101d9e76be89f3595e1eb479afd448db00ae89ab8c94756c6f2
|