Commit graph

62 commits

Author SHA1 Message Date
Tomas Babej
9bc726ba61 commands: Modify CmdAdd and CmdLog to use context
This only sets the command properties.
2021-04-03 15:01:39 -04:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
Tomas Babej
a09f9d48ab Update copyright to 2020 2020-11-21 12:27:05 -05:00
Tomas Babej
6bfb275dcc
CmdAdd: Make sure a UUID is printed if ID does not exist
This fixes a regression was introduced in
4e80d5d5fd.

Currently, if a user (with default configuration) adds a completed or
deleted task, they do not get a confirmation message ("Created task
..."). This is due to the fact that:
a) new-uuid is not set by default
b) new-id is set by default, but only prints message if the added task
   is in pending or waiting state

Make sure to print a message containing UUID reference if the newly
added task is in completed or deleted state.
2020-09-18 21:10:59 -04:00
Tomas Babej
8066e4e6e2 meta: Update copyright year 2019-01-01 08:46:21 -05:00
Simon Ruderich
e817dfc800 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17 Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
f8ae0577b4 l10n: Eliminated STRING_CMD_ADD_* 2018-01-21 12:01:54 -05:00
Paul Beckingham
5f407ad121 Code cleanup: Removed unnecessary include 2018-01-21 12:01:20 -05:00
Paul Beckingham
0de169bb10 Copyright 2018 2017-12-31 19:22:07 -05:00
Paul Fenwick
cc9e2a5076 [TW-1938] Resolve conflicts between new-id and new-uuid
- new-uuid is *not* set by default
- new-uuid overrides new-id when set

The reasoning is that new-uuid is mostly used by code (eg: Python's
taskw module), whereas new-id is mostly used by humans.

By making new-uuid not set by default, calling code can set it to
receive UUIDs (preserving 2.5.x behaviour), but humans can continue to
use integer task IDs.
2017-12-04 11:36:45 -08:00
Paul Beckingham
a50e65a134 Copyright update 2017-01-01 12:30:04 -05:00
Paul Beckingham
355620c640 libhsared: migrating from local to libshared 2016-12-06 07:20:45 -05:00
Paul Beckingham
95f4989f77 Cleanup: Don't use string literals when character literals are needed 2016-10-14 22:27:34 -04:00
Tomas Babej
72f8fec136 CmdAdd: Display a specific feedback message for recurrence template tasks 2016-02-06 12:24:45 -05:00
Paul Beckingham
7f3db8f201 TW-1714: Starting recurring task starts all recurrences
- Thanks to Robin Green.
2016-01-11 23:20:33 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
5d9ca9864e Cmd*: Moved include to top of list, per flint++ recommendation 2015-11-01 19:53:19 -05:00
Paul Beckingham
77b17379d6 CmdAdd/Log: No longer obey context
Context is good for filtering, terrible for commands that do not take filters.
2015-09-06 14:05:58 -04:00
Paul Beckingham
889e36116c Feedback: Improved feedback for tasks that do not have ID
- Thanks to Tomas Babej.
2015-08-06 18:56:07 -04:00
Tomas Babej
85990351e3 CmdAdd: Display UUID instead of ID 0 for completed tasks 2015-08-06 18:55:06 -04:00
Paul Beckingham
bf80c7d514 Cmd*: Added command DNA, which will ѕoon drive functionality 2015-08-01 15:56:04 -04:00
Daniel Shahaf
53a702d79a zcmdcat: Categorize commands. 2015-07-26 13:55:23 -04:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
3bdaeb5f91 CmdAdd
- Removed TDB2::commit.
- Removed unnecessary return code.
2014-09-08 00:10:27 -04:00
Paul Beckingham
6faf6bb678 TDB2
- Now updates the task ID of any new task, therefore avoiding off-by-one
  errors that occur when code calls TDB2::next_id.
