diff --git a/CHANGELOG.md b/CHANGELOG.md index e90a20ad..9c81bf37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +### 2.1.86 + +2024-03-26 10:57 + +#### FIXED + +- Unterminated date range, e.g. `--from today` will now assume current time as end date. Results of `doing show all --from today` will now match `doing today`. + ### 2.1.85 2024-03-26 10:17 diff --git a/Gemfile.lock b/Gemfile.lock index ec853c42..de7dd8b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - doing (2.1.85) + doing (2.1.86) chronic (~> 0.10, >= 0.10.2) deep_merge (~> 1.2, >= 1.2.1) gli (~> 2.20, >= 2.20.1) diff --git a/README.md b/README.md index 10fac701..6ce3f892 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ _If you're one of the rare people like me who find this useful, feel free to -The current version of `doing` is 2.1.84. +The current version of `doing` is 2.1.85. Find all of the documentation in the [doing wiki][wiki]. diff --git a/docs/doc/Array.html b/docs/doc/Array.html index 01732d44..d2474ce8 100644 --- a/docs/doc/Array.html +++ b/docs/doc/Array.html @@ -350,7 +350,7 @@

diff --git a/docs/doc/BooleanTermParser.html b/docs/doc/BooleanTermParser.html index a0d75ea9..0c011269 100644 --- a/docs/doc/BooleanTermParser.html +++ b/docs/doc/BooleanTermParser.html @@ -105,7 +105,7 @@

Defined Under Namespace

diff --git a/docs/doc/BooleanTermParser/Clause.html b/docs/doc/BooleanTermParser/Clause.html index 77f0b803..0dc8fc2e 100644 --- a/docs/doc/BooleanTermParser/Clause.html +++ b/docs/doc/BooleanTermParser/Clause.html @@ -283,7 +283,7 @@

diff --git a/docs/doc/BooleanTermParser/Operator.html b/docs/doc/BooleanTermParser/Operator.html index 74db39e0..1f330256 100644 --- a/docs/doc/BooleanTermParser/Operator.html +++ b/docs/doc/BooleanTermParser/Operator.html @@ -162,7 +162,7 @@

diff --git a/docs/doc/BooleanTermParser/Query.html b/docs/doc/BooleanTermParser/Query.html index ecfc2174..d216cc43 100644 --- a/docs/doc/BooleanTermParser/Query.html +++ b/docs/doc/BooleanTermParser/Query.html @@ -407,7 +407,7 @@

diff --git a/docs/doc/BooleanTermParser/QueryParser.html b/docs/doc/BooleanTermParser/QueryParser.html index b30b23b0..255d0048 100644 --- a/docs/doc/BooleanTermParser/QueryParser.html +++ b/docs/doc/BooleanTermParser/QueryParser.html @@ -125,7 +125,7 @@

Overview

diff --git a/docs/doc/BooleanTermParser/QueryTransformer.html b/docs/doc/BooleanTermParser/QueryTransformer.html index da6afd87..14dd8376 100644 --- a/docs/doc/BooleanTermParser/QueryTransformer.html +++ b/docs/doc/BooleanTermParser/QueryTransformer.html @@ -114,7 +114,7 @@ diff --git a/docs/doc/Doing.html b/docs/doc/Doing.html index 1c3b7ac9..ab5693f6 100644 --- a/docs/doc/Doing.html +++ b/docs/doc/Doing.html @@ -122,7 +122,7 @@

VERSION =
-
'2.1.85'
+
'2.1.86'
@@ -138,7 +138,7 @@

diff --git a/docs/doc/Doing/ArrayCleanup.html b/docs/doc/Doing/ArrayCleanup.html index 9f104f6a..c1ec4a3f 100644 --- a/docs/doc/Doing/ArrayCleanup.html +++ b/docs/doc/Doing/ArrayCleanup.html @@ -306,7 +306,7 @@

diff --git a/docs/doc/Doing/ArrayNestedHash.html b/docs/doc/Doing/ArrayNestedHash.html index 10f8fcc7..4124918e 100644 --- a/docs/doc/Doing/ArrayNestedHash.html +++ b/docs/doc/Doing/ArrayNestedHash.html @@ -188,7 +188,7 @@

diff --git a/docs/doc/Doing/ArrayTags.html b/docs/doc/Doing/ArrayTags.html index 677eb843..27401264 100644 --- a/docs/doc/Doing/ArrayTags.html +++ b/docs/doc/Doing/ArrayTags.html @@ -414,7 +414,7 @@

diff --git a/docs/doc/Doing/ByDayExport.html b/docs/doc/Doing/ByDayExport.html index 2655f0e1..c76be054 100644 --- a/docs/doc/Doing/ByDayExport.html +++ b/docs/doc/Doing/ByDayExport.html @@ -196,7 +196,7 @@

diff --git a/docs/doc/Doing/CSVExport.html b/docs/doc/Doing/CSVExport.html index 1c9ddf6f..c5d51627 100644 --- a/docs/doc/Doing/CSVExport.html +++ b/docs/doc/Doing/CSVExport.html @@ -256,7 +256,7 @@

diff --git a/docs/doc/Doing/CalendarImport.html b/docs/doc/Doing/CalendarImport.html index 02915114..ba6ea1be 100644 --- a/docs/doc/Doing/CalendarImport.html +++ b/docs/doc/Doing/CalendarImport.html @@ -222,7 +222,7 @@

