diff --git a/info.plist b/info.plist index 867e005..2c41477 100644 --- a/info.plist +++ b/info.plist @@ -2932,21 +2932,21 @@ to set a hotkey for adding DOI/ISBN variables _format_citation_end - + ] _format_citation_start - + [ _format_citekey_delimiter - + ; _format_citekey_prefix - + @ _format_citekey_suffix _format_current_citation_style - formatted single entry + pandoc _format_page_before_citekey - + false _format_page_prefix - + , p. _format_page_suffix diff --git a/scripts/open-create-literature-note.js b/scripts/open-create-literature-note.js index b3c2cc8..4ddd845 100755 --- a/scripts/open-create-literature-note.js +++ b/scripts/open-create-literature-note.js @@ -24,7 +24,8 @@ function run(argv) { app.pathTo("home folder") + "/Library/Application Support/obsidian/obsidian.json"; const vaults = JSON.parse(app.read(obsidianJsonFilePath)).vaults; const isFileInObsidianVault = Object.values(vaults).some((v) => - literatureNotePath.startsWith(v.path), + // lowercase comparison, since macOS filesystem is case-insensitive + literatureNotePath.toLowerCase().startsWith(v.path.toLowerCase()), ); if (isFileInObsidianVault) {