/
package.json
271 lines (271 loc) · 7.87 KB
/
package.json
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
{
"name": "vscode-journal",
"displayName": "vscode-journal",
"description": "Lightweight journal and simple notes support for Visual Studio Code",
"keywords": [
"journal",
"diary",
"notes",
"memo",
"date"
],
"version": "0.7.1",
"publisher": "pajoma",
"engines": {
"vscode": "^1.23.0"
},
"author": {
"name": "Patrick Maué"
},
"icon": "img/logo.png",
"galleryBanner": {
"color": "#d7eef4",
"theme": "light"
},
"categories": [
"Other"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/pajoma/vscode-journal.git"
},
"bugs": {
"url": "https://github.com/pajoma/vscode-journal/issues",
"email": "pajoma@gmail.com"
},
"activationEvents": [
"onCommand:journal.day",
"onCommand:journal.entry",
"onCommand:journal.today",
"onCommand:journal.yesterday",
"onCommand:journal.tomorrow",
"onCommand:journal.note",
"onCommand:journal.memo",
"onCommand:journal.open",
"onCommand:journal.printDuration",
"onCommand:journal.printTime",
"onCommand:journal.printSum"
],
"main": "./out/src/extension",
"contributes": {
"markdown.markdownItPlugins": true,
"commands": [
{
"command": "journal.test",
"title": "Tests",
"category": "Journal"
},
{
"command": "journal.today",
"title": "Open Today",
"category": "Journal"
},
{
"command": "journal.yesterday",
"title": "Open Yesterday",
"category": "Journal"
},
{
"command": "journal.tomorrow",
"title": "Open Tomorrow",
"category": "Journal"
},
{
"command": "journal.memo",
"title": "Enter Quick Memo",
"category": "Journal"
},
{
"command": "journal.note",
"title": "New Journal Note",
"category": "Journal"
},
{
"command": "journal.printTime",
"title": "Print time",
"category": "Journal"
},
{
"command": "journal.printDuration",
"title": "Print elapsed hours between selected times",
"category": "Journal"
},
{
"command": "journal.printSum",
"title": "Print the sum of the selected numbers",
"category": "Journal"
},
{
"command": "journal.day",
"title": "Enter specific day",
"category": "Journal"
},
{
"command": "journal.open",
"title": "Open the Journal",
"category": "Journal"
}
],
"keybindings": [
{
"command": "journal.day",
"key": "ctrl+shift+j",
"mac": "cmd+shift+j"
},
{
"command": "journal.printTime",
"key": "ctrl+j t",
"mac": "cmd+j t"
},
{
"command": "journal.printDuration",
"key": "ctrl+j d",
"mac": "cmd+j d"
},
{
"command": "journal.printSum",
"key": "ctrl+j s",
"mac": "cmd+j s"
}
],
"grammars": [
{
"scopeName": "text.markdown.journal",
"path": "./res/syntax/journal-markdown.json",
"injectTo": [
"text.html.markdown"
]
}
],
"snippets": [
{
"language": "markdown",
"path": "./res/snippets/markdown.json"
}
],
"configuration": {
"type": "object",
"title": "Configuration for the Journal extension. Check the extension wiki for supported variables (as embedded expressions). ",
"properties": {
"journal.base": {
"type": "string",
"default": "",
"description": "(Mandatatory) The base directory for your notes. Defaults to the directory 'Journal' in your home directory. Supports embedded variables"
},
"journal.ext": {
"type": "string",
"default": "md",
"description": "The default extension of your notes and journal entries. Defaults to markdown (.md)- "
},
"journal.locale": {
"type": "string",
"default": "",
"description": "The locale to use (required for the date format). Defaults to 'en-US'."
},
"journal.patterns": {
"type": "object",
"default": {
"notes": {
"path": "${base}/${year}/${month}/${day}",
"file": "${input}.${ext}"
},
"entries": {
"path": "${base}/${year}/${month}",
"file": "${day}.${ext}"
}
},
"description": "Individual patterns which define where and how notes and entries are stored. Check the wiki for defaults and options."
},
"journal.tpl-entry": {
"type": "string",
"default": "# ${weekday}, ${localDate}\n\n## Tasks\n\n## Notes\n\n",
"description": "The template string for your daily journal entries."
},
"journal.tpl-time": {
"type": "string",
"default": "${localTime}",
"description": "The template string for inserting the current time at the cursor location. Defaults to local time. "
},
"journal.tpl-note": {
"type": "string",
"default": "# ${input}\n\n",
"description": "The template string for your notes. "
},
"journal.tpl-memo": {
"type": "string",
"default": "- MEMO: ${input}",
"description": "The template string for new memos (new lines). "
},
"journal.tpl-memo-after": {
"type": "string",
"default": "",
"description": "Where to place new memos. (Default is empty, which means after the header)"
},
"journal.tpl-task": {
"type": "string",
"default": "- [ ] TASK: ${input}",
"description": "The template string for new tasks. "
},
"journal.tpl-task-after": {
"type": "string",
"default": "## Tasks",
"description": "Where to place the tasks. (Default is empty, which means after the header)"
},
"journal.tpl-todo": {
"type": "string",
"default": "- [ ] TODO: ${input}",
"description": "The template string for new todos. "
},
"journal.tpl-todo-after": {
"type": "string",
"default": "## Tasks",
"description": "Where to place the todos. (Default is empty, which means after the header)"
},
"journal.tpl-files": {
"type": "string",
"default": "- NOTE: [${title}](${link})",
"description": "Template for the link to notes"
},
"journal.tpl-files-after": {
"type": "string",
"default": "## Notes",
"description": "Where to place the file links to notes and more. (Default is empty, which means after the header)"
},
"journal.dev": {
"type": "boolean",
"default": "false",
"description": "If enabled, the features in development will be activated (other features might be broken!!) "
},
"journal.openInNewEditorGroup": {
"type": "boolean",
"default": false,
"description": "If true, the journal pages and new notes will split the editor view. "
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^5.2.1",
"@types/node": "^7.0.65",
"mocha": "^5.2.0",
"typescript": "^2.9.1",
"vscode": "^1.1.18",
"tslint": "^5.8.0",
"ts-node": "3.3.0"
},
"dependencies": {
"markdown-it-task-checkbox": "^1.0.6",
"markdown-it-synapse-table": "^1.0.6",
"markdown-it-underline": "^1.0.1",
"q": "^1.5.1",
"moment": "^2.22.2"
}
}