@@ -140,12 +140,9 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
140
140
141
141
containerEl . empty ( ) ;
142
142
143
- containerEl . createEl ( 'h1' , { text : 'Readwise Sync Configuration' } ) ;
144
-
145
143
// Authentication section inspired by the official Readwise plugin
146
144
new Setting ( containerEl ) . setName ( 'Authentication' ) . setHeading ( ) ;
147
145
148
-
149
146
const hasValidToken = await this . plugin . readwiseApi . hasValidToken ( ) ;
150
147
151
148
const tokenValidationError = containerEl . createDiv ( {
@@ -164,7 +161,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
164
161
} ) ;
165
162
166
163
new Setting ( containerEl )
167
- . setName ( 'Readwise Authentication ' )
164
+ . setName ( 'Readwise authentication ' )
168
165
. setDesc ( createFragment ( ( fragment ) => {
169
166
fragment . createEl ( 'br' ) ;
170
167
fragment . createEl ( 'br' ) ;
@@ -219,12 +216,10 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
219
216
220
217
221
218
222
- new Setting ( containerEl )
223
- . setName ( 'Library Settings' )
224
- . setHeading ( ) ;
219
+ new Setting ( containerEl ) . setName ( 'Library' ) . setHeading ( ) ;
225
220
226
221
new Setting ( containerEl )
227
- . setName ( 'Readwise library folder name' )
222
+ . setName ( 'Library folder name' )
228
223
. setDesc ( 'Default: Readwise' )
229
224
. addText ( ( text ) =>
230
225
text
@@ -237,12 +232,10 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
237
232
} )
238
233
) ;
239
234
240
- new Setting ( containerEl )
241
- . setName ( 'Sync Settings' )
242
- . setHeading ( ) ;
235
+ new Setting ( containerEl ) . setName ( 'Sync' ) . setHeading ( ) ;
243
236
244
237
new Setting ( containerEl )
245
- . setName ( 'Auto Sync when starting' )
238
+ . setName ( 'Auto sync when starting' )
246
239
. setDesc ( 'Automatically syncs new highlights after opening Obsidian' )
247
240
. addToggle ( ( toggle ) =>
248
241
toggle . setValue ( this . plugin . settings . autoSync ) . onChange ( async ( value ) => {
@@ -251,9 +244,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
251
244
} )
252
245
) ;
253
246
254
- new Setting ( containerEl )
255
- . setName ( 'Author Name Settings' )
256
- . setHeading ( )
247
+ new Setting ( containerEl ) . setName ( 'Author names' ) . setHeading ( )
257
248
. setDesc ( createFragment ( ( fragment ) => {
258
249
fragment . appendText (
259
250
'These settings control how author names are processed. If enabled, titles (Dr., Prof., Mr., Mrs., Ms., Miss, Sir, Lady) will be stripped from author names.'
@@ -277,7 +268,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
277
268
} ) )
278
269
279
270
new Setting ( containerEl )
280
- . setName ( 'Normalize Author Names ' )
271
+ . setName ( 'Normalize author names ' )
281
272
. setClass ( 'indent' )
282
273
. setDesc ( 'If enabled, author names will be normalized to a consistent case.' )
283
274
. addToggle ( ( toggle ) =>
@@ -288,7 +279,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
288
279
) ;
289
280
290
281
new Setting ( containerEl )
291
- . setName ( 'Strip Titles from Author Names ' )
282
+ . setName ( 'Strip titles from author names ' )
292
283
. setClass ( 'indent' )
293
284
. setDesc ( 'If enabled, titles (e.g., Dr., Mr., Prof., etc.) will be stripped from author names.' )
294
285
. addToggle ( ( toggle ) =>
@@ -298,12 +289,10 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
298
289
} )
299
290
) ;
300
291
301
- new Setting ( containerEl )
302
- . setName ( 'Highlight Organization' )
303
- . setHeading ( ) ;
292
+ new Setting ( containerEl ) . setName ( 'Highlight organization' ) . setHeading ( ) ;
304
293
305
294
new Setting ( containerEl )
306
- . setName ( 'Sort Highlights in notes from Oldest to Newest ' )
295
+ . setName ( 'Sort highlights from oldest to newest ' )
307
296
. setDesc (
308
297
'If checked, highlights will be listed from oldest to newest. Unchecked, newest highlights will appear first.'
309
298
)
@@ -315,7 +304,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
315
304
) ;
316
305
317
306
new Setting ( containerEl )
318
- . setName ( 'Sort Highlights by Location ' )
307
+ . setName ( 'Sort highlights by location ' )
319
308
. setDesc (
320
309
'If checked, highlights will be listed in order of Location. Combine with above Sort Highlights from Oldest to Newest option to reverse order.'
321
310
)
@@ -327,7 +316,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
327
316
) ;
328
317
329
318
new Setting ( containerEl )
330
- . setName ( 'Filter Discarded Highlights ' )
319
+ . setName ( 'Filter discarded highlights ' )
331
320
. setDesc ( 'If enabled, do not display discarded highlights in the Readwise library.' )
332
321
. addToggle ( ( toggle ) =>
333
322
toggle . setValue ( this . plugin . settings . highlightDiscard ) . onChange ( async ( value ) => {
@@ -337,7 +326,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
337
326
) ;
338
327
339
328
new Setting ( containerEl )
340
- . setName ( 'Only sync highlights with notes' )
329
+ . setName ( 'Sync highlights with notes only ' )
341
330
. setDesc (
342
331
'If checked, highlights will only be synced if they have a note. This makes it easier to use these notes for Zettelkasten.'
343
332
)
@@ -348,13 +337,10 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
348
337
} )
349
338
) ;
350
339
351
- new Setting ( containerEl )
352
- . setName ( 'Filename Settings' )
353
- . setDesc ( 'Controls how filenames are generated from the title' )
354
- . setHeading ( ) ;
340
+ new Setting ( containerEl ) . setName ( 'Filenames' ) . setHeading ( ) ;
355
341
356
342
new Setting ( containerEl )
357
- . setName ( 'Replacement string for colons in filenames' )
343
+ . setName ( 'Colon replacement in filenames' )
358
344
. setDesc (
359
345
"Set the string to be used for replacement of colon (:) in filenames derived from the title. The default value for this setting is '-'."
360
346
)
@@ -375,7 +361,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
375
361
) ;
376
362
377
363
new Setting ( containerEl )
378
- . setName ( 'Use Slugify for filenames' )
364
+ . setName ( 'Use slugify for filenames' )
379
365
. setDesc (
380
366
createFragment ( ( fragment ) => {
381
367
fragment . appendText (
@@ -411,7 +397,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
411
397
if ( this . plugin . settings . useSlugify ) {
412
398
new Setting ( containerEl )
413
399
. setClass ( 'indent' )
414
- . setName ( 'Slugify Separator ' )
400
+ . setName ( 'Slugify separator ' )
415
401
. setDesc ( 'Character to use as separator in slugified filenames (default: -)' )
416
402
. addText ( ( text ) =>
417
403
text
@@ -425,7 +411,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
425
411
426
412
new Setting ( containerEl )
427
413
. setClass ( 'indent' )
428
- . setName ( 'Slugify Lowercase ' )
414
+ . setName ( 'Slugify lowercase ' )
429
415
. setDesc ( 'Convert slugified filenames to lowercase' )
430
416
. addToggle ( ( toggle ) =>
431
417
toggle . setValue ( this . plugin . settings . slugifyLowercase ) . onChange ( async ( value ) => {
@@ -435,12 +421,10 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
435
421
) ;
436
422
}
437
423
438
- new Setting ( containerEl )
439
- . setName ( 'Sync Logging' )
440
- . setHeading ( ) ;
424
+ new Setting ( containerEl ) . setName ( 'Sync logging' ) . setHeading ( ) ;
441
425
442
426
new Setting ( containerEl )
443
- . setName ( 'Sync Log ' )
427
+ . setName ( 'Sync log ' )
444
428
. setDesc ( 'Save sync log to file in Library' )
445
429
. addToggle ( ( toggle ) =>
446
430
toggle . setValue ( this . plugin . settings . logFile ) . onChange ( async ( value ) => {
@@ -452,7 +436,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
452
436
if ( this . plugin . settings . logFile ) {
453
437
new Setting ( containerEl )
454
438
. setClass ( 'indent' )
455
- . setName ( 'Sync Log File Name ' )
439
+ . setName ( 'Log filename ' )
456
440
. setDesc ( 'Default: Sync.md' )
457
441
. addText ( ( text ) =>
458
442
text
@@ -484,7 +468,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
484
468
// Documentation block for templates
485
469
486
470
new Setting ( containerEl )
487
- . setName ( 'Frontmatter Settings ' )
471
+ . setName ( 'Frontmatter settings ' )
488
472
. setDesc (
489
473
createFragment ( ( fragment ) => {
490
474
fragment . appendText ( 'Controls the YAML metadata at the top of each note.' ) ;
@@ -493,7 +477,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
493
477
. setHeading ( ) ;
494
478
495
479
new Setting ( containerEl )
496
- . setName ( 'Frontmatter ' )
480
+ . setName ( 'Add frontmatter ' )
497
481
. setDesc ( 'Add frontmatter (defined with the Frontmatter Template below)' )
498
482
. addToggle ( ( toggle ) =>
499
483
toggle . setValue ( this . plugin . settings . frontMatter ) . onChange ( async ( value ) => {
@@ -516,7 +500,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
516
500
if ( this . plugin . settings . frontMatter ) {
517
501
new Setting ( containerEl )
518
502
. setClass ( 'indent' )
519
- . setName ( 'Update Frontmatter ' )
503
+ . setName ( 'Update frontmatter ' )
520
504
. setDesc (
521
505
createFragment ( ( fragment ) => {
522
506
fragment . appendText ( 'Update frontmatter when syncing existing files' ) ;
@@ -538,7 +522,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
538
522
if ( this . plugin . settings . updateFrontmatter ) {
539
523
new Setting ( containerEl )
540
524
. setClass ( 'indent' )
541
- . setName ( 'Protect Frontmatter Fields ' )
525
+ . setName ( 'Protect frontmatter fields ' )
542
526
. setDesc (
543
527
createFragment ( ( fragment ) => {
544
528
fragment . appendText ( 'Prevent existing frontmatter fields from being overwritten during sync' ) ;
@@ -583,7 +567,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
583
567
const container = containerEl . createDiv ( ) ;
584
568
new Setting ( container )
585
569
. setClass ( 'indent' )
586
- . setName ( 'Protected Fields ' )
570
+ . setName ( 'Protected fields ' )
587
571
. setDesc ( 'Enter one field name per line' )
588
572
. addTextArea ( ( text ) => {
589
573
const errorDiv = container . createDiv ( {
@@ -626,12 +610,10 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
626
610
}
627
611
628
612
629
- new Setting ( containerEl )
630
- . setName ( 'File Tracking' )
631
- . setHeading ( ) ;
613
+ new Setting ( containerEl ) . setName ( 'File tracking' ) . setHeading ( ) ;
632
614
633
615
new Setting ( containerEl )
634
- . setName ( 'Enable File Tracking ' )
616
+ . setName ( 'Enable file tracking ' )
635
617
. setDesc (
636
618
createFragment ( ( fragment ) => {
637
619
fragment . appendText (
@@ -661,7 +643,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
661
643
if ( this . plugin . settings . trackFiles && this . plugin . settings . frontMatter ) {
662
644
new Setting ( containerEl )
663
645
. setClass ( 'indent' )
664
- . setName ( 'Tracking Property ' )
646
+ . setName ( 'Tracking property ' )
665
647
. setDesc (
666
648
'Frontmatter property to store the unique Readwise URL (default: uri). This field will be automatically managed in the frontmatter.'
667
649
)
@@ -678,7 +660,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
678
660
679
661
new Setting ( containerEl )
680
662
. setClass ( 'indent' )
681
- . setName ( 'Remove Duplicate Files ' )
663
+ . setName ( 'Remove duplicate files ' )
682
664
. setDesc (
683
665
createFragment ( ( fragment ) => {
684
666
fragment . appendText (
@@ -730,7 +712,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
730
712
}
731
713
732
714
new Setting ( containerEl )
733
- . setName ( 'Frontmatter Template ' )
715
+ . setName ( 'Frontmatter template ' )
734
716
. setDesc (
735
717
createFragment ( ( fragment ) => {
736
718
fragment . appendText ( 'Controls YAML frontmatter metadata. The same variables are available as for the Header template, with specific versions optimised for YAML frontmatter (tags), and escaped values for YAML compatibility.' ) ;
@@ -876,7 +858,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
876
858
877
859
878
860
new Setting ( containerEl )
879
- . setName ( 'Header Template ' )
861
+ . setName ( 'Header template ' )
880
862
. setDesc (
881
863
createFragment ( ( fragment ) => {
882
864
fragment . appendText ( 'Controls document metadata and structure.' ) ;
@@ -931,7 +913,7 @@ export default class ReadwiseMirrorSettingTab extends PluginSettingTab {
931
913
} ) ;
932
914
933
915
new Setting ( containerEl )
934
- . setName ( 'Highlight Template ' )
916
+ . setName ( 'Highlight template ' )
935
917
. setDesc (
936
918
createFragment ( ( fragment ) => {
937
919
fragment . appendText ( 'Controls individual highlight formatting.' ) ;
0 commit comments