-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.yml
119 lines (108 loc) · 2.69 KB
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# espanso configuration file
# This is the default configuration file, change it as you like it
# You can refer to the official documentation:
# https://espanso.org/docs/
# Turn off SecureInput notifications
secure_input_notification: false
# The espanso documentation at Getting Started >
# Creating your own Match (https://espanso.org/docs/get-started/#creating-your-own-match)>
# macOS remarks
# warns that macOS text replacement with iCloud sync enabled may cause conflicts with
# espanso triggers and suggests starting espanso triggers with / instead of :.
# Matches are the substitution rules, when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
# Dates (mmddyyyy)
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"
# Shell commands
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo Hello from your shell"
# Utilities
- trigger: ":nl"
replace: "\n"
# Utilities (Global vars, including forms)
global_vars:
- name: "myFormalName"
type: "dummy"
params:
echo: "Marshall M. A. Feldman"
- name: "myName"
type: "dummy"
params:
echo: "Marshall Feldman"
- name: "myAffiliation"
type: "dummy"
params:
echo: "The University of Rhode Island"
- name: "datetime"
type: "date"
params:
format: "%Y%m%d%H%M%S"
- name: nl
type: match
params:
trigger: ":nl"
# Title, Author, Affiliation form
- name: TAA_form
type: form
params:
layout: |
Title: {{title}}
Author: {{author}}
Affiliation: {{affiliation}}
fields:
title:
multiline: true
author:
default: {{Marshall}}
affiliation:
default: {{URI}}
# Title & Author form
- name: TA_form
type: form
params:
layout: |
Title: {{title}}
Author: {{author}}
fields:
title:
multiline: true
author:
default: {{myName}}
# Title/Topic form
- name: T_form
type: form
params:
layout: |
Title or topic: {{title}}
fields:
title:
multiline: true
# Excerpt form
- name: Excerpt_form
type: form
params:
layout: |
Topic: {{topic}}
Source title: {{source}}
Author: {{author}}
fields:
topic:
multiline: true
source:
multiline: true
author:
default: {{myName}}
affiliation:
default: {{myAffiliation}}