lifepillar / vim-colortemplate

The Toolkit for Vim Color Scheme Designers!
929 stars 29 forks source link

format of Last Updated #84

Closed habamax closed 3 months ago

habamax commented 3 months ago

Hi, vim project requires Last Updated format to be %Y %b %d, is it possible either add an option or change it? Currently it is %c which is OS dependent.

  if s:getopt('timestamp')
    call s:put(a:bufnr,         '" Last Updated: ' . strftime("%c"))
  endif

relates https://github.com/vim/vim/pull/15423

@chrisbra, is it ok to have time in Last Updated?

chrisbra commented 3 months ago

It's not a hard requirements, but in general we prefer to have a consistent "Last Change: " date format header.

lifepillar commented 3 months ago

That's fine. Any preference between Last Updated: and Last Change:?

chrisbra commented 3 months ago

Last Updated seems to be mostly coming from the color schemes ;). Also:

chrisbra@host:~/code/vim/runtime (master)$ git grep 'Last Updated:' |wc -l
42
chrisbra@host:~/code/vim/runtime (master)$ git grep 'Last Change:' |wc -l
1153
chrisbra@host:~/code/vim/runtime (master)$

quite obvious I think :)

lifepillar commented 3 months ago

Fixed in master. Thanks for your feedback!