Follow-up Comment #7, bug #18720 (project mypaint):

I originally wrote a patch on David Revoy's behalf to implement timestamps in
filenames. Since then, MyPaint updates broke it.

I've recently thought of a much simpler implementation which is more flexible;
Have get_scrap_prefix expand {this_style} of format code (which is a tiny
subset of Python 2.7/3.x's str.format(), implemented without a dependency on
them.)

Patch attached -- try putting '{ymd}-' at the end of your scrap prefix, and
then saving a scrap. There are many formats, most of which are named obviously
(eg 'month', 'year', 'day','minute', 'dayname'..). All are zero-padded to suit
their maximum possible value (eg. to 3 places for 'yearday', which can range
001-366)

For now I've implemented the info as a tooltip on the scrap prefix entry
widget.

(file #14936)
    _______________________________________________________

Additional Item Attachment:

File name: 0001-scrap-prefix-Substitute-values-for-date-formats-like.patch
Size:8 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18720>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to