Commit graph

127 commits

Author SHA1 Message Date
Paul Beckingham
88516acdaa Copyright update 2018-05-13 20:50:26 -04:00
Paul Beckingham
570cd3d810 Context: Eliminated load timer 2018-05-13 20:21:36 -04:00
Paul Beckingham
197f130593 Context: Eliminated render timer 2018-05-13 20:21:22 -04:00
Paul Beckingham
e3d006f867 Context: Eliminated hooks timer 2018-05-13 20:21:07 -04:00
Paul Beckingham
ae128f587d Context: Eliminated sort timer 2018-05-13 20:20:49 -04:00
Paul Beckingham
ff36a87551 Context: Eliminated commit timer 2018-05-13 20:20:35 -04:00
Paul Beckingham
14f1002680 Context: Eliminated filter timer 2018-05-13 20:20:22 -04:00
Paul Beckingham
89b8c9f198 Context: Eliminated gc timer 2018-05-13 20:20:06 -04:00
Paul Beckingham
c7cb2f26ff Context: Uses inline member initialization 2018-05-13 20:19:49 -04:00
Paul Beckingham
0849501ef5 Context: Migrated to libshared Timer 2018-05-13 20:19:35 -04:00
Paul Beckingham
a50dc97332 Context: Added ::debugTiming to wrap Timer formatting 2018-05-13 20:18:45 -04:00
Paul Beckingham
820cc4b2e5 DOM: Demoted from class to functions
- The DOM object contains no members, and only two (effectively) const methods.
  Demoting DOM to function calls reduces coupling with Context.
2016-02-03 21:54:37 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
735608d5b9 Context: Removed unused ::clearMessages method 2015-10-28 13:23:38 -04:00
Tomas Babej
b9f217a716 Context: Add timer that measures the total command duration explicitly 2015-09-12 17:36:57 -04:00
Paul Beckingham
110aa489e4 Context: Dead code removal 2015-07-17 15:24:31 -04:00
Paul Beckingham
737cb23546 CLI2: Eliminated CLI
- This is a large commit, as all the changes are centered around the elimination
  of CLI.
- CLI is no longer compiled.
- Context no longer maintains CLI + CLI2.
- Filter now walks the parse tree and sends to Eval a
  std::vector <std::pair <std::string, Lexer::Type>> containing only args tagged
  with FILTER.
- Filter more efficiently sets/unsets Eval::debug, by doing it less often.
- The filterExpr.length() check is no longer meaningful, and instead the size of
  the std::vector above is used.
- Filter::pendingOnly performs better analysis.
- Filter::safety makes use of the std::vector size also.
- Task::modify makes use of 'canonical' rather than 'name', which is a policy
  change, not a fix.
2015-06-24 13:23:56 -04:00
Paul Beckingham
49e7196dec Context: Removed unused ::clear method 2015-06-17 14:24:14 -07:00
Paul Beckingham
708ddd3804 CLI2: Refactoring CLI to rely completely on the Lexer 2015-06-13 13:35:34 -04:00
Wilhelm Schuermann
ae692e07a6 Verbosity: Fix "project" info not showing
- Make "project" verbosity imply "footnote", since verbose project
  info is shown using footnotes.  Fixes failing test in verbose.t.
- Convert "verbosity" variable to std::set for increased readability.
2015-06-07 15:01:26 +02:00
Paul Beckingham
3e043291f0 Cleanup: Combined File, Path and Directory into FS
- The three objects are related and always travel together, so they are now
  combined.
2015-05-25 10:11:41 -04:00
Wilhelm Schuermann
9e6c6ecb93 TW-1583: Invalid ID displayed after done/delete
- Fix completed/deleted tasks getting an ID when GC is going to be run,
  previously resulting in invalid IDs being displayed in reports that
  show non-pending tasks.

A side effect of this fix is that it is sometimes not possible to
filter by ID when running a report right after calling done/delete.
This problem existed before; this change makes it happen on the first
report instead of the second, so it is more consistently broken.
Commands that modify tasks are not affected, making this an annoying
yet harmless defect.
2015-03-28 10:36:58 +01:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
3b1f244f42 CLI/Context
- Reordering init sequence.
- Removed ::assumeLocations.
2014-11-09 10:38:40 -05:00
Paul Beckingham
7845786398 Context
- Removed unused ::program member.
2014-11-02 21:52:41 -05:00
Paul Beckingham
9ea61e25e8 Context
- Removed Parser member, which is now local to ::initialize.
2014-11-01 00:04:02 -04:00
Paul Beckingham
3700d2df9f Context
- Relocated some (more needed) entity declarations into ::setupEntities.
2014-10-31 08:53:25 -04:00
Paul Beckingham
df54b8ee43 Context
- Integrated new CLI object.
- Provided aliases and entities to CLI.
2014-10-13 23:18:14 -04:00
Paul Beckingham
a71d4f1596 Context
- Setting rc.debug implicitly sets debug.tls, debug.parser and debug.hooks.
2014-10-04 19:12:23 -04:00
Paul Beckingham
150f72eed4 Shadow Files
- Removed the shadow file feature, which has caused much suffering since version
  1.4.3.