diff --git a/docs/doc/Doing/Change.html b/docs/doc/Doing/Change.html index 21852e96..839e62f1 100644 --- a/docs/doc/Doing/Change.html +++ b/docs/doc/Doing/Change.html @@ -678,7 +678,7 @@

diff --git a/docs/doc/Doing/Changes.html b/docs/doc/Doing/Changes.html index c322fbb1..46c56423 100644 --- a/docs/doc/Doing/Changes.html +++ b/docs/doc/Doing/Changes.html @@ -458,7 +458,7 @@

diff --git a/docs/doc/Doing/ChronifyArray.html b/docs/doc/Doing/ChronifyArray.html index 9c08a78d..d4cf1499 100644 --- a/docs/doc/Doing/ChronifyArray.html +++ b/docs/doc/Doing/ChronifyArray.html @@ -337,7 +337,7 @@

diff --git a/docs/doc/Doing/ChronifyNumeric.html b/docs/doc/Doing/ChronifyNumeric.html index 9eebcee7..c78893e3 100644 --- a/docs/doc/Doing/ChronifyNumeric.html +++ b/docs/doc/Doing/ChronifyNumeric.html @@ -261,7 +261,7 @@

diff --git a/docs/doc/Doing/ChronifyString.html b/docs/doc/Doing/ChronifyString.html index c0ed9ac9..80d32fbd 100644 --- a/docs/doc/Doing/ChronifyString.html +++ b/docs/doc/Doing/ChronifyString.html @@ -672,7 +672,7 @@

diff --git a/docs/doc/Doing/Color.html b/docs/doc/Doing/Color.html index 5109aa22..cec9edab 100644 --- a/docs/doc/Doing/Color.html +++ b/docs/doc/Doing/Color.html @@ -687,7 +687,7 @@

diff --git a/docs/doc/Doing/Completion.html b/docs/doc/Doing/Completion.html index ba9da2d4..647249ed 100644 --- a/docs/doc/Doing/Completion.html +++ b/docs/doc/Doing/Completion.html @@ -540,7 +540,7 @@

diff --git a/docs/doc/Doing/Completion/BashCompletions.html b/docs/doc/Doing/Completion/BashCompletions.html index 62d8b7b0..b9690b17 100644 --- a/docs/doc/Doing/Completion/BashCompletions.html +++ b/docs/doc/Doing/Completion/BashCompletions.html @@ -435,7 +435,7 @@

diff --git a/docs/doc/Doing/Completion/FigCompletions.html b/docs/doc/Doing/Completion/FigCompletions.html index ee2cd76a..116d8bcd 100644 --- a/docs/doc/Doing/Completion/FigCompletions.html +++ b/docs/doc/Doing/Completion/FigCompletions.html @@ -435,7 +435,7 @@

- Generated on Tue Mar 26 10:18:24 2024 by + Generated on Tue Mar 26 11:00:42 2024 by yard 0.9.36 (ruby-3.2.0). diff --git a/docs/doc/Doing/Completion/FishCompletions.html b/docs/doc/Doing/Completion/FishCompletions.html index 3194cf50..0273c9bf 100644 --- a/docs/doc/Doing/Completion/FishCompletions.html +++ b/docs/doc/Doing/Completion/FishCompletions.html @@ -435,7 +435,7 @@

- Generated on Tue Mar 26 10:18:24 2024 by + Generated on Tue Mar 26 11:00:42 2024 by yard 0.9.36 (ruby-3.2.0). diff --git a/docs/doc/Doing/Completion/StringUtils.html b/docs/doc/Doing/Completion/StringUtils.html index b35319fc..16636d85 100644 --- a/docs/doc/Doing/Completion/StringUtils.html +++ b/docs/doc/Doing/Completion/StringUtils.html @@ -277,7 +277,7 @@

diff --git a/docs/doc/Doing/Completion/ZshCompletions.html b/docs/doc/Doing/Completion/ZshCompletions.html index bdd09f90..3296e024 100644 --- a/docs/doc/Doing/Completion/ZshCompletions.html +++ b/docs/doc/Doing/Completion/ZshCompletions.html @@ -435,7 +435,7 @@

- Generated on Tue Mar 26 10:18:24 2024 by + Generated on Tue Mar 26 11:00:42 2024 by yard 0.9.36 (ruby-3.2.0). diff --git a/docs/doc/Doing/Configuration.html b/docs/doc/Doing/Configuration.html index 4dd210d2..282b958a 100644 --- a/docs/doc/Doing/Configuration.html +++ b/docs/doc/Doing/Configuration.html @@ -1228,7 +1228,7 @@

diff --git a/docs/doc/Doing/DayOneRenderer.html b/docs/doc/Doing/DayOneRenderer.html index a9087ac1..3f3ae439 100644 --- a/docs/doc/Doing/DayOneRenderer.html +++ b/docs/doc/Doing/DayOneRenderer.html @@ -373,7 +373,7 @@

diff --git a/docs/doc/Doing/DayoneExport.html b/docs/doc/Doing/DayoneExport.html index 57416718..2009615c 100644 --- a/docs/doc/Doing/DayoneExport.html +++ b/docs/doc/Doing/DayoneExport.html @@ -280,7 +280,7 @@

