imdone-core 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/lib/config.js +15 -0
- package/lib/mixins/repo-watched-fs-store.js +1 -1
- package/lib/project.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +3 -0
package/CHANGELOG.md
CHANGED
package/lib/config.js
CHANGED
|
@@ -251,6 +251,10 @@ export class Config {
|
|
|
251
251
|
return this?.cards?.archiveCompleted ?? false
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
set archiveCompleted(archive) {
|
|
255
|
+
this.settings.cards.archiveCompleted = archive
|
|
256
|
+
}
|
|
257
|
+
|
|
254
258
|
get tokenPrefix() {
|
|
255
259
|
return this?.cards?.tokenPrefix ?? '#'
|
|
256
260
|
}
|
|
@@ -259,6 +263,17 @@ export class Config {
|
|
|
259
263
|
return this.getDoneList()
|
|
260
264
|
}
|
|
261
265
|
|
|
266
|
+
get metaSep() {
|
|
267
|
+
return this?.cards?.metaSep ?? COLON
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
set metaSep(value) {
|
|
271
|
+
if (!META_SEPS.includes(value)) {
|
|
272
|
+
throw new Error(`Invalid meta separator: ${value}`)
|
|
273
|
+
}
|
|
274
|
+
this.settings.cards.metaSep = value
|
|
275
|
+
}
|
|
276
|
+
|
|
262
277
|
getMetaSep() {
|
|
263
278
|
const metaSep = this?.cards?.metaSep ?? COLON
|
|
264
279
|
return META_SEPS.includes(metaSep) ? metaSep : COLON
|
|
@@ -190,7 +190,7 @@ export function watchedFileSystemStoreMixin(repo, fs = realFs) {
|
|
|
190
190
|
}
|
|
191
191
|
log('Reading file: ' + path)
|
|
192
192
|
file = await repo.readFile(file)
|
|
193
|
-
repo.
|
|
193
|
+
repo.emit('watch.add', file)
|
|
194
194
|
repo.emitFileUpdate(file)
|
|
195
195
|
})
|
|
196
196
|
.on('change', async function (path, stat) {
|
package/lib/project.js
CHANGED
package/package.json
CHANGED
package/types/config.d.ts
CHANGED
|
@@ -58,8 +58,11 @@ export class Config {
|
|
|
58
58
|
get orderMeta(): any;
|
|
59
59
|
get maxLines(): any;
|
|
60
60
|
get archiveFolder(): any;
|
|
61
|
+
set archiveCompleted(archive: any);
|
|
61
62
|
get archiveCompleted(): any;
|
|
62
63
|
get tokenPrefix(): any;
|
|
63
64
|
get doneList(): any;
|
|
65
|
+
set metaSep(value: any);
|
|
66
|
+
get metaSep(): any;
|
|
64
67
|
getMetaSep(): any;
|
|
65
68
|
}
|