Skip to content

Commit eba0fc1

Browse files
committed
fix command pallete
1 parent 52bc053 commit eba0fc1

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

index.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from "logseq-dateutils";
99
import moment from "moment-timezone";
1010

11+
let mainBlockUUID = ""
1112
// const md = require('markdown-it')().use(require('markdown-it-mark'));
1213

1314
const 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
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logseq-calendars-plugin",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Import GCal, iCloud,and Outlook calendars to your logseq daily note",
55
"main": "dist/index.html",
66
"targets": {
@@ -15,7 +15,7 @@
1515
"type": "commonjs",
1616
"license": "ISC",
1717
"dependencies": {
18-
"@logseq/libs": "0.0.1-alpha.35",
18+
"@logseq/libs": "0.0.6",
1919
"axios": "^0.25.0",
2020
"logseq-dateutils": "latest",
2121
"moment": "^2.29.3",

0 commit comments

Comments
 (0)