diff --git a/docs/doc/Doing/DoingExport.html b/docs/doc/Doing/DoingExport.html index efc8129c..a474788c 100644 --- a/docs/doc/Doing/DoingExport.html +++ b/docs/doc/Doing/DoingExport.html @@ -196,7 +196,7 @@

diff --git a/docs/doc/Doing/DoingImport.html b/docs/doc/Doing/DoingImport.html index 4add29eb..b3db861f 100644 --- a/docs/doc/Doing/DoingImport.html +++ b/docs/doc/Doing/DoingImport.html @@ -381,7 +381,7 @@

diff --git a/docs/doc/Doing/Entry.html b/docs/doc/Doing/Entry.html index 93494496..59f420cc 100644 --- a/docs/doc/Doing/Entry.html +++ b/docs/doc/Doing/Entry.html @@ -476,7 +476,7 @@

diff --git a/docs/doc/Doing/Errors.html b/docs/doc/Doing/Errors.html index 676f8c13..e568de46 100644 --- a/docs/doc/Doing/Errors.html +++ b/docs/doc/Doing/Errors.html @@ -181,7 +181,7 @@

diff --git a/docs/doc/Doing/Errors/DoingNoTraceError.html b/docs/doc/Doing/Errors/DoingNoTraceError.html index c52977b2..fc756be4 100644 --- a/docs/doc/Doing/Errors/DoingNoTraceError.html +++ b/docs/doc/Doing/Errors/DoingNoTraceError.html @@ -180,7 +180,7 @@

diff --git a/docs/doc/Doing/Errors/DoingRuntimeError.html b/docs/doc/Doing/Errors/DoingRuntimeError.html index 0a5b2e08..9a4d0282 100644 --- a/docs/doc/Doing/Errors/DoingRuntimeError.html +++ b/docs/doc/Doing/Errors/DoingRuntimeError.html @@ -180,7 +180,7 @@

diff --git a/docs/doc/Doing/Errors/DoingStandardError.html b/docs/doc/Doing/Errors/DoingStandardError.html index 910d6183..0fb212e7 100644 --- a/docs/doc/Doing/Errors/DoingStandardError.html +++ b/docs/doc/Doing/Errors/DoingStandardError.html @@ -176,7 +176,7 @@

diff --git a/docs/doc/Doing/Errors/EmptyInput.html b/docs/doc/Doing/Errors/EmptyInput.html index 7c437b48..4acb6fd7 100644 --- a/docs/doc/Doing/Errors/EmptyInput.html +++ b/docs/doc/Doing/Errors/EmptyInput.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/Errors/HistoryLimitError.html b/docs/doc/Doing/Errors/HistoryLimitError.html index ff38138a..d1ad106a 100644 --- a/docs/doc/Doing/Errors/HistoryLimitError.html +++ b/docs/doc/Doing/Errors/HistoryLimitError.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/Errors/InvalidPlugin.html b/docs/doc/Doing/Errors/InvalidPlugin.html index a7b51e0d..1cdbd3b7 100644 --- a/docs/doc/Doing/Errors/InvalidPlugin.html +++ b/docs/doc/Doing/Errors/InvalidPlugin.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/Errors/MissingBackupFile.html b/docs/doc/Doing/Errors/MissingBackupFile.html index 5811f8fd..59f51c6a 100644 --- a/docs/doc/Doing/Errors/MissingBackupFile.html +++ b/docs/doc/Doing/Errors/MissingBackupFile.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/Errors/NoResults.html b/docs/doc/Doing/Errors/NoResults.html index 442c6032..bed3a94a 100644 --- a/docs/doc/Doing/Errors/NoResults.html +++ b/docs/doc/Doing/Errors/NoResults.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/Errors/PluginException.html b/docs/doc/Doing/Errors/PluginException.html index 88246d3c..24761333 100644 --- a/docs/doc/Doing/Errors/PluginException.html +++ b/docs/doc/Doing/Errors/PluginException.html @@ -238,7 +238,7 @@

diff --git a/docs/doc/Doing/Errors/UserCancelled.html b/docs/doc/Doing/Errors/UserCancelled.html index ddfd4b66..22041000 100644 --- a/docs/doc/Doing/Errors/UserCancelled.html +++ b/docs/doc/Doing/Errors/UserCancelled.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/Errors/WrongCommand.html b/docs/doc/Doing/Errors/WrongCommand.html index fc5aee3f..a4f64ac2 100644 --- a/docs/doc/Doing/Errors/WrongCommand.html +++ b/docs/doc/Doing/Errors/WrongCommand.html @@ -184,7 +184,7 @@

diff --git a/docs/doc/Doing/HTMLExport.html b/docs/doc/Doing/HTMLExport.html index a5b371a1..9cc8b143 100644 --- a/docs/doc/Doing/HTMLExport.html +++ b/docs/doc/Doing/HTMLExport.html @@ -246,7 +246,7 @@

diff --git a/docs/doc/Doing/Hooks.html b/docs/doc/Doing/Hooks.html index c0cceb29..7e842219 100644 --- a/docs/doc/Doing/Hooks.html +++ b/docs/doc/Doing/Hooks.html @@ -354,7 +354,7 @@

diff --git a/docs/doc/Doing/Item.html b/docs/doc/Doing/Item.html index 8eb6c566..b2aae81c 100644 --- a/docs/doc/Doing/Item.html +++ b/docs/doc/Doing/Item.html @@ -991,7 +991,7 @@

