Skip to main content

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 json
  • ESPANSO_MATCHES_PATH: espanso/match directory path
  • SNIPPETS_DIRECTORY_NAME="test_version": Name of the directory where new matches will be stored
  • REPLACER_CHARACTER="\\": The character that will replace the original /. I prefer backslash
  • FOLDERS_KEY="folders": TextBlaze json key containing folders with snippets
  • FOLDER_NAME_KEY="name": TextBlaze Folder name json key
  • SNIPPETS_KEY="snippets": TextBlaze snippets json key
  • SNIPPET_SHORTCUT_KEY="shortcut": TextBlaze shortcut json key
  • SNIPPET_TEXT_KEY="text" : TextBlaze text snippet json key
  • ESPANSO_FILE_EXTENSION=".yml": Espanso configuration file extension

Usage

  1. Configure paths in environment
  2. Execute the package: python -m textblaze_to_espanso --env-file=$ENV_FILE_PATH
  3. Locate the matches inside the configured directory
  4. Try to use your snippets. They should work in all environments from the get-go. You may need to reload Espanso

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textblaze_to_espanso-0.1.10.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

textblaze_to_espanso-0.1.10-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for textblaze_to_espanso-0.1.10.tar.gz
Algorithm Hash digest
SHA256 f172d115af3ef82b244407be7524bea39970bf639c89ede257142eef9fcc31b4
MD5 e3dd94003eda257362df3fce2328991b
BLAKE2b-256 2d2b800b76de798754bbbdfe99c6d5c6d19622b23bda4c94e34bdea3b17c1d0c

See more details on using hashes here.

File details

Details for the file textblaze_to_espanso-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for textblaze_to_espanso-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fd0b8ff4df25c4c7916692c70b925151ed16c22b6924e910b5d974bddabba95d
MD5 c62c7be650cfb3fc3d3a85d044c66759
BLAKE2b-256 5becfd6a589ab101d9e76be89f3595e1eb479afd448db00ae89ab8c94756c6f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page