2014-08-16 14:20:00 -04:00
Paul Beckingham
0f38f1decd Verbosity
- Made 'new-id' and 'new-uuid' mutually exclusive.
2014-07-04 10:41:49 -04:00
Paul Beckingham
b60a4aff22 TW-294
- TW-294 Display UUID of task created by add (thanks to John West).
2014-07-04 09:24:55 -04:00
Paul Beckingham
f3bc606344 Cmd{Add,Append,Log,Prepend}
- The commands specify that description changes are required.
2014-05-27 00:35:52 -04:00
Paul Beckingham
f2eb34d66a CmdAdd
- Converted from A3 modifications to Task::modify.
2014-05-25 17:12:32 -04:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
8ed92ca498 Copyright
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
d03c4cda8a Build Error
- Many files were missing an explicit cmake.h include.  Some were not including
  it at all.  Now it's used almost everywhere.

(cherry picked from commit 82ae86979c497e6d1d0c6b2b5a55aa379ec82c98)
2013-06-02 13:57:36 -04:00
Paul Beckingham
773b55d374 Code Cleanup
- Removed L10N define.  It served its purpose.
2013-04-07 23:50:51 -04:00
Paul Beckingham
1dccd29643 Copyright 2013
- Updated copyright notices.
2013-03-04 17:47:12 -05:00
Paul Beckingham
80d6655709 Bug
- Fixed problem where 'project' was not supported as a verbosity token (thanks
  to Adam Gibbins).
2012-03-17 10:11:55 -04:00
Paul Beckingham
6580095002 Copyright
- Year change.
2012-01-02 23:32:10 -05:00
Paul Beckingham
afe7cbef91 White Space
- Removed blank lines.
2011-10-12 00:25:45 -04:00
Federico Hernandez
961a1a9366 License
- moving from GPL to MIT license
  src/commands
2011-10-08 01:13:30 +02:00
Paul Beckingham
562dfe7b81 Documentation
- Shrank the width of the 'help' command output somewhat.  It was a
  width hog.
2011-10-02 10:05:58 -04:00
Paul Beckingham
de481a7eba Help
- Made all the usage strings for the 'help' command consistent with the
  implementation and with visual alignment.
2011-10-01 00:42:27 -04:00
Paul Beckingham
03e53ceaf2 Miscellaneous
- Minor edits of little consequence.
2011-09-11 23:06:51 -04:00
Paul Beckingham
d37e46cc48 Enhancement
- Re-enabled the onProjectChange function, and upgraded it to TDB2.
  Now it does a lot less, which is another way of saying it is faster.
2011-09-09 00:13:08 -04:00
Paul Beckingham
56b9b23988 L10N Review
- Reviewed (and made notes) of all commands for the L10N punch list.
2011-09-05 11:13:19 -04:00
Paul Beckingham
63eb22fc7e TDB2 Merge
- Migrated TDB::merge to TDB2::merge.
- Removed obsoleted code from TDB.
- Modified unit tests for merge to use export instead of export.csv.
2011-09-01 23:48:35 -04:00
Paul Beckingham
b09351c517 Task Validation
- Fixed validation bug whereby recurring child tasks inherited the
  parent status ("recurring") instead of the expected "pending".
- Modified 'add' command to code duplicated in Task::validate.
- Cleaned up associated bug.period.t unit test.
2011-08-31 01:34:59 -04:00
Paul Beckingham
72bd579cf4 Bug
- The 'add' command was calling TDB2::add, but TDB::nextId.
2011-08-30 00:29:24 -04:00
Paul Beckingham
0c08b29e48 Code Cleanup
- Eliminated obsolete Arguments.h, Arguments.cpp.
2011-07-26 00:25:57 -04:00
Paul Beckingham
09d94a0712 Expressions
- Eliminated the . prefix for DOM references to the current task - it is
  unnatural to state ".due < today".
- Prioritized parsing dates ahead of integers, which were masking all
  dates.
2011-07-19 00:25:26 -04:00
Paul Beckingham
e08d840ba1 Expressions
- Broke out expression handling into two distinct flavors: filter
  and expression.  Filters need lots of preparation and mapping,
  which includes implicit 'AND' operators, expansion of syntactic
  sugar like /pattern/ etc and evaluate to a Boolean.  Expressions
  are simpler wiht less preparation, and evaluate to a Variant.
2011-07-17 12:04:38 -04:00