diff --git a/docs/doc/Doing/ItemDates.html b/docs/doc/Doing/ItemDates.html index 173d293c..0421c76c 100644 --- a/docs/doc/Doing/ItemDates.html +++ b/docs/doc/Doing/ItemDates.html @@ -554,7 +554,7 @@

diff --git a/docs/doc/Doing/ItemQuery.html b/docs/doc/Doing/ItemQuery.html index 17ec70c5..81c69c3b 100644 --- a/docs/doc/Doing/ItemQuery.html +++ b/docs/doc/Doing/ItemQuery.html @@ -685,7 +685,7 @@

diff --git a/docs/doc/Doing/ItemState.html b/docs/doc/Doing/ItemState.html index 7f9ae1c5..ee30dd3d 100644 --- a/docs/doc/Doing/ItemState.html +++ b/docs/doc/Doing/ItemState.html @@ -377,7 +377,7 @@

diff --git a/docs/doc/Doing/ItemTags.html b/docs/doc/Doing/ItemTags.html index 1488deee..b816f418 100644 --- a/docs/doc/Doing/ItemTags.html +++ b/docs/doc/Doing/ItemTags.html @@ -488,7 +488,7 @@

diff --git a/docs/doc/Doing/Items.html b/docs/doc/Doing/Items.html index 100b9dc4..afb62557 100644 --- a/docs/doc/Doing/Items.html +++ b/docs/doc/Doing/Items.html @@ -1792,7 +1792,7 @@

diff --git a/docs/doc/Doing/JSONExport.html b/docs/doc/Doing/JSONExport.html index 84fd81be..90575b01 100644 --- a/docs/doc/Doing/JSONExport.html +++ b/docs/doc/Doing/JSONExport.html @@ -212,7 +212,7 @@

diff --git a/docs/doc/Doing/JSONImport.html b/docs/doc/Doing/JSONImport.html index 555df339..e5dfdaf8 100644 --- a/docs/doc/Doing/JSONImport.html +++ b/docs/doc/Doing/JSONImport.html @@ -285,7 +285,7 @@

diff --git a/docs/doc/Doing/Logger.html b/docs/doc/Doing/Logger.html index b81d674a..91555d3c 100644 --- a/docs/doc/Doing/Logger.html +++ b/docs/doc/Doing/Logger.html @@ -1797,7 +1797,7 @@

diff --git a/docs/doc/Doing/MarkdownExport.html b/docs/doc/Doing/MarkdownExport.html index 4f3dbb0b..5514058f 100644 --- a/docs/doc/Doing/MarkdownExport.html +++ b/docs/doc/Doing/MarkdownExport.html @@ -256,7 +256,7 @@

diff --git a/docs/doc/Doing/Note.html b/docs/doc/Doing/Note.html index 30bcd4de..46c4c8dc 100644 --- a/docs/doc/Doing/Note.html +++ b/docs/doc/Doing/Note.html @@ -747,7 +747,7 @@

diff --git a/docs/doc/Doing/Pager.html b/docs/doc/Doing/Pager.html index 9380e328..bd3e990f 100644 --- a/docs/doc/Doing/Pager.html +++ b/docs/doc/Doing/Pager.html @@ -296,7 +296,7 @@

diff --git a/docs/doc/Doing/Plugins.html b/docs/doc/Doing/Plugins.html index 16e1f4f8..2e39aecc 100644 --- a/docs/doc/Doing/Plugins.html +++ b/docs/doc/Doing/Plugins.html @@ -1340,7 +1340,7 @@

diff --git a/docs/doc/Doing/Prompt.html b/docs/doc/Doing/Prompt.html index 81c43fc7..e1da0840 100644 --- a/docs/doc/Doing/Prompt.html +++ b/docs/doc/Doing/Prompt.html @@ -326,7 +326,7 @@

diff --git a/docs/doc/Doing/PromptChoose.html b/docs/doc/Doing/PromptChoose.html index aa8e5882..6714811c 100644 --- a/docs/doc/Doing/PromptChoose.html +++ b/docs/doc/Doing/PromptChoose.html @@ -474,7 +474,7 @@

diff --git a/docs/doc/Doing/PromptFZF.html b/docs/doc/Doing/PromptFZF.html index 04373aeb..47529245 100644 --- a/docs/doc/Doing/PromptFZF.html +++ b/docs/doc/Doing/PromptFZF.html @@ -381,7 +381,7 @@

diff --git a/docs/doc/Doing/PromptInput.html b/docs/doc/Doing/PromptInput.html index 0d98b26d..f2c3c47a 100644 --- a/docs/doc/Doing/PromptInput.html +++ b/docs/doc/Doing/PromptInput.html @@ -562,7 +562,7 @@

diff --git a/docs/doc/Doing/PromptSTD.html b/docs/doc/Doing/PromptSTD.html index df7ff460..bab81600 100644 --- a/docs/doc/Doing/PromptSTD.html +++ b/docs/doc/Doing/PromptSTD.html @@ -283,7 +283,7 @@

diff --git a/docs/doc/Doing/PromptYN.html b/docs/doc/Doing/PromptYN.html index d959df19..3ff28f21 100644 --- a/docs/doc/Doing/PromptYN.html +++ b/docs/doc/Doing/PromptYN.html @@ -227,7 +227,7 @@

