-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
59 lines (46 loc) · 1.47 KB
/
index.js
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
import getColorsFromVimrc from './lib/parse-rainbow-from-vimrc.js'
import getKeywordsFromVimrc from './lib/parse-keyword-from-vimrc.js'
import printInSplit from './lib/print-in-split.js'
import getMissingKeywordsFromJrnl from './lib/get-missing-from-jrnl.js'
const log = console.log
const VIM_JRNL_SYNTAX_PATH = '~/.vim/syntax/jrnl.vim'
const {
indigo,
teal,
cyan,
green,
yellow,
orange,
red,
fuchsia,
} = getColorsFromVimrc(VIM_JRNL_SYNTAX_PATH)
const {
keywordsGrouped: keywords,
keywords: existingKeywords
} = getKeywordsFromVimrc(VIM_JRNL_SYNTAX_PATH)
const missingKeywordsFromJrnl = getMissingKeywordsFromJrnl(existingKeywords)
log(`
-- ${indigo('Power stone')}
${printInSplit(keywords.power, indigo)}
- - - - - - - - - - - - - - - - - - - - -
-- ${yellow('Mind stone')}
${printInSplit(keywords.mind, yellow)}
- - - - - - - - - - - - - - - - - - - - -
-- ${orange('Soul stone')}
${printInSplit(keywords.soul, orange)}
- - - - - - - - - - - - - - - - - - - - -
-- ${cyan('Space stone')}
${printInSplit(keywords.space, cyan)}
- - - - - - - - - - - - - - - - - - - - -
-- ${red('Reality stone')}
${printInSplit(keywords.reality, red)}
- - - - - - - - - - - - - - - - - - - - -
-- ${green('Time stone')}
${printInSplit(keywords.time, green)}
- - - - - - - - - - - - - - - - - - - - -
-- ${fuchsia('Miscellaneous')}
${printInSplit(keywords.misc, fuchsia)}
- - - - - - - - - - - - - - - - - - - - -
-- ${teal('Missing tags')}
${printInSplit(missingKeywordsFromJrnl, teal)}
`)