Last active
April 27, 2025 21:52
-
-
Save smeech/4df709245d2c616e686628d6bc78f645 to your computer and use it in GitHub Desktop.
[Second choice conditional on first choice] The trigger, `:test` invokes the first "select" choice box which supplies the options for the second "output" choice variable. Rewritten from the previous version which relied on writing files. The technique is not possible using verbose syntax, so cannot be combined with a "layout:" field. #espanso
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: | | |
| a | |
| b | |
| c | |
| - label: Two | |
| id: | | |
| d | |
| e | |
| f | |
| - name: output | |
| type: choice | |
| params: | |
| values: "{{select}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment