Advertisement
smeech

Underline text

Aug 14th, 2024 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.38 KB | Software | 0 0
  1. # Espanso/Python underline text.
  2. # Triggered by prefixing and suffixing the text with "**"
  3. # Won't combine characters in some environments
  4.  
  5.   - regex: \*\*(?P<word>.*)\*\*
  6.     replace: '{{output}}'
  7.     vars:
  8.       - name: output
  9.         type: script
  10.         params:
  11.           args:
  12.             - python
  13.             - -c
  14.             - print('\u0332'.join('{{word}}') + '\u0332')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement