feat(espanso): add a snippet for markdown footnotes

This commit is contained in:
Stefan Imhoff
2023-01-19 15:49:27 +01:00
parent 7bca89f4f1
commit cb1b4046e3

View File

@@ -3,15 +3,32 @@ imports:
- "../../private/espanso/personal.yml" - "../../private/espanso/personal.yml"
matches: matches:
# Simple text replacement - trigger: ":fn"
- trigger: ":espanso" label: Markdown Footnote
replace: "Hello World"
# Print the output of a shell command
- trigger: ":shell"
replace: "{{output}}"
vars: vars:
- name: output - name: form
type: form
params:
layout: |
Author:
[[author]]
Publication Title:
[[title]]
fields:
title:
multiline: true
- name: "clipboard"
type: "clipboard"
- name: year
type: date
params:
format: "%Y"
- name: id
type: shell type: shell
params: params:
cmd: "echo 'Hello from your shell'" cmd: 'echo "{{form.author}}$(date +%Y)" | perl -pe "s/(\b[a-z])/\u$1/g" | perl -pe "s/(\s)/\u/g"'
replace: |
[^{{id}}]
[^{{id}}]: {{form.author}} ({{year}}): {{form.title}}, <{{clipboard}}>.