Skip to content

Commit

Permalink
fix: add required and optional variables in template descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Oct 19, 2022
1 parent 8f33965 commit adc5e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ const main = async (baseInfo: LSPluginBaseInfo) => {
type: 'string',
title: 'Enter the template to use for new articles',
description:
'Enter the template to use for new articles. Available variables are: {title}, {omnivoreUrl}, {siteName}, {originalUrl}, {author}, {labels}, {dateSaved}',
'Enter the template to use for new articles. Required variables are: {title}, {omnivoreUrl}. Optional variables are: {siteName}, {originalUrl}, {author}, {labels}, {dateSaved}',
default: `[{title}]({omnivoreUrl})
collapsed:: true
site:: [{siteName}]({originalUrl})
Expand All @@ -453,7 +453,7 @@ const main = async (baseInfo: LSPluginBaseInfo) => {
type: 'string',
title: 'Enter the template to use for new highlights',
description:
'Enter the template to use for new highlights. Available variables are: {text}, {highlightUrl}, {dateHighlighted}',
'Enter the template to use for new highlights. Required variables are: {text}, {highlightUrl}. Optional variables are {dateHighlighted}',
default: `> {text} [⤴️]({highlightUrl})`,
},
]
Expand Down

0 comments on commit adc5e48

Please sign in to comment.