One9398 / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 1 forks source link

Timestamps for headers #418

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if there was an option to make <Plug>VimwikiAddHeaderLevel
add the creation date, similar to 
http://code.google.com/p/vimwiki/issues/detail?id=150&q=last

Also, when exiting insert mode, search backwards for the header and
inserts/update an last change date if the creation date exists and differs
from current date.

For example:

   MyHeader    -> normal =

could result in

   = MyHeader =
   Created: 2013 jul 01

Changing the text below in a different date could result in

   = MyHeader =
   Created: 2013 jul 01; Last Change: 2013 jul 02

Original issue reported on code.google.com by marcmo...@gmail.com on 2 Jul 2013 at 7:28

GoogleCodeExporter commented 8 years ago
The last update could also be triggered by writing to the file, which would 
possible reduce the number of executions of this procedure. The downside is 
that the user may have changed the cursor to another header.

Original comment by marcmo...@gmail.com on 2 Jul 2013 at 7:33