Last active
January 31, 2025 17:02
[Minimised variables] A compact way of listing multiple variables for e.g. a list form. #espanso
This file contains 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 minimised variables used in a list Form | |
# https://onlineyamltools.com/minify-yaml is helpful | |
- trigger: :td1 | |
replace: "{{Output.Date}}" | |
vars: | |
- {name: Day, type: date, params: {format: '%d'}} | |
- {name: Month, type: date, params: {format: '%m'}} | |
- {name: Year2, type: date, params: {format: '%y'}} | |
- {name: Year4, type: date, params: {format: '%Y'}} | |
- {name: Another, type: date, params: {format: '%A, %B %d, %Y'}} | |
- name: Output | |
type: form | |
params: | |
layout: '[[Date]]' | |
fields: | |
Date: | |
type: list | |
values: | |
- '{{Day}}/{{Month}}/{{Year2}}' | |
- '{{Day}}-{{Month}}-{{Year2}}' | |
- '{{Day}}/{{Month}}/{{Year4}}' | |
- '{{Another}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OnlineMinifyTools is helpful.