@@ -128,12 +128,12 @@ export default class Yesterday extends Plugin {
128
128
if ( isDreamStart && ! this . inDream ) {
129
129
this . inDream = true ;
130
130
this . dreamContent = "> [!yesterday-dream] Dream\n" ;
131
- }
131
+ }
132
132
133
- if ( this . inDream ) {
133
+ if ( this . inDream ) {
134
134
let textWithoutMarkers = text . replace ( / ^ § § § | § § § $ / g, '' ) . trim ( ) ;
135
135
this . dreamContent += `> ${ textWithoutMarkers } \n` ;
136
- if ( ! isDreamEnd ) {
136
+ if ( ! isDreamEnd ) {
137
137
this . dreamContent += `> \n` ;
138
138
this . dreamParagraphsToRemove . push ( paragraph ) ;
139
139
}
@@ -286,7 +286,7 @@ export default class Yesterday extends Plugin {
286
286
document . body . classList . remove ( 'hide-media-files' ) ;
287
287
}
288
288
}
289
-
289
+
290
290
setColorClasses ( ) {
291
291
if ( this . settings . colorMarkdownFiles ) {
292
292
document . body . classList . add ( 'color-markdown-files' ) ;
@@ -298,7 +298,7 @@ export default class Yesterday extends Plugin {
298
298
async saveSettings ( ) {
299
299
await this . saveData ( this . settings ) ;
300
300
}
301
-
301
+
302
302
}
303
303
304
304
function updateStatusBarTodoCount ( barElement : HTMLElement ) {
@@ -382,15 +382,15 @@ class YesterdaySettingTab extends PluginSettingTab {
382
382
p . createEl ( 'a' , { href : 'https://www.yesterday.md' , text : 'yesterday.md' } ) ;
383
383
384
384
new Setting ( containerEl )
385
- . setName ( 'Color Entries' )
386
- . setDesc ( 'Highlights open and resolved entries in different colors' )
387
- . addToggle ( toggle => toggle
388
- . setValue ( this . plugin . settings . colorMarkdownFiles )
389
- . onChange ( async ( value ) => {
390
- this . plugin . settings . colorMarkdownFiles = value ;
391
- await this . plugin . saveSettings ( ) ;
392
- this . plugin . setColorClasses ( ) ;
393
- } ) ) ;
385
+ . setName ( 'Color Entries' )
386
+ . setDesc ( 'Highlights open and resolved entries in different colors' )
387
+ . addToggle ( toggle => toggle
388
+ . setValue ( this . plugin . settings . colorMarkdownFiles )
389
+ . onChange ( async ( value ) => {
390
+ this . plugin . settings . colorMarkdownFiles = value ;
391
+ await this . plugin . saveSettings ( ) ;
392
+ this . plugin . setColorClasses ( ) ;
393
+ } ) ) ;
394
394
395
395
new Setting ( containerEl )
396
396
. setName ( 'Hide Media Files' )
@@ -402,17 +402,5 @@ class YesterdaySettingTab extends PluginSettingTab {
402
402
await this . plugin . saveSettings ( ) ;
403
403
this . plugin . setMediaClasses ( ) ;
404
404
} ) ) ;
405
-
406
- // new Setting(containerEl)
407
- // .setName('DarkSky API Key')
408
- // .setDesc('You can get it from DarkSky')
409
- // .addText(text => text
410
- // .setPlaceholder('Enter your API key')
411
- // .setValue(this.plugin.settings.darkSkyApiKey)
412
- // .onChange(async (value) => {
413
- // console.log('Secret: ' + value);
414
- // this.plugin.settings.darkSkyApiKey = value;
415
- // await this.plugin.saveSettings();
416
- // }));
417
405
}
418
406
}
0 commit comments