Advertisement
smeech

Minimised variables used in a list Form

Jan 16th, 2025 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.76 KB | Software | 0 0
  1. # Espanso minimised variables used in a list Form
  2.  
  3.   - trigger: :td1
  4.     replace: "{{Output.Date}}"
  5.     vars:
  6.       - {name: Day, type: date, params: {format: '%d'}}
  7.       - {name: Month, type: date, params: {format: '%m'}}
  8.       - {name: Year2, type: date, params: {format: '%y'}}
  9.       - {name: Year4, type: date, params: {format: '%Y'}}
  10.       - {name: Another, type: date, params: {format: '%A, %B %d, %Y'}}
  11.       - name: Output
  12.         type: form
  13.         params:
  14.           layout: '[[Date]]'
  15.           fields:
  16.             Date:
  17.               type: list
  18.               values:
  19.                - '{{Day}}/{{Month}}/{{Year2}}'
  20.                 - '{{Day}}-{{Month}}-{{Year2}}'
  21.                 - '{{Day}}/{{Month}}/{{Year4}}'
  22.                 - '{{Another}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement