88} from "logseq-dateutils" ;
99import moment from "moment-timezone" ;
1010
11+ let mainBlockUUID = ""
1112// const md = require('markdown-it')().use(require('markdown-it-mark'));
1213
1314const settingsTemplate : SettingSchemaDesc [ ] = [
@@ -27,6 +28,13 @@ const settingsTemplate: SettingSchemaDesc[] = [
2728 description :
2829 "If you require more than 5 calendars, select this option so that you can manually define calendars via json" ,
2930 } ,
31+ {
32+ key : "IndentCommonBlock" ,
33+ type : "boolean" ,
34+ default : false ,
35+ title : "Indent all events under the same block" ,
36+ description : "If you want to indent all events under the same block, irrespective of the calendar they belong to" ,
37+ } ,
3038 {
3139 key : "templateLine2" ,
3240 type : "string" ,
@@ -301,7 +309,8 @@ async function insertJournalBlocks(
301309 preferredDateFormat : string ,
302310 calendarName ,
303311 settings ,
304- emptyToday
312+ emptyToday ,
313+ useCommonBlock = false
305314) {
306315 // let emptyToday = (getDateForPageWithoutBrackets(new Date(), preferredDateFormat))
307316 console . log ( `Current Date: ${ emptyToday } ` ) ;
@@ -457,7 +466,7 @@ async function main() {
457466 label : `Syncing with ${ accountName } ` ,
458467 } ,
459468 ( ) => {
460- openCalendar2 ( accountName , accountSetting [ 0 ] , initialSettings ) ;
469+ openCalendar2 ( accountName , accountSetting , initialSettings ) ;
461470 }
462471 ) ;
463472 }
0 commit comments