-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathquicknote.cfg
46 lines (42 loc) · 1.2 KB
/
quicknote.cfg
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
#!/usr/bin/env bash
# This is the default configuration.
# It may also be used as an example user configuration.
# cp quicknote.cfg ~/.quicknote.cfg
# Config
# Default settings
# export QN_NOTE_DIR=$HOME/Documents/NOTES
# export QN_ADDON_DIR=$HOME/.quicknote.actions.d
# export QN_DEFAULT_ACTION=list
# export QN_SORT='sort -k2,3r'
# export QN_EXT=md
# export QN_PATTERN="XXXXXXXX.$QN_EXT"
# Default clipboard tool is defined for OSX
# export CLIPBOARD=${CLIPBOARD-pbcopy}
# # Redefine note_date to date of last commit
# note_date() {
# quicknote git log -1 --format="%ai" $1 | cut -c 1-19
# }
# # Redefine note_title to allow for YAML metadata `title: ...`
# note_title() {
# python3 -c "
# import sys
# title = ''
# in_block = False
# for line in sys.stdin:
# line = line[:-1] # Don't include the newline character
# if not in_block:
# if line == '---':
# in_block = True
# elif not title:
# title = line
# break
# elif line in {'---', '...'}:
# in_block = False
# else:
# pieces = line.split(maxsplit=1)
# if pieces[0].lower() == 'title:':
# title = pieces[1]
# break
# print(title)
# " < $1
# }