From c6b7c80d7b6294f19559350ca67522e307ce7b0c Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 23 Aug 2023 17:19:06 +0800 Subject: [PATCH 1/2] Make the docs for the custom queries a bit more explicit --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 021bf9f..714d184 100644 --- a/src/main.ts +++ b/src/main.ts @@ -469,7 +469,7 @@ class OmnivoreSettingTab extends PluginSettingTab { text: "https://omnivore.app/help/search", href: "https://omnivore.app/help/search", }), - " for more info on search query syntax" + " for more info on search query syntax. Make sure your Filter (in the section above) is set to advanced when using a custom query." ); }) ) From 25fc8424828e0dfc7c5874b34ace37264a084906 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 6 Sep 2023 15:22:04 +0800 Subject: [PATCH 2/2] Expose author as a template variable for file and folder names --- src/settings/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings/template.ts b/src/settings/template.ts index 3df576c..23168b5 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -132,6 +132,7 @@ export const renderFilename = ( : undefined; const renderedFilename = Mustache.render(filename, { title: article.title, + author: article.author ?? "unknown-author", date, dateSaved: date, datePublished, @@ -320,6 +321,7 @@ export const renderFolderName = ( date, dateSaved: date, datePublished, + author: article.author ?? "unknown-author", }); };