diff --git a/docs/doc/Doing/Section.html b/docs/doc/Doing/Section.html index 32f2307b..27d89e47 100644 --- a/docs/doc/Doing/Section.html +++ b/docs/doc/Doing/Section.html @@ -400,7 +400,7 @@

diff --git a/docs/doc/Doing/StringHighlight.html b/docs/doc/Doing/StringHighlight.html index 75a61826..76e85bae 100644 --- a/docs/doc/Doing/StringHighlight.html +++ b/docs/doc/Doing/StringHighlight.html @@ -523,7 +523,7 @@

diff --git a/docs/doc/Doing/StringNormalize.html b/docs/doc/Doing/StringNormalize.html index 507d1b75..9a57c0e1 100644 --- a/docs/doc/Doing/StringNormalize.html +++ b/docs/doc/Doing/StringNormalize.html @@ -1036,7 +1036,7 @@

diff --git a/docs/doc/Doing/StringQuery.html b/docs/doc/Doing/StringQuery.html index 42351ba6..2d24d0ee 100644 --- a/docs/doc/Doing/StringQuery.html +++ b/docs/doc/Doing/StringQuery.html @@ -771,7 +771,7 @@

diff --git a/docs/doc/Doing/StringTags.html b/docs/doc/Doing/StringTags.html index d573c4e0..8e030d4b 100644 --- a/docs/doc/Doing/StringTags.html +++ b/docs/doc/Doing/StringTags.html @@ -874,7 +874,7 @@

diff --git a/docs/doc/Doing/StringTransform.html b/docs/doc/Doing/StringTransform.html index 43b22414..8707c976 100644 --- a/docs/doc/Doing/StringTransform.html +++ b/docs/doc/Doing/StringTransform.html @@ -589,7 +589,7 @@

diff --git a/docs/doc/Doing/StringTruncate.html b/docs/doc/Doing/StringTruncate.html index ce5a8fa4..2d98730b 100644 --- a/docs/doc/Doing/StringTruncate.html +++ b/docs/doc/Doing/StringTruncate.html @@ -438,7 +438,7 @@

diff --git a/docs/doc/Doing/StringURL.html b/docs/doc/Doing/StringURL.html index 7a56a961..5cb528a5 100644 --- a/docs/doc/Doing/StringURL.html +++ b/docs/doc/Doing/StringURL.html @@ -399,7 +399,7 @@

diff --git a/docs/doc/Doing/SymbolNormalize.html b/docs/doc/Doing/SymbolNormalize.html index 6faf4481..878b285d 100644 --- a/docs/doc/Doing/SymbolNormalize.html +++ b/docs/doc/Doing/SymbolNormalize.html @@ -331,7 +331,7 @@

diff --git a/docs/doc/Doing/TaskPaperExport.html b/docs/doc/Doing/TaskPaperExport.html index b2c7ef75..1e1ba0e5 100644 --- a/docs/doc/Doing/TaskPaperExport.html +++ b/docs/doc/Doing/TaskPaperExport.html @@ -212,7 +212,7 @@

diff --git a/docs/doc/Doing/TemplateExport.html b/docs/doc/Doing/TemplateExport.html index 6822bd0f..5815360b 100644 --- a/docs/doc/Doing/TemplateExport.html +++ b/docs/doc/Doing/TemplateExport.html @@ -239,7 +239,7 @@

diff --git a/docs/doc/Doing/TemplateString.html b/docs/doc/Doing/TemplateString.html index 11f132f8..35e966fa 100644 --- a/docs/doc/Doing/TemplateString.html +++ b/docs/doc/Doing/TemplateString.html @@ -802,7 +802,7 @@

diff --git a/docs/doc/Doing/TimingImport.html b/docs/doc/Doing/TimingImport.html index 098b86f6..638126ca 100644 --- a/docs/doc/Doing/TimingImport.html +++ b/docs/doc/Doing/TimingImport.html @@ -275,7 +275,7 @@

diff --git a/docs/doc/Doing/Types.html b/docs/doc/Doing/Types.html index 7a99b76b..2bbdabe1 100644 --- a/docs/doc/Doing/Types.html +++ b/docs/doc/Doing/Types.html @@ -241,7 +241,7 @@

diff --git a/docs/doc/Doing/Util.html b/docs/doc/Doing/Util.html index 92d50764..3c3e4075 100644 --- a/docs/doc/Doing/Util.html +++ b/docs/doc/Doing/Util.html @@ -982,7 +982,7 @@

diff --git a/docs/doc/Doing/Util/Backup.html b/docs/doc/Doing/Util/Backup.html index b85dcd67..3627c2cf 100644 --- a/docs/doc/Doing/Util/Backup.html +++ b/docs/doc/Doing/Util/Backup.html @@ -684,7 +684,7 @@

diff --git a/docs/doc/Doing/Version.html b/docs/doc/Doing/Version.html index 67821b6c..aab21997 100644 --- a/docs/doc/Doing/Version.html +++ b/docs/doc/Doing/Version.html @@ -513,7 +513,7 @@

diff --git a/docs/doc/Doing/WWID.html b/docs/doc/Doing/WWID.html index 3f0f9011..4230cc38 100644 --- a/docs/doc/Doing/WWID.html +++ b/docs/doc/Doing/WWID.html @@ -5155,7 +5155,7 @@

diff --git a/docs/doc/FalseClass.html b/docs/doc/FalseClass.html index 739acdb6..449f92a7 100644 --- a/docs/doc/FalseClass.html +++ b/docs/doc/FalseClass.html @@ -235,7 +235,7 @@

