Dustin J. Mitchell
9824ac1fd3
add 'entry' key to tasks when created
2022-01-06 02:18:32 +00:00
Dustin J. Mitchell
b663745892
Support an 'end' key in task maps
...
This definition matches how TaskWarrior uses the same key.
2022-01-06 02:02:13 +00:00
Tomas Babej
cb058f2e4b
tests: Remove Ubuntu 20.10 (now beyond EOL) from the test matrix
2022-01-05 21:01:21 -05:00
Dustin J. Mitchell
4b2ef1913a
use owned values to avoid unnecessary cloning
2022-01-06 00:17:01 +00:00
Dustin J. Mitchell
63804b5652
Implement 'ta import'
...
Tests include "TODO" notes for data not handled by TaskChampion,
including links to the associated GitHub issues.
2022-01-06 00:06:19 +00:00
Dustin J. Mitchell
e2e0951c81
Make a public method
2022-01-05 03:12:44 +00:00
Dustin J. Mitchell
e3f438d9fa
make taskdb.apply for create/delete not fail if already exists/doesn't exist
2022-01-05 02:49:04 +00:00
Dustin J. Mitchell
d6efad06ee
Merge pull request #320 from djmitche/issue318
...
use strum_macros::Display to display Status
2022-01-03 10:14:31 -05:00
Dustin J. Mitchell
9965d10736
Maintain unrecognized statuses
2022-01-03 02:35:19 +00:00
Dustin J. Mitchell
6a1d1a8c3c
use strum_macros::Display to display Status
2022-01-03 02:35:19 +00:00
Dustin J. Mitchell
c564bbc0b7
fix test to pass at the end of the year
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
b066a17ebe
use a reference in CurrentTask
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
277ce0e226
Update doc comment in src/Context.h
...
Co-authored-by: Tomas Babej <tomas@tbabej.com>
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
65830dd705
replace the global contextTask with a Context field
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
53127bf844
add Context::withCurrentTask
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
2ea6dd627e
Just set contextTask in Task::modify
...
Based on the observation that every command was setting contextTask
immediately before calling `task.modify(..)`.
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
db26a28bf9
move domSource to Eval, as it's an Eval source
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
6e9ad1048d
move use of contextTask out of columns, into commands
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
e98b61f2b5
test for dashes in proj without incidentally testing DOM references in 'task add'
2021-12-30 15:03:37 -05:00
Dustin J. Mitchell
1bc7b5f019
Merge pull request #316 from djmitche/issue90
...
Define UDAs
2021-12-27 17:06:47 -05:00
Dustin J. Mitchell
bc8bb52551
do not use str.split_once, as it is not in MSRV
2021-12-27 00:14:40 +00:00
Dustin J. Mitchell
e94c29ae2f
use better trait bounds
2021-12-27 00:09:02 +00:00
Dustin J. Mitchell
829f67ee02
Merge branch 'main' into issue90
2021-12-26 19:04:10 -05:00
Dustin J. Mitchell
b255ad2a7d
use namespace.key for UDAs in the API, with legacy support
2021-12-27 00:01:14 +00:00
Dustin J. Mitchell
d5f087bf9a
Merge pull request #324 from djmitche/issue322
...
Update clippy toolchain to 1.57
2021-12-23 09:08:49 -05:00
Dustin J. Mitchell
cb1395ea32
Merge pull request #323 from taskchampion/issue92
...
Support 'undo'
2021-12-23 09:08:01 -05:00
Dustin J. Mitchell
8195b187c4
fix docs typo
2021-12-23 09:06:19 -05:00
Dustin J. Mitchell
691a3e49e8
Update clippy toolchain to 1.57
2021-12-22 00:43:15 +00:00
Dustin J. Mitchell
36c51d2d93
fix clippy
2021-12-22 00:31:46 +00:00
Dustin J. Mitchell
5fb3f700c0
add some logging for undo
2021-12-21 01:12:30 +00:00
Dustin J. Mitchell
e328b86d97
add user docs for 'ta undo'
2021-12-21 01:10:08 +00:00
Dustin J. Mitchell
caa62ba9a0
add a 'ta undo' subcommand
2021-12-21 01:05:52 +00:00
Dustin J. Mitchell
9d93928996
support undo operations
2021-12-21 00:43:26 +00:00
Dustin J. Mitchell
9e20935f04
Merge pull request #319 from djmitche/issue317
...
Fix application of modifications during 'ta add'
2021-12-20 19:28:32 -05:00
Dustin J. Mitchell
2b63a227d2
Merge pull request #321 from djmitche/clippy-1-57-fixes
...
fix a few lints in clippy 1.57
2021-12-20 18:29:14 -05:00
Dustin J. Mitchell
4fa1f9c6bc
fix a few lints in clippy 1.57
2021-12-20 16:35:55 +00:00
Dustin J. Mitchell
2456012ed6
Fix application of modifications during 'ta add'
2021-12-20 16:16:25 +00:00
Dustin J. Mitchell
1647ba9144
insert UndoPoint appropriately into the replica operations
2021-12-20 00:33:32 +00:00
Dustin J. Mitchell
103bbcdf8f
Store data necessary to undo ReplicaOps
2021-12-19 23:58:57 +00:00
Dustin J. Mitchell
1789344cd0
refactor sync to use SyncOps
2021-12-19 23:44:45 +00:00
Dustin J. Mitchell
cefdd83d94
Use the latest taskmap when modifying a task
...
The previous logic duplicated the action of applying an operation to the
TaskDb with a "manual" application to the Task's local TaskMap. This
now uses the updated TaskMap fetched from the DB, which will help to
incorporate any other concurrent DB updates.
2021-12-19 23:29:16 +00:00
Dustin J. Mitchell
fee25fa742
Apply SyncOps, but keep a list of ReplicaOps
...
This changes a lot of function signatures, but basically:
* TaskDB::apply now takes a SyncOp, not a ReplicaOp
* Replica::update_task returns a TaskMap
2021-12-19 23:29:15 +00:00
Dustin J. Mitchell
0b29efab31
rename Operation to ReplicaOp for clarity
2021-12-19 22:55:24 +00:00
Dustin J. Mitchell
6f7794c7de
introduce a new taskchampion::server::SyncOp type
2021-12-19 22:55:24 +00:00
Dustin J. Mitchell
ff9ad8185b
undo docs
2021-12-19 22:55:24 +00:00
Dustin J. Mitchell
ef12e1a2f8
Define UDAs
2021-12-18 23:39:56 +00:00
Dustin J. Mitchell
4fa1c0bcfb
remove temporary function
2021-12-16 23:03:44 -05:00
Dustin J. Mitchell
e3dd91d45e
use the existing (but misnamed) orphans method
2021-12-16 23:03:44 -05:00
Dustin J. Mitchell
e768e2c100
compare Tasks directly, not their properties
2021-12-16 23:03:44 -05:00
Dustin J. Mitchell
ac24ec1387
fixup and fix spelling for denotate
2021-12-16 23:03:44 -05:00