jsliang / sublime-pelican

A Sublime Text plugin that makes writing Pelican articles easier and faster.
http://jsliang.com/sublime-pelican/
34 stars 9 forks source link

[Feature request] Modified setting update on save #30

Open Kristinita opened 7 years ago

Kristinita commented 7 years ago

See also similar issue.

1. Request

It would be nice, if you add feature — update value for Modified metadata parameter. It would be nice, if would be possible not only if users run command manually like pelican_update_date command, but value will be changed automatically, when users save their md or rst file.

2. Justification

Pelican documentation:

modified should be last time you updated the article, and defaults to date if not specified. Besides you can show modified in the templates, feed entries in feed readers will be updated automatically when you set modified to the current date after you modified your article.

In metadata we have parameters.

Users usually don't need to change Date, but need to change Modified.

3. Desirable behavior

In md or rst file user have Modified parameter, → user save file → Modified parameter change to current data automatically.

4. Examples on other apps

See, how time change in FileHeader package:

FileHeader

Thanks.