diff --git a/docs/doc/GLI.html b/docs/doc/GLI.html index f12822de..264550af 100644 --- a/docs/doc/GLI.html +++ b/docs/doc/GLI.html @@ -107,7 +107,7 @@

Defined Under Namespace

diff --git a/docs/doc/GLI/Commands.html b/docs/doc/GLI/Commands.html index 13abc328..0591a825 100644 --- a/docs/doc/GLI/Commands.html +++ b/docs/doc/GLI/Commands.html @@ -107,7 +107,7 @@

Defined Under Namespace

diff --git a/docs/doc/GLI/Commands/Help.html b/docs/doc/GLI/Commands/Help.html index 1f2df121..67ee27de 100644 --- a/docs/doc/GLI/Commands/Help.html +++ b/docs/doc/GLI/Commands/Help.html @@ -175,7 +175,7 @@

diff --git a/docs/doc/GLI/Commands/MarkdownDocumentListener.html b/docs/doc/GLI/Commands/MarkdownDocumentListener.html index 93ea45eb..c069e656 100644 --- a/docs/doc/GLI/Commands/MarkdownDocumentListener.html +++ b/docs/doc/GLI/Commands/MarkdownDocumentListener.html @@ -753,7 +753,7 @@

diff --git a/docs/doc/Hash.html b/docs/doc/Hash.html index 2bc3ea3e..91f6dccc 100644 --- a/docs/doc/Hash.html +++ b/docs/doc/Hash.html @@ -1000,7 +1000,7 @@

diff --git a/docs/doc/Numeric.html b/docs/doc/Numeric.html index 0ab3ce05..1d612d92 100644 --- a/docs/doc/Numeric.html +++ b/docs/doc/Numeric.html @@ -214,7 +214,7 @@

diff --git a/docs/doc/Object.html b/docs/doc/Object.html index fddca6de..871ce4d0 100644 --- a/docs/doc/Object.html +++ b/docs/doc/Object.html @@ -193,7 +193,7 @@

diff --git a/docs/doc/PhraseParser.html b/docs/doc/PhraseParser.html index 86db40ce..b5b57ade 100644 --- a/docs/doc/PhraseParser.html +++ b/docs/doc/PhraseParser.html @@ -105,7 +105,7 @@

Defined Under Namespace

diff --git a/docs/doc/PhraseParser/Operator.html b/docs/doc/PhraseParser/Operator.html index 951d890a..f5c0b6db 100644 --- a/docs/doc/PhraseParser/Operator.html +++ b/docs/doc/PhraseParser/Operator.html @@ -162,7 +162,7 @@

diff --git a/docs/doc/PhraseParser/PhraseClause.html b/docs/doc/PhraseParser/PhraseClause.html index fda5ce9d..51f275f5 100644 --- a/docs/doc/PhraseParser/PhraseClause.html +++ b/docs/doc/PhraseParser/PhraseClause.html @@ -293,7 +293,7 @@

diff --git a/docs/doc/PhraseParser/Query.html b/docs/doc/PhraseParser/Query.html index 8cad986d..60383514 100644 --- a/docs/doc/PhraseParser/Query.html +++ b/docs/doc/PhraseParser/Query.html @@ -485,7 +485,7 @@

diff --git a/docs/doc/PhraseParser/QueryParser.html b/docs/doc/PhraseParser/QueryParser.html index fdbb8f2c..b8a66ec8 100644 --- a/docs/doc/PhraseParser/QueryParser.html +++ b/docs/doc/PhraseParser/QueryParser.html @@ -126,7 +126,7 @@

Overview

diff --git a/docs/doc/PhraseParser/QueryTransformer.html b/docs/doc/PhraseParser/QueryTransformer.html index d23eec1c..c6c436d4 100644 --- a/docs/doc/PhraseParser/QueryTransformer.html +++ b/docs/doc/PhraseParser/QueryTransformer.html @@ -114,7 +114,7 @@ diff --git a/docs/doc/PhraseParser/TermClause.html b/docs/doc/PhraseParser/TermClause.html index 56c8e01a..e7e304d3 100644 --- a/docs/doc/PhraseParser/TermClause.html +++ b/docs/doc/PhraseParser/TermClause.html @@ -283,7 +283,7 @@

diff --git a/docs/doc/Status.html b/docs/doc/Status.html index 9c26452a..3b6b6ab9 100644 --- a/docs/doc/Status.html +++ b/docs/doc/Status.html @@ -316,7 +316,7 @@

diff --git a/docs/doc/String.html b/docs/doc/String.html index 3a0f6277..ea013de5 100644 --- a/docs/doc/String.html +++ b/docs/doc/String.html @@ -679,7 +679,7 @@

diff --git a/docs/doc/Symbol.html b/docs/doc/Symbol.html index 48347891..3aa78a9b 100644 --- a/docs/doc/Symbol.html +++ b/docs/doc/Symbol.html @@ -127,7 +127,7 @@

Methods included from - Generated on Tue Mar 26 10:18:23 2024 by + Generated on Tue Mar 26 11:00:42 2024 by yard 0.9.36 (ruby-3.2.0). diff --git a/docs/doc/Time.html b/docs/doc/Time.html index 84fb2ff7..cd1fe20f 100644 --- a/docs/doc/Time.html +++ b/docs/doc/Time.html @@ -411,7 +411,7 @@

