Skip to content

Commit

Permalink
feat: use id as filename (omnivore-app#154)
Browse files Browse the repository at this point in the history
* feat: use id as filename

* add id to the settings description
  • Loading branch information
sywhb committed Nov 10, 2023
1 parent 5de547d commit 74e255a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class OmnivoreSettingTab extends PluginSettingTab {
new Setting(containerEl)
.setName("Filename")
.setDesc(
"Enter the filename where the data will be stored. {{{title}}}, {{{dateSaved}}} and {{{datePublished}}} could be used in the filename"
"Enter the filename where the data will be stored. {{id}}, {{{title}}}, {{{dateSaved}}} and {{{datePublished}}} could be used in the filename"
)
.addText((text) =>
text
Expand Down
1 change: 1 addition & 0 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const renderFilename = (
date,
dateSaved: date,
datePublished,
id: article.id,
});

// truncate the filename to 100 characters
Expand Down

0 comments on commit 74e255a

Please sign in to comment.