-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathplugin.json
More file actions
359 lines (358 loc) · 9.85 KB
/
plugin.json
File metadata and controls
359 lines (358 loc) · 9.85 KB
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
{
"macOS.minVersion": "10.13.0",
"noteplan.minAppVersion": "3.9.10",
"plugin.id": "np.Templating",
"plugin.name": "📒 Templating",
"plugin.version": "2.0.10",
"plugin.lastUpdateInfo": "2.0.10: fix quick-note with frontmatter",
"plugin.description": "Templating Plugin for NotePlan",
"plugin.author": "Mike Erickson ( codedungeon)",
"plugin.dependencies": [],
"plugin.script": "script.js",
"plugin.url": "https://noteplan.co/templates/docs",
"plugin.commands": [
{
"name": "Append template to end of current note",
"alias": [
"append",
"at",
"template",
"npa",
"np:append"
],
"description": "Append template to end of current note",
"jsFunction": "templateAppend",
"arguments": [
"template title to run"
]
},
{
"name": "Insert template at cursor position",
"alias": [
"insert",
"it",
"template",
"npi",
"np:insert"
],
"description": "Insert template in current note at cursor position",
"jsFunction": "templateInsert",
"arguments": [
"template title to run"
]
},
{
"name": "Invoke/Place template at <location> in template",
"alias": [
"invoke",
"npv",
"np:invoke",
"place"
],
"description": "Place template using <location> attribute in template frontmatter",
"jsFunction": "templateInvoke",
"arguments": [
"Template name to execute (optional)"
]
},
{
"name": "Create new note using template",
"alias": [
"new",
"nnt",
"nn",
"template",
"npn",
"np:new"
],
"description": "Create new note with title, optionally using folder and newNoteTitle attribute",
"jsFunction": "templateNew",
"arguments": [
"template title to run (or if you know the folder but want to be prompted at run-time for the template, enter a single space for this argument)",
"folder to create note in (optional-leave empty to be prompted for it)"
]
},
{
"name": "New note using Quick Note Template",
"alias": [
"Quick template note",
"quick",
"template",
"qnt",
"qtn",
"qqq",
"npq",
"np:qtn"
],
"description": "Create new note based on Quick Note Template",
"jsFunction": "templateQuickNote",
"arguments": [
"template title to run"
]
},
{
"name": "Create Meeting Note using Meeting Note Template",
"alias": [
"Meeting template note",
"quick",
"template",
"mnt",
"mtn",
"mmm",
"npm",
"np:mtn"
],
"description": "Create new note based on Meeting Note Template",
"hidden": true,
"jsFunction": "templateMeetingNote",
"arguments": [
"template title to use"
]
},
{
"name": "np:update",
"alias": [
"npu"
],
"description": "Run np.Templating Setting",
"jsFunction": "onUpdateOrInstall",
"hidden": true
},
{
"name": "np:convert",
"alias": [
"npc"
],
"description": "Convert Project Note to Frontmatter format",
"jsFunction": "templateConvertNote",
"hidden": true
},
{
"name": "np:about",
"alias": [],
"description": "np.Templating About...",
"jsFunction": "templateAbout"
},
{
"name": "Execute template script (type: template-fragment)",
"alias": [
"npe",
"np:execute"
],
"description": "Execute Template Script (type: template-fragment) which may or may not output text to current note",
"jsFunction": "templateExecute",
"arguments": [
"Template name to execute (optional)"
]
},
{
"name": "np:test",
"alias": [],
"description": "np.Templating Testbed",
"jsFunction": "templateTest",
"hidden": true
},
{
"name": "getTemplate",
"description": "NPTemplating.getTemplate export",
"jsFunction": "getTemplate",
"hidden": true
},
{
"name": "renderFrontmatter",
"description": "NPTemplating.renderFrontmatter export",
"jsFunction": "renderFrontmatter",
"hidden": true
},
{
"name": "render",
"description": "NPTemplating.render export",
"jsFunction": "render",
"hidden": true
},
{
"name": "renderTemplate",
"description": "NPTemplating.renderTemplate export",
"jsFunction": "renderTemplate",
"hidden": true
},
{
"name": "np:tft",
"alias": [
"Template file by title",
"np:run",
"npr"
],
"description": "Run a template file by title/preset",
"jsFunction": "templateFileByTitle",
"hidden": true
},
{
"name": "templateRunner",
"alias": [],
"description": "Load and run self-contained template instructions with arguments",
"jsFunction": "templateRunner",
"hidden": true,
"arguments": [
"template title to run",
"open file in editor after running",
"template arguments"
]
},
{
"name": "Add note properties/frontmatter to template",
"description": "Add properties (a.k.a frontmatter) in a template that will become the properties of the note that is generated by the template",
"jsFunction": "addFrontmatterToTemplate",
"alias": [
],
"arguments": []
},
{
"NOTE": "DO NOT EDIT THIS COMMAND/TRIGGER",
"name": "Templating: Update Plugin Settings",
"description": "Preferences",
"jsFunction": "editSettings"
}
],
"plugin.settings": [
{
"type": "heading",
"title": "np.Templating Settings"
},
{
"key": "version",
"type": "hidden",
"title": "np.Templating Settings Version"
},
{
"key": "templateLocale",
"title": "Template Locale",
"description": "Locale used by np.Templating Modules (leave blank for system locale)\n\nDefault: <system>",
"type": "string",
"default": "<system>",
"required": false
},
{
"key": "templateGroupTemplatesByFolder",
"title": "Group Templates by Folder",
"description": "Group Templates by Folder in Template Chooser",
"type": "bool",
"default": false,
"required": false
},
{
"type": "separator"
},
{
"key": "userFirstName",
"title": "First Name",
"description": "Used when referencing <%= user.first %>",
"type": "string",
"default": "John",
"required": false
},
{
"key": "userLastName",
"title": "Last Name",
"description": "Used when referencing <%= user.last %>",
"type": "string",
"default": "Doe",
"required": false
},
{
"key": "userEmail",
"title": "Email",
"description": "Used when referencing <%= email %>",
"type": "string",
"default": "[email protected]",
"required": false
},
{
"key": "userPhone",
"title": "Phone",
"description": "Used when referencing <%= phone %>",
"type": "string",
"default": "(714) 555-1212",
"required": false
},
{
"type": "separator"
},
{
"key": "dateFormat",
"title": "Date Format",
"description": "Default date format (may be overridden in desired DateModule method)\n\nDefault: short",
"type": "string",
"default": "short",
"required": false
},
{
"key": "timeFormat",
"title": "Time Format",
"description": "Default time format (may be overridden in desired TimeModule method)\n\nDefault: short",
"type": "string",
"default": "short",
"required": false
},
{
"key": "timestampFormat",
"title": "Timestamp Format",
"description": "Default format when using date.timestamp()\n\nDefault: YYYY-MM-DD h:mm A",
"type": "string",
"default": "YYYY-MM-DD h:mm A",
"required": false
},
{
"type": "separator"
},
{
"key": "weatherFormat",
"title": "Weather Format",
"description": "Note: Leave blank for default weather response\n\nYou can customize the weather output by providing a custom format string which may include placeholders for different pieces from weather response\n\nRefer to np.Templating documention for list of available placeholders.",
"type": "string",
"default": "",
"required": false
},
{
"type": "separator"
},
{
"key": "services",
"title": "Web Services",
"description": "Configuration for Services which can be referenced using\n<% web.service() %> method\n\nTip: Use https://jsonformatter.org/json5-validator to validate",
"type": "json",
"default": "",
"required": false
},
{
"type": "separator"
},
{
"type": "heading",
"title": "Debugging"
},
{
"key": "incrementalRender",
"title": "Allow Incremental Render Debugging",
"description": "If a template fails to render, we can retry rendering line by line to try to find the issue. Turn this off if something about this causes you issues.",
"type": "bool",
"default": true,
"required": true
},
{
"key": "_logLevel",
"type": "string",
"title": "Log Level",
"choices": [
"DEBUG",
"INFO",
"WARN",
"ERROR",
"none"
],
"description": "Set how much loggin output will be displayed when executing np.Templating commands in NotePlan Plugin Console Logs (NotePlan -> Help -> Plugin Console)\n\n - DEBUG Show All Logs\n - INFO Only Show Info, Warnings, and Errors\n - WARN Only Show Errors or Warnings\n - ERROR Only Show Errors\n - none Silence Logs",
"default": "INFO",
"required": true
}
]
}