omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
757 stars 41 forks source link

Suggestions for file saving. #76

Closed StrollStars closed 1 year ago

StrollStars commented 1 year ago
  1. The currently supported variables for synchronized file saving are only {{{date}}} and {{{title}}}. It is hoped that {{{datePublished}}} can be supported as well.
  2. The currently supported variable for the directory of synchronized files is only {{{date}}}. It is hoped that {{{year}}} can also be supported, as I would like to categorize the files by year.
StrollStars commented 1 year ago

@sywhb 请问这个建议能实现吗?

sywhb commented 1 year ago

@StrollStars 可以的,我可以加更多的 variable 并且再添加一个设置来更改 {{{ date }}}的格式。

我会把这个放进 priority, 尽快搞定

sywhb commented 1 year ago

@StrollStars 我刚发布了1.5.0,datePublished 已经可以作为文件名使用啦,还有你可以更改这个设置

Screenshot 2023-06-19 at 7 21 11 PM
sywhb commented 1 year ago
Screenshot 2023-06-19 at 7 21 57 PM
StrollStars commented 1 year ago

@sywhb 谢谢更新,文件夹命名没有问题,但是文件命名好像存在问题{{{datePublished}}}可用了,但是{{{title}}}好像带不出来,单独用{{{title}}}也不行。

sywhb commented 1 year ago

好像中文的title会有问题,我来改一下

StrollStars commented 1 year ago

@sywhb 还没改好吧?我试了下还是不行。 另外请教个问题,如果没有发行日期,同时又是中文标题,会因为文件名为空而无法同步到本地吗?

sywhb commented 1 year ago

@StrollStars 刚刚发布了1.5.1已经修复了这个bug :)

Screenshot 2023-06-21 at 10 10 34 AM
StrollStars commented 1 year ago

@sywhb 问题和需求都得到了解决,非常感谢。