2014-09-08 01:09:24 -04:00
Paul Beckingham
bd7e66a939 Context
- Improved sort column parsing to include an optional trailing solidus, in
  addition to the +/- sort direction.
2014-07-10 22:14:35 -04:00
Paul Beckingham
0cd56932a5 Context
- Added ::getLimits, copied from CmdCustom, for more general use.
2014-07-04 11:03:23 -04:00
Paul Beckingham
29604d0626 Context
- Stubbed a ::loadAliases method to stuff the Parser with alias defs.
2014-07-03 19:06:05 -04:00
Paul Beckingham
5b9413b02c Alias
- Removal of alias load/resolve code, which (1) needs a rewrite, and (2) belongs
  in the Parser.
2014-07-03 19:04:48 -04:00
Paul Beckingham
1cd09bc87b Alias
- Implemented simple word substitution aliases. This is not the ultimate form
  which will involve the ability to insert arbitrary constructs.  Later.
2014-06-03 00:11:42 -04:00
Paul Beckingham
afe4b6883f Context
- Removed all A3 references.
2014-05-25 20:02:26 -04:00
Paul Beckingham
79abddd03d Parser
- Renamed A3t to Parser.
2014-05-25 09:44:22 -04:00
Paul Beckingham
7bf2b4039e Context
- Added a hook timer.
2014-05-13 16:49:10 -04:00
Paul Beckingham
a353cbaf91 Alias
- Integrated new Alias object into new command line processing.
2014-04-19 08:22:27 -04:00
Paul Beckingham
e5ceb15365 Code Cleanup
- Removed odd comment and unused member.
- Removed commented-out code.
2014-04-14 00:58:32 -04:00
Paul Beckingham
a49d1bfbc0 Code Cleanup
- Removed unused Context::extension_dir.
2014-04-13 15:22:23 -04:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
98f740e9d1 Merge branch '2.3.0' into 2.4.0
Conflicts:
	AUTHORS
	CMakeLists.txt
	NEWS
	src/A3.cpp
	src/CMakeLists.txt
	src/Config.cpp
	src/Duration.cpp
	src/Duration.h
	src/Nibbler.cpp
	src/Nibbler.h
	src/RX.cpp
	src/RX.h
	src/columns/ColDate.cpp
	src/columns/ColScheduled.cpp
	src/commands/Command.cpp
	src/legacy.cpp
	src/utf8.cpp
	src/utf8.h
	test/CMakeLists.txt
	test/bug.mergedeps.t.postponed
	test/duration.t.cpp
	test/merge.duplicates.t
	test/merge.simple_duplication.t
	test/merge.t
	test/nibbler.t.cpp
	test/roundtrip.t
	test/rx.t.cpp
	test/utf8.t.cpp
2014-01-07 19:10:03 -05:00
Paul Beckingham
8ed92ca498 Copyright
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
314d0e9d01 Parser Integration
- New parser integrated and functioning, but only shadows the A3 parser.  In
  debug mode, there is new output, but that's all that happenѕ.
2013-09-01 14:14:15 -04:00
Paul Beckingham
c16a735040 Decoupling
- Eliminated some calls to context.config from Task‥cpp, reducing the coupling.
  If context can be eliminated from Task.cpp, via statically initialized
  variables, then Taskwarrior and the task server can share Task.{ḩ,cpp} which
  would be an enormous saving in effort.

(cherry picked from commit 215b03b1a7f47299a0d3e64331c7e3c962b4caf0)
2013-06-02 13:55:45 -04:00
Paul Beckingham
773b55d374 Code Cleanup
- Removed L10N define.  It served its purpose.
2013-04-07 23:50:51 -04:00
Paul Beckingham
8af0a7f3ba Merge branch 'master' into 2.3.0
Conflicts:
	AUTHORS
	CMakeLists.txt
	INSTALL
	NEWS
	cmake.h.in
	doc/man/task-faq.5.in
	package-config/osx/README
	scripts/utils/verify_l10n
	src/API.h
	src/Config.cpp
	src/Context.cpp
	src/DOM.cpp
	src/Hooks.cpp
	src/TransportShell.h
	src/commands/CmdDiagnostics.cpp
	src/commands/CmdShell.cpp
	src/commands/CmdVersion.cpp
	src/en-US.h
	src/shell/Readline.h
	src/wcwidth6.cpp
	test/CMakeLists.txt
	test/color.uda.t
	test/duration.t.cpp
	test/hook.on-launch.t
	test/template.t
	test/uuid.t
2013-04-07 17:56:59 -04:00
Paul Beckingham
bc94816184 Performance
- Removed Context::timer_sync, as it makes no sense now that sync is not an
  automatic operation like gc.
2013-04-02 23:45:34 -04:00
Paul Beckingham
1dccd29643 Copyright 2013
- Updated copyright notices.
2013-03-04 17:47:12 -05:00