Thomas Lauf
549cb7ba61
Update copyright
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2025-04-19 23:00:44 +02:00
Thomas Lauf
576af3fd5f
Add the sub-command range
to the modify
command.
...
Additionally, this also makes the syntax of the `modify` command more flexible.
Before, the sub-command had to follow right after the `modify` command, now one can also write it with the id between command and sub-command:
```
$ timew modify @1 start 09:30
```
The `range` sub-command modifies both start and end time of the interval. It expects a range as parameter, e.g.
```
$ timew modify @3 range 08:15 - 13:37
```
Closes #627
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2025-04-19 22:59:33 +02:00
Thomas Lauf
ea95ca8a70
Update copyright ranges
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-12-23 23:14:46 +01:00
Thomas Lauf
7b4a234f03
Unify coding style
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-12-23 22:38:31 +01:00
Thomas Lauf
2535c2c399
Cleanup includes
...
- Remove unused includes
- Use '<..>' style consistently
- Strip any paths from include
- Replace deprecated C++ headers
- Sort includes according to LLVM rules
https://llvm.org/docs/CodingStandards.html#include-style
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
14bed139f6
Update copyrights
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
993ae85d5c
Add check whether requested intervals have been found when searching by ID
...
- Restores behaviour which got lost when switching to the new interval filtering in 9968b9e9
- Add test for each command
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-01-09 11:43:56 +01:00
Thomas Lauf
9968b9e9d1
Replace function getIntervalsByIds
by getTracked
with new filtering
...
Replace getIntervalsByIds in commands CmdAnnotate, CmdContinue, CmdDelete,
CmdJoin, CmdLengthen, CmdModify, CmdMove, CmdResize, CmdShorten, CmdSplit,
CmdTag, and CmdUntag
Relates to #468
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-12-02 22:31:15 +01:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021
2021-01-02 02:52:39 -05:00
Thomas Lauf
ad58309159
Update Copyright
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Thomas Lauf
28da1b55f2
Hoist verbose flag
2020-02-23 19:03:54 +01:00
Shaun Ruffell
2fcca6f949
trivial:coding-style: Add curly braces around blocks modified recently
...
timwarrior coding standard is for there to be curly braces around all code
blocks.
See https://github.com/GothenburgBitFactory/timewarrior/pull/269#discussion_r367937920
2020-01-26 19:49:23 +01:00
Shaun Ruffell
9aac57c518
CmdSplit: Do not load entire database
...
Related to issue #245
2020-01-17 17:48:57 +01:00
Thomas Lauf
d64017a7a6
Update copyright dates
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Thomas Lauf
f72c4fda52
Extract class Journal from class Database
...
- const-ify Transaction and UndoAction
- Clang-tidying
2019-06-19 18:05:44 +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
4f5eb6eb0c
Make warning about new tags adhere to :quiet hint
2018-09-07 10:13:22 +02:00
Thomas Lauf
cfdd3680a4
#9 TI-1: Move starting and stopping of transactions to commands
2018-07-22 00:01:31 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +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
Paul Beckingham
88d644d193
Copyright 2018
2017-12-31 19:37:13 -05:00
Thomas Lauf
dc6d3b9672
Commands: Reduce code duplication
...
- Extract function to gather ids
2017-11-21 23:12:45 +01:00
Paul Beckingham
1091cc2085
Copyright update
2017-01-01 12:45:32 -05:00
Paul Beckingham
396135e062
Cleanup: Removed useless comment
2016-07-24 14:34:34 -04:00
Paul Beckingham
055d502568
CmdSplit: Cleanup
2016-07-24 12:22:00 -04:00
Paul Beckingham
bd7f3d5015
CmdX: Added error message when expected ids are missing
2016-07-17 08:55:18 -04:00
Paul Beckingham
c1ca1e19e1
CmdSplit: Only validates additions
2016-07-09 15:12:53 -04:00
Paul Beckingham
f66127f473
validate: Renamed validateInterval to vaildate, and integrated
2016-07-07 22:24:48 -04:00
Paul Beckingham
ffe326ed48
Cmd*: Added validateInterval calls prior to all interval modification
2016-07-02 13:59:08 -04:00
Paul Beckingham
df0d7a0797
CmdSplit: Obeys verbose mode
2016-06-11 11:04:55 -04:00
Paul Beckingham
5e044bd845
CmdSplit: Implemented 'split' command
2016-06-10 21:55:09 -04:00