This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| matches: | |
| - trigger: :test | |
| replace: "{{output}}" | |
| vars: | |
| - name: select | |
| type: choice | |
| params: | |
| values: | |
| - label: One | |
| id: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Espanso trigger to autocomplete brackets etc. at the end of a string, on typing double-space. | |
| # It will fall over if there's a single-quote within the string, however. | |
| matches: | |
| - regex: '(?P<delim>[\[\(\{<"])(?P<string>.+) ' | |
| replace: "{{output}}" | |
| vars: | |
| - name: output | |
| type: script | |
| params: | |
| args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Espanso temperature C/°F conversion | |
| # From conversation at: https://discord.com/channels/884163483409731584/1013914627886817372/1253000300730515508 | |
| # Usage: ::10C → 10C / 50.00°F, or ::10F → 10°F / -12.22C | |
| matches: | |
| - regex: ::(?P<value>\d+(?:\.\d+)?)(?P<unit>[CF]) | |
| replace: "{{output}}" | |
| vars: | |
| - name: output | |
| type: script | |
| params: |
NewerOlder