mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(espanso): add a snippet for markdown footnotes
This commit is contained in:
@@ -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}}>.
|
||||||
|
|||||||
Reference in New Issue
Block a user