-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault_config.yaml
51 lines (48 loc) · 1.37 KB
/
default_config.yaml
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
# The default configuration profile
default:
# Example `hired` configuration profile
# The commented out values are the defaults
example:
# Default path
#path: ""
path: "note.md"
# Default state for printing flags
#n: false
n: true
#l: false
l: true
# Macro definitions
#macros: {}
macros:
# Example macro entry with specific nr of arguments
grep:
input: "g/$1/p/"
nr_arguments:
exactly: 1
# Example macro entry without arguments
# (Note how it doesn't need to double the $ thanks to specifying no arguments)
mkpdir:
input: "!mkdir -p $(dirname %)"
nr_arguments: none
# Example macro entry with any nr of arguments
fmt:
input: "|fmt $0"
nr_arguments: any
# Example macro with a span of valid nr of arguments
echo2to5:
# Arguments not given inserted as empty string
input: "!echo $1 $2 $3 $4 $5"
nr_arguments:
between:
incl_min: 2
incl_max: 5
# And another to show of that you can import other parts of the same file,
# which is mainly useful for sharing macros between profiles. You can share
# the whole macro section if you wish.
# Here we tag the data under original as `foo`
original: &foo
input: '!echo I am unique\!'
nr_arguments: none
# Here we import all the data from the tag `foo`
copy:
<<: *foo