You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add duration formatter
* Add duration format to uptime block
* Add duration format to tea_timer block
* Add duration format to battery block
* formatter[duration]: Rename show_leading_units_if_zero to leading_zeroes
* formatter[duration]: Rename show_leading_units_if_zero to leading_zeroes in docs
Copy file name to clipboardExpand all lines: src/blocks/tea_timer.rs
+46-33Lines changed: 46 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,21 @@
4
4
//!
5
5
//! Key | Values | Default
6
6
//! ----|--------|--------
7
-
//! `format` | A string to customise the output of this block. See below for available placeholders. | <code>\" $icon {$minutes:$seconds \|}\"</code>
7
+
//! `format` | A string to customise the output of this block. See below for available placeholders. | <code>\" $icon {$time.duration(hms:true) \|}\"</code>
8
8
//! `increment` | The numbers of seconds to add each time the block is clicked. | 30
9
9
//! `done_cmd` | A command to run in `sh` when timer finishes. | None
0 commit comments