diff --git a/docs/doc/TrueClass.html b/docs/doc/TrueClass.html index 285802ff..c46e4914 100644 --- a/docs/doc/TrueClass.html +++ b/docs/doc/TrueClass.html @@ -235,7 +235,7 @@

diff --git a/docs/doc/_index.html b/docs/doc/_index.html index 51b4873c..2689f430 100644 --- a/docs/doc/_index.html +++ b/docs/doc/_index.html @@ -961,7 +961,7 @@

Namespace Listing A-Z

diff --git a/docs/doc/file.README.html b/docs/doc/file.README.html index 0dfc58f5..c58f78ac 100644 --- a/docs/doc/file.README.html +++ b/docs/doc/file.README.html @@ -71,7 +71,7 @@ -

The current version of doing is <!--VER-->2.1.84<!--END VER-->.

+

The current version of doing is <!--VER-->2.1.85<!--END VER-->.

Find all of the documentation in the doing wiki.

@@ -153,7 +153,7 @@

Changelog

diff --git a/docs/doc/index.html b/docs/doc/index.html index 435bc10d..168627d4 100644 --- a/docs/doc/index.html +++ b/docs/doc/index.html @@ -71,7 +71,7 @@ -

The current version of doing is <!--VER-->2.1.84<!--END VER-->.

+

The current version of doing is <!--VER-->2.1.85<!--END VER-->.

Find all of the documentation in the doing wiki.

@@ -153,7 +153,7 @@

Changelog

diff --git a/docs/doc/top-level-namespace.html b/docs/doc/top-level-namespace.html index 49be7265..92928716 100644 --- a/docs/doc/top-level-namespace.html +++ b/docs/doc/top-level-namespace.html @@ -216,7 +216,7 @@

