Thomas Lauf
ea324d056a
Use boolean variable instead of public field Palette::enabled
2019-01-21 14:18:16 +01:00
Thomas Lauf
37c7cc705d
Use local variable for indent string
2019-01-21 14:18:16 +01:00
Thomas Lauf
b00d097e3e
Extract function to calculate indent
2019-01-21 14:18:16 +01:00
Thomas Lauf
f5bbe5e1bc
Let command join merge tags of given intervals
2019-01-20 23:25:54 +01:00
Thomas Lauf
2026296bf5
Update AUTHORS, ChangeLog
...
- Fix copyright dates
2018-12-06 21:08:30 +01:00
Shaun Ruffell
ceca4c817e
#131 : Introduce 'modify' to adjust historical records to fixed date/time.
...
This change introduces a new command that, like lengthen, move, resize, and
shorten, is intended to move and/or resize a record, but instead of taking an
interval, will take an absolute date/time.
This command is useful because it removes the need for the user to calculate
the time intervals to shorten / lengthen a record by. For example, if the user
accidentally forgot to stop tracking an interval before starting a new one,
but new they stopped working at a specific time, it is easy to simply modify
the end time of the interval that they had forgotten to stop.
2018-11-30 22:27:08 +01:00
Thomas Lauf
72cfe7b4d8
Allow for closed intervals with start date in the future
...
- open intervals still have to start before now (move check to CmdStart)
- Closes #62
- Closes #142
2018-10-19 14:07:19 +02:00
Thomas Lauf
3678c2cdc3
Add hint :annotations to display annotation column in summary (default: hidden)
2018-10-10 22:10:01 +02:00
Thomas Lauf
a35b9d6660
Add annotation column to summary
2018-10-10 21:38:57 +02:00
Thomas Lauf
fc1761e700
Fix behaviour when 'timew annotate' is called without annotation string
2018-10-10 20:42:01 +02:00
Thomas Lauf
63bb079f5e
Update CmdHelp with help about 'timew annotate'
2018-10-10 15:50:11 +02:00
Thomas Lauf
58e7cec118
Added first version of command 'annotate'
...
Closes #68
Closes #77
2018-10-09 17:00:36 +02:00
Thomas Lauf
1a24c49507
Extract creation of intervals into IntervalFactory
2018-10-08 21:42:25 +02:00
Thomas Lauf
64fd98a2bd
Add help and man page for command 'undo'
2018-09-27 22:02:15 +02:00
Thomas Lauf
c0039b6ff5
Add convenience method to set range with two dates
2018-09-19 06:32:56 +02:00
Thomas Lauf
9dd106116c
Let Interval inherit from Range
...
- Remove 1 level of indirection
- Remove public field Interval::range (instead use interval directly)
2018-09-19 06:32:56 +02:00
Thomas Lauf
9e1e604108
Rename Range::overlap to Range::overlaps
2018-09-18 21:06:33 +02:00
Thomas Lauf
4f5eb6eb0c
Make warning about new tags adhere to :quiet hint
2018-09-07 10:13:22 +02:00
Thomas Lauf
961d0212ba
#167 Allow intervals to be shortened to zero width
...
Closes #167
2018-08-10 18:02:41 +02:00
Janik Rabe
8b48085ee8
CmdHelp: Add missing closing bracket
2018-08-08 21:13:08 +02:00
Janik Rabe
d54bc6ba55
CmdSummary: Do not extend end time beyond end of day
...
When showing a summary, set the end time to the current time on the
last day only. This prevents over-counting of time when a tracked
interval covers multiple days.
Fixes test TestSummary.test_with_open_interval when the system time
is between midnight and 01:00 AM.
2018-08-08 07:12:40 +02:00
Thomas Lauf
9489ed5b70
Fix error message
2018-07-31 09:48:03 +02:00
Thomas Lauf
d230e40313
#9 TI-1: Make undo work with config actions
2018-07-24 18:40:11 +02:00
Thomas Lauf
0688e3ba07
#9 TI-1: Move static functions (un)setConfigVariable(...) to Rules
2018-07-24 08:07:10 +02:00
Thomas Lauf
cfdd3680a4
#9 TI-1: Move starting and stopping of transactions to commands
2018-07-22 00:01:31 +02:00
Thomas Lauf
29e305033b
#9 TI-1: Make undo work with interval actions
...
- Add creator method to create interval from JSON string
- Add getters for UndoAction fields
- Make Database::modifyInterval work with empty intervals (i.e. ignore them at the respective command)
2018-07-21 22:35:17 +02:00
Thomas Lauf
86258cdb93
#9 TI-1: Add informative output to undo command
2018-07-19 20:03:01 +02:00
Thomas Lauf
76ee22e7e5
#9 TI-1: Add TransactionFactory
...
- CmdUndo pops last transaction from array (and applies undo actions - tbd)
- TransactionFactory reads contents of undo.data into transaction array
- Transaction array is written back to undo.data
2018-07-19 19:56:10 +02:00
Thomas Lauf
d8a4b8ff43
#9 TI-1 Add a skeleton undo command
2018-07-19 11:58:43 +02:00
Thomas Lauf
21b4b6242c
#9 TI-1: Merge if statements
2018-07-18 22:43:32 +02:00
Thomas Lauf
af621a3eef
#9 TI-1: Return early, use return value of delegated CmdShow
2018-07-18 22:32:05 +02:00
Thomas Lauf
36134ca5fc
#9 TI-1: Fix application name in comments
2018-07-18 22:25:14 +02:00
Thomas Lauf
b32945a925
#9 TI-1: Reformat function definitions
2018-07-18 22:22:02 +02:00
Thomas Lauf
881d9590da
#9 TI-1: Add wrapper methods for config and interval undo-actions
...
- make recordUndoAction private
2018-07-18 21:49:18 +02:00
Thomas Lauf
b8b0bbfeaf
#9 TI-1: Rename undoTxn*-functions
2018-07-18 21:38:06 +02:00
Thomas Lauf
b1421579ab
Update ChangeLog, AUTHORS, and Copyright
2018-05-19 11:35:14 +02:00
Thomas Lauf
543848ae68
Take change of month into account when calculating interval widths
...
- Fixes #135 : Task at month end not getting displayed
2018-05-19 11:35:14 +02:00
Thomas Lauf
10dfa64cfa
#21 Add implicit @1 to command 'untag'
...
- Extend interval assertions
- Add interval assertions to tests for command 'tag'
- Add interval assertions to tests for command 'untag'
2018-05-13 17:56:55 +02:00
Thomas Lauf
c595132a9c
#21 Use open interval when no id given
...
- Add test
- Special handling if database empty
2018-05-13 17:56:55 +02:00
Thomas Lauf
4afd14ee2e
#21 Let command 'tag' fail on no tags given
...
- Add test
2018-05-13 17:56:55 +02:00
Thomas Lauf
784ecbbfd9
#21 Move check for empty ID list
...
- Sharpen error message
- Add test
2018-05-13 17:56:55 +02:00
Thomas Lauf
db13bd403f
#21 Move method to gather tags to CLI
2018-05-13 17:56:55 +02:00
Thomas Lauf
2c5812f7a3
Use the empty method to check for emptiness instead of comparing to an empty object
2018-05-10 20:57:22 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +01:00
Thomas Lauf
5264947de8
TI-116: Remove superfluous feedback
2018-03-10 21:26:28 +01:00
Thomas Lauf
8ce9e83ab5
TI-93 #97 Make CLI::getIds() return a set to guarantee uniqueness of ids
2018-03-08 20:44:10 +01:00
Thomas Lauf
9147f743e9
Fail early if summary is empty
2018-02-23 20:35:33 +01:00
Thomas Lauf
39eb1a8056
Add early return to CmdCancel
2018-02-22 23:54:08 +01:00
Thomas Lauf
a37ab24c07
TI-102: Fix interval flattening in CmdStart
...
- set correct range for exclusion retrieval
- report on added intervals not on entered
2018-01-19 16:25:22 +01:00
Thomas Lauf
f6e892d118
TI-102: Add interval flattening to CmdStop
2018-01-19 16:25:22 +01:00