Commit graph

14 commits

Author SHA1 Message Date
Felicity Tarnell
49651c90a2 Honour user's time format when editing entry duration. 2014-03-08 13:58:21 +00:00
Felicity Tarnell
0479ee0f89 Configurable time format. 2014-03-08 13:49:19 +00:00
Felicity Tarnell
2af789884e Use new time format in day headers. 2014-03-08 13:26:35 +00:00
Felicity Tarnell
34712e643c New time format: "1h30m7s".
This is fairly flexible, so you could say 10s1h, or even 1h1h1h (which is
equivalent to 3h).  Time parsing is now implemented by a single function, so
there should be no inconsistencies.

The old [[HH:]MM:]SS syntax is still supported, but not used in prompts.
2014-03-08 12:18:22 +00:00
River Tarnell
e8ccd681e3 Don't spin-loop in prompt(). 2014-03-08 01:00:30 +00:00
Felicity Tarnell
f25e283f21 Fix NetBSD and non-ncurses build. Simplify CPPFLAGS. 2014-03-08 00:50:11 +00:00
Felicity Tarnell
003ac6cca4 Always use wide characters. 2014-03-08 00:30:40 +00:00
Felicity Tarnell
524b09511d Code cleanups; no functional changes. 2014-03-07 23:47:31 +00:00
Felicity Tarnell
3440a87ea3 Add macro support.
Replace WGETCH() with input_char(), which works the same except it supports an
input buffer.  Calling input_macro(s) sets the input buffer to 's'.  The input
buffer is returned by input_char() as if it had been typed by the user.

If an error occurs (cmderr()), the input buffer is cleared.
2014-03-07 23:34:06 +00:00
Felicity Tarnell
fb9ffde209 Fix prompt styling & memory leak in yesno(). 2014-03-07 22:37:43 +00:00
Felicity Tarnell
707812a078 Draw the input prompt in the right place. 2014-03-07 22:24:33 +00:00
Felicity Tarnell
a1a3b576a0 OS X: Remove CoreFoundation; use kqueue() directly. 2014-03-07 20:20:20 +00:00
Felicity Tarnell
50d9efdac9 Cleanups; add 'make depend'. 2014-03-07 19:18:20 +00:00
Felicity Tarnell
332fdba0bd Source refactoring; no functional changes. 2014-03-07 17:43:41 +00:00