diff --git a/doing.rdoc b/doing.rdoc index 56e0532d..4ffb43de 100644 --- a/doing.rdoc +++ b/doing.rdoc @@ -5,7 +5,7 @@ record of what you've been doing, complete with tag-based time tracking. The command line tool allows you to add entries, annotate with tags and notes, and view your entries with myriad options, with a focus on a "natural" language syntax. -v2.1.84 +v2.1.86 === Global Options === --config_file arg @@ -3024,6 +3024,28 @@ Show time totals at the end of output +==== Command: todo ENTRY +Add an item as a Todo + +Adds an item to a Todo section, and tags it with @todo +===== Options +===== -n|--note TEXT + +Note + +[Default Value] None + + +===== --ask +Prompt for note via multi-line input + + + +===== -e|--editor +Edit entry with vim + + + ==== Command: undo COUNT Undo the last X changes to the Doing file diff --git a/lib/completion/_doing.zsh b/lib/completion/_doing.zsh index 26f62051..aa0d8f38 100644 --- a/lib/completion/_doing.zsh +++ b/lib/completion/_doing.zsh @@ -52,6 +52,7 @@ function _doing() { 'template:Output HTML' 'test:Test Stuff' 'today:List entries from today' + 'todo:Add an item as a Todo' 'undo:Undo the last X changes to the Doing file' 'update:Update doing to the latest version' 'view:Display a user-created view' @@ -202,6 +203,9 @@ function _doing() { today) args=( "--after[View entries after specified time]:TIME_STRING:" "--before[View entries before specified time]:TIME_STRING:" "--config_template[Output using a template from configuration]:TEMPLATE_KEY:" "--duration[Show elapsed time on entries without @done tag]" "--from[Time range to show `doing today --from \"12pm to 4pm\"`]:TIME_RANGE:" {'(--output)-o','(-o)--output'}"[Output to export format]:FORMAT:" "--only_timed[Only show items with recorded time intervals]" {'(--section)-s','(-s)--section'}"[Specify a section]:NAME:" "--save[Save all current command line options as a new view]:VIEW_NAME:" {'(--times)-t','(-t)--times'}"[Show time intervals on @done tasks]" "--tag_order[Tag sort direction]:DIRECTION:" "--tag_sort[Sort tags by]:KEY:" "--template[Override output format with a template string containing %placeholders]:TEMPLATE_STRING:" "--title[Title string to be used for output formats that require it]:TITLE:" "--totals[Show time totals at the end of output]" ) ;; + todo) + args=( "--ask[Prompt for note via multi-line input]" {'(--editor)-e','(-e)--editor'}"[Edit entry with vim]" {'(--note)-n','(-n)--note'}"[Note]:TEXT:" ) + ;; undo) args=( {'(--file)-f','(-f)--file'}"[Specify alternate doing file]:PATH:" {'(--interactive)-i','(-i)--interactive'}"[Select from recent backups]" {'(--prune)-p','(-p)--prune'}"[Remove old backups]:COUNT:" {'(--redo)-r','(-r)--redo'}"[Redo last undo]" ) ;; diff --git a/lib/completion/doing.bash b/lib/completion/doing.bash index 4140d439..720b050d 100644 --- a/lib/completion/doing.bash +++ b/lib/completion/doing.bash @@ -368,6 +368,16 @@ _doing_today() { fi } +_doing_todo() { + + if [[ "$token" == --* ]]; then + COMPREPLY=( $( compgen -W '--ask --editor --note' -- $token ) ) + elif [[ "$token" == -* ]]; then + COMPREPLY=( $( compgen -W '-e -n --ask --editor --note' -- $token ) ) + + fi +} + _doing_undo() { if [[ "$token" == --* ]]; then @@ -486,6 +496,7 @@ _doing() elif [[ $last =~ (tags) ]]; then _doing_tags elif [[ $last =~ (template) ]]; then _doing_template elif [[ $last =~ (today) ]]; then _doing_today + elif [[ $last =~ (todo) ]]; then _doing_todo elif [[ $last =~ (undo) ]]; then _doing_undo elif [[ $last =~ (update) ]]; then _doing_update elif [[ $last =~ (view) ]]; then _doing_view diff --git a/lib/completion/doing.fish b/lib/completion/doing.fish index 7f6dc7f1..c37a5e86 100644 --- a/lib/completion/doing.fish +++ b/lib/completion/doing.fish @@ -172,6 +172,7 @@ complete -xc doing -n '__fish_doing_needs_command' -a 'tags' -d List\ all\ tags\ complete -xc doing -n '__fish_doing_needs_command' -a 'template' -d Output\ HTML complete -xc doing -n '__fish_doing_needs_command' -a 'test' -d Test\ Stuff complete -xc doing -n '__fish_doing_needs_command' -a 'today' -d List\ entries\ from\ today +complete -xc doing -n '__fish_doing_needs_command' -a 'todo' -d Add\ an\ item\ as\ a\ Todo complete -xc doing -n '__fish_doing_needs_command' -a 'undo' -d Undo\ the\ last\ X\ changes\ to\ the\ Doing\ file complete -xc doing -n '__fish_doing_needs_command' -a 'update' -d Update\ doing\ to\ the\ latest\ version complete -xc doing -n '__fish_doing_needs_command' -a 'view' -d Display\ a\ user-created\ view @@ -561,6 +562,9 @@ complete -c doing -l tag_sort -f -r -n '__fish_doing_using_command today' -d So complete -c doing -l template -f -r -n '__fish_doing_using_command today' -d Override\ output\ format\ with\ a\ template\ string\ containing\ \%placeholders complete -c doing -l title -f -r -n '__fish_doing_using_command today' -d Title\ string\ to\ be\ used\ for\ output\ formats\ that\ require\ it complete -c doing -l totals -f -n '__fish_doing_using_command today' -d Show\ time\ totals\ at\ the\ end\ of\ output +complete -c doing -l ask -f -n '__fish_doing_using_command todo' -d Prompt\ for\ note\ via\ multi-line\ input +complete -c doing -l editor -s e -f -n '__fish_doing_using_command todo' -d Edit\ entry\ with\ vim +complete -c doing -l note -s n -f -r -n '__fish_doing_using_command todo' -d Note complete -c doing -l file -s f -f -r -n '__fish_doing_using_command undo' -d Specify\ alternate\ doing\ file complete -c doing -l interactive -s i -f -n '__fish_doing_using_command undo' -d Select\ from\ recent\ backups complete -c doing -l prune -s p -f -r -n '__fish_doing_using_command undo' -d Remove\ old\ backups diff --git a/lib/completion/doing.ts b/lib/completion/doing.ts index 909f33d5..34e6eed9 100644 --- a/lib/completion/doing.ts +++ b/lib/completion/doing.ts @@ -4463,6 +4463,36 @@ const completionSpec: Fig.Spec = { }, + { + name: "todo", + description: "Add an item as a Todo", + options: [ + { + name: ["--ask"], + description: "Prompt for note via multi-line input", + + }, + + { + name: ["-e", "--editor"], + description: "Edit entry with vim", + + }, + + { + name: ["-n", "--note"], + description: "Note", + args: { + name: "TEXT", + description: "TEXT", + }, + + }, + + ], + + }, + { name: "undo", description: "Undo the last X changes to the Doing file", diff --git a/lib/doing/chronify/string.rb b/lib/doing/chronify/string.rb index 14cb74e0..4cbfe38c 100644 --- a/lib/doing/chronify/string.rb +++ b/lib/doing/chronify/string.rb @@ -206,7 +206,7 @@ def split_date_range finish = '11:59pm' else start = date_string.strip.chronify(guess: :begin, future: false) - finish = date_string.strip.chronify(guess: :end) + finish = start + (24 * 60 * 60) end raise Errors::InvalidTimeExpression, 'Unrecognized date string' unless start @@ -214,9 +214,11 @@ def split_date_range if start.is_a? String - Doing.logger.debug('Parser:', "--from string interpreted as time span, from #{start || '12am'} to #{finish || '11:59pm'}") + Doing.logger.debug('Parser:', + "--from string interpreted as time span, from #{start || '12am'} to #{finish || '11:59pm'}") else - Doing.logger.debug('Parser:', "date range interpreted as #{start.strftime('%F %R')} -- #{finish ? finish.strftime('%F %R') : 'now'}") + Doing.logger.debug('Parser:', + "date range interpreted as #{start.strftime('%F %R')} -- #{finish ? finish.strftime('%F %R') : 'now'}") end [start, finish] end diff --git a/lib/doing/version.rb b/lib/doing/version.rb index feaef360..18cf78f1 100644 --- a/lib/doing/version.rb +++ b/lib/doing/version.rb @@ -1,3 +1,3 @@ module Doing - VERSION = '2.1.85' + VERSION = '2.1.86' end