doing 2.1.4pre → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +14 -13
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/.yardopts +1 -1
  6. data/CHANGELOG.md +37 -1
  7. data/Gemfile.lock +3 -1
  8. data/README.md +5 -1
  9. data/bin/doing +192 -95
  10. data/docs/_config.yml +1 -0
  11. data/{doc → docs/doc}/Array.html +63 -1
  12. data/docs/doc/BooleanTermParser/Clause.html +293 -0
  13. data/docs/doc/BooleanTermParser/Operator.html +172 -0
  14. data/docs/doc/BooleanTermParser/Query.html +417 -0
  15. data/docs/doc/BooleanTermParser/QueryParser.html +135 -0
  16. data/docs/doc/BooleanTermParser/QueryTransformer.html +124 -0
  17. data/docs/doc/BooleanTermParser.html +115 -0
  18. data/docs/doc/Doing/CLIFormat.html +131 -0
  19. data/{doc → docs/doc}/Doing/Color.html +2 -2
  20. data/{doc → docs/doc}/Doing/Completion.html +1 -1
  21. data/{doc → docs/doc}/Doing/Configuration.html +117 -12
  22. data/{doc → docs/doc}/Doing/Content.html +0 -0
  23. data/{doc → docs/doc}/Doing/Errors/DoingNoTraceError.html +1 -1
  24. data/{doc → docs/doc}/Doing/Errors/DoingRuntimeError.html +1 -1
  25. data/{doc → docs/doc}/Doing/Errors/DoingStandardError.html +1 -1
  26. data/{doc → docs/doc}/Doing/Errors/EmptyInput.html +1 -1
  27. data/{doc → docs/doc}/Doing/Errors/NoResults.html +1 -1
  28. data/{doc → docs/doc}/Doing/Errors/PluginException.html +1 -1
  29. data/{doc → docs/doc}/Doing/Errors/UserCancelled.html +1 -1
  30. data/{doc → docs/doc}/Doing/Errors/WrongCommand.html +1 -1
  31. data/{doc → docs/doc}/Doing/Errors.html +1 -1
  32. data/{doc → docs/doc}/Doing/Hooks.html +1 -1
  33. data/{doc → docs/doc}/Doing/Item.html +100 -73
  34. data/{doc → docs/doc}/Doing/Items.html +2 -2
  35. data/{doc → docs/doc}/Doing/LogAdapter.html +70 -1
  36. data/{doc → docs/doc}/Doing/Note.html +5 -134
  37. data/{doc → docs/doc}/Doing/Pager.html +1 -1
  38. data/{doc → docs/doc}/Doing/Plugins.html +431 -35
  39. data/{doc → docs/doc}/Doing/Prompt.html +1 -1
  40. data/{doc → docs/doc}/Doing/Section.html +1 -1
  41. data/docs/doc/Doing/TemplateString.html +713 -0
  42. data/docs/doc/Doing/Util/Backup.html +686 -0
  43. data/{doc → docs/doc}/Doing/Util.html +1 -1
  44. data/{doc → docs/doc}/Doing/WWID.html +5 -5
  45. data/{doc → docs/doc}/Doing/WWIDFile.html +0 -0
  46. data/{doc → docs/doc}/Doing.html +4 -4
  47. data/{doc → docs/doc}/GLI/Commands/MarkdownDocumentListener.html +1 -1
  48. data/{doc → docs/doc}/GLI/Commands.html +1 -1
  49. data/{doc → docs/doc}/GLI.html +1 -1
  50. data/{doc → docs/doc}/Hash.html +1 -1
  51. data/docs/doc/PhraseParser/Operator.html +172 -0
  52. data/docs/doc/PhraseParser/PhraseClause.html +303 -0
  53. data/docs/doc/PhraseParser/Query.html +495 -0
  54. data/docs/doc/PhraseParser/QueryParser.html +136 -0
  55. data/docs/doc/PhraseParser/QueryTransformer.html +124 -0
  56. data/docs/doc/PhraseParser/TermClause.html +293 -0
  57. data/docs/doc/PhraseParser.html +115 -0
  58. data/{doc → docs/doc}/Status.html +1 -1
  59. data/{doc → docs/doc}/String.html +182 -12
  60. data/{doc → docs/doc}/Symbol.html +35 -1
  61. data/{doc → docs/doc}/Time.html +1 -1
  62. data/{doc → docs/doc}/_index.html +21 -14
  63. data/{doc → docs/doc}/class_list.html +1 -1
  64. data/{doc → docs/doc}/css/common.css +0 -0
  65. data/{doc → docs/doc}/css/full_list.css +0 -0
  66. data/{doc → docs/doc}/css/style.css +0 -0
  67. data/{doc → docs/doc}/file.README.html +6 -2
  68. data/{doc → docs/doc}/file_list.html +0 -0
  69. data/{doc → docs/doc}/frames.html +0 -0
  70. data/{doc → docs/doc}/index.html +6 -2
  71. data/{doc → docs/doc}/js/app.js +0 -0
  72. data/{doc → docs/doc}/js/full_list.js +0 -0
  73. data/{doc → docs/doc}/js/jquery.js +0 -0
  74. data/{doc → docs/doc}/method_list.html +313 -161
  75. data/{doc → docs/doc}/top-level-namespace.html +1 -1
  76. data/docs/index.md +60 -0
  77. data/doing.gemspec +1 -0
  78. data/doing.rdoc +74 -15
  79. data/example_plugin.rb +3 -1
  80. data/lib/completion/_doing.zsh +53 -41
  81. data/lib/completion/doing.bash +17 -6
  82. data/lib/completion/doing.fish +321 -2
  83. data/lib/doing/array.rb +9 -0
  84. data/lib/doing/completion/fish_completion.rb +46 -3
  85. data/lib/doing/completion/zsh_completion.rb +1 -1
  86. data/lib/doing/configuration.rb +33 -11
  87. data/lib/doing/item.rb +12 -3
  88. data/lib/doing/log_adapter.rb +28 -0
  89. data/lib/doing/note.rb +31 -30
  90. data/lib/doing/plugin_manager.rb +84 -21
  91. data/lib/doing/plugins/export/dayone_export.rb +209 -0
  92. data/lib/doing/plugins/export/html_export.rb +2 -2
  93. data/lib/doing/plugins/export/json_export.rb +1 -0
  94. data/lib/doing/plugins/export/markdown_export.rb +1 -1
  95. data/lib/doing/plugins/export/template_export.rb +90 -85
  96. data/lib/doing/prompt.rb +9 -6
  97. data/lib/doing/string.rb +68 -27
  98. data/lib/doing/symbol.rb +4 -0
  99. data/lib/doing/template_string.rb +197 -0
  100. data/lib/doing/util.rb +4 -2
  101. data/lib/doing/util_backup.rb +55 -3
  102. data/lib/doing/version.rb +1 -1
  103. data/lib/doing/wwid.rb +37 -22
  104. data/lib/doing.rb +3 -0
  105. data/lib/examples/plugins/say_export.rb +1 -1
  106. data/lib/examples/plugins/wiki_export/wiki_export.rb +3 -3
  107. data/lib/templates/doing-dayone-entry.erb +6 -0
  108. data/lib/templates/doing-dayone.erb +5 -0
  109. metadata +95 -53
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34efca4676d4fa73e32781dbeee727c3596c3eb81571df8db7b50ee072112135
4
- data.tar.gz: 36cc7cbdf787bb01b6b0ed0e42d5b655cb8beffe35c07e57900afff1021359b4
3
+ metadata.gz: 45abffdcb15836ea64cdf3f0319d1f9b1f87cab167727a70c353f59e727bc871
4
+ data.tar.gz: 4a90508d94d94fb9cd66fa4f1ced8c1877ac7d02ebe1fee43274411b131f65e8
5
5
  SHA512:
6
- metadata.gz: f3e51a32050b360cf2f65eeb99667e46c3afec8d220f5c3d9dd3a00217e805f583a5d1ae844f2ae864af2b2a46d07dd548011188bb11a87487a30fd8717f8190
7
- data.tar.gz: 3905f7350939a8d7065298cc3dcb55577370a5f7eb7407c035c3115e7af7c46a093a34cd45cbed0009bdb396c8a6bc79e6e7403588bda7b70164dbeca655473c
6
+ metadata.gz: 7d95b5f8279d8d5d915305f700c6ab1013ba276371c3e553bc1b59f4c15a6859b4df40742ee6430836233c6049b831da893c6a70ed43fd7556c033fcead8c1e0
7
+ data.tar.gz: 474407eb66ca2ba4ed364e5e41f6440911c80926a83848e8cdc7669d83f7f526720e38330457b41ffca86d3b5471114538f34ed64f5409b2f8e9d05ace1d9571
data/.yardoc/checksums CHANGED
@@ -1,27 +1,28 @@
1
1
  lib/doing/hash.rb c2960de9603dcf90be85ce423d9430de27f4f893
2
- lib/doing/item.rb 54195709b13f536a187161d26edac0277cc878e5
3
- lib/doing/note.rb 99d7be3e45605d32da7e188d7ec749ba84a3d2f8
2
+ lib/doing/item.rb fcf106fb43a1a979d5213c8ac47161d9f6d8635f
3
+ lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
4
4
  lib/doing/time.rb 4411af636082d3abf6f6402a7d6c9038d96a9ead
5
- lib/doing/util.rb f766188e9f7b9d2c2d1fdae66341c768454db93e
6
- lib/doing/wwid.rb f8ecccc845541186fc7fda5b5684c3f22a02cf30
7
- lib/doing/array.rb dc9b3aeed89df820e003743e8d36078469c1aab7
5
+ lib/doing/util.rb 33ad79455893213a0f2993edec0e158526657f09
6
+ lib/doing/wwid.rb 6de8c0cca0e1563b80146032e8988798f651af53
7
+ lib/doing/array.rb a17004c4811d239932254f9ed94a6eb10456c8e8
8
8
  lib/doing/hooks.rb 00feacdbf24dc67951c49ca8c1ca9a568441920e
9
9
  lib/doing/items.rb 0860a0ac7269f59de994ae900c980e49359dc8d5
10
10
  lib/doing/pager.rb 230c10dea5e9c68b5709a0f4cb088c76970965e4
11
11
  lib/doing/colors.rb 9a628d48c821313c502deedc5b61a046a2bf79ef
12
12
  lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
13
- lib/doing/prompt.rb da7624c3be2e86f0075de169bc963e397f9dcc60
14
- lib/doing/string.rb c384aacfc2d7112fc1f7a41b6a665b265662b807
15
- lib/doing/symbol.rb 37f5b1f006181597703911494887a11fe0c63d39
13
+ lib/doing/prompt.rb df41a7e4328cc38b5c170af3de6ef2b0bf1fcc49
14
+ lib/doing/string.rb 8f6d1f8ba765bedf72f1af23be3617ce03aebb03
15
+ lib/doing/symbol.rb f18605aac49be688c9641de9564e48055a0f3757
16
16
  lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
17
- lib/doing/version.rb 6fc167fda7bb68678e5994fd9e523185f2fb4800
17
+ lib/doing/version.rb 98212bfa6e548b9edd525ac37f0932bbfd04b866
18
18
  lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
19
19
  lib/doing/completion.rb 3b291eb38e651ea993d04db592a5e743057626e6
20
- lib/doing/log_adapter.rb 5d21f966449977536452e22fa64de4a1fe334002
21
- lib/doing/util_backup.rb c5627bbfe75d3b6d899dfa097bef619ea30c3056
22
- lib/doing/configuration.rb f638673f7e7da2771cdc1f23eacb1a9ae64ff6bb
20
+ lib/doing/log_adapter.rb 9f2060c4f4c77b4facd94fc63aa9304c091c34d4
21
+ lib/doing/util_backup.rb 458352e8442c47a0d2f023b371b4ea1aea6cce96
22
+ lib/doing/configuration.rb b00ede3bfc4a6e16a957fabf2b03114e0008e42d
23
23
  lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
24
- lib/doing/plugin_manager.rb fb926e3998bac0b14dd4548b16ece0d32bbe0b9e
24
+ lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
25
25
  lib/doing/string_chronify.rb ccbb08389d2139c7121203f8585864e3026d1526
26
+ lib/doing/template_string.rb 6dfb28b922059189b072e6d9fe1fcba8aad6c6fe
26
27
  lib/doing/boolean_term_parser.rb 075977892ac5c6e3435cb8877d8b8b68eb1962e3
27
28
  lib/doing/markdown_document_listener.rb 45485f225068a34951ec818a345f642323e5ba35
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/.yardopts CHANGED
@@ -1 +1 @@
1
- --markup-provider=redcarpet --markup=markdown --no-private --exclude=README.md lib/doing/*.rb
1
+ --output-dir docs/doc --markup-provider=redcarpet --markup=markdown --no-private --exclude=README.md lib/doing/*.rb
data/CHANGELOG.md CHANGED
@@ -1,4 +1,19 @@
1
- ### 2.1.4pre
1
+ ### 2.1.7
2
+
3
+ #### NEW
4
+
5
+ - Hidden command `doing commands_accepting` which shows all commands that accept a given option, e.g. `doing commands_accepting search` shows all commands that take a search filter
6
+
7
+ #### IMPROVED
8
+
9
+ - The output of `doing template --list` now shows the file type of each template
10
+ - Output templates can now be saved to a default location/filename using `doing template html --save`
11
+
12
+ #### FIXED
13
+
14
+ - Error running `doing recent` on certain older ruby versions
15
+
16
+ ### 2.1.6
2
17
 
3
18
  #### NEW
4
19
 
@@ -13,6 +28,27 @@
13
28
  - New boolean type for tag searches, PATTERN (which is now the default). Combine tags using symbols to create more complex boolean searches, e.g. "doing +coding -work"
14
29
  - You can now define `date_tags` in config, an array of tags/patterns that will be recognized when parsing for natural language dates which are converted when saving new entries
15
30
  - `--search` strings can contain quoted phrases and use +/- to require or ban terms, e.g. `--search 'doing +coding -writing'
31
+ - Interactive option for redo command
32
+ - Plugins for Day One export
33
+
34
+ #### IMPROVED
35
+
36
+ - Better diff output for fzf preview of `doing undo` history
37
+ - Fall back to good ol' sed for colorizing diffs when no good tool is available
38
+ - `doing redo` (a.k.a. `doing undo --redo`) can be run multiple times, stepping forward through undo history. Can also take a count to jump
39
+ - Matching algorithm can be configured in settings
40
+ - All template placeholders can now use the "printf" formatting that %title and %note have, allowing for padding, prefixes, etc.
41
+ - Move default locations for doing file and backups to ~/.local/share/doing
42
+ - `doing show --menu` will only offer tags that exist after any tag/search filters have been run
43
+ - `doing show @tag` with `--menu` will first filter by the @tag, then do an OR search for tags selected from the menu
44
+
45
+ #### FIXED
46
+
47
+ - `doing reset` without filter not automatically affecting most recent entry
48
+ - `config set` now preserves value type (string, array, mapping) of previous value, coercing new value if needed
49
+ - Preserve colors when wrapping text to new lines
50
+ - Tag highlighting errors
51
+ - Template options specified in views were being overriden by options in templates. View config now has precedence, but will fall back to template config for missing keys
16
52
 
17
53
  #### IMPROVED
18
54
 
data/Gemfile.lock CHANGED
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.1.4pre)
4
+ doing (2.1.7)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  deep_merge (~> 1.2, >= 1.2.1)
7
7
  gli (~> 2.19, >= 2.19.2)
8
8
  haml (~> 5.0.0, >= 5.0.0)
9
9
  parslet (~> 2.0, >= 2.0.0)
10
+ plist (~> 3.6, >= 3.6.0)
10
11
  safe_yaml (~> 1.0)
11
12
  tty-link (~> 0.1, >= 0.1.1)
12
13
  tty-markdown (~> 0.7, >= 0.7.0)
@@ -85,6 +86,7 @@ GEM
85
86
  parslet (2.0.0)
86
87
  pastel (0.8.0)
87
88
  tty-color (~> 0.5)
89
+ plist (3.6.0)
88
90
  power_assert (2.0.1)
89
91
  protobuf-cucumber (3.10.8)
90
92
  activesupport (>= 3.2)
data/README.md CHANGED
@@ -6,10 +6,14 @@ _If you're one of the rare people like me who find this useful, feel free to [bu
6
6
 
7
7
  <!--README-->
8
8
 
9
- The current version of `doing` is <!--VER-->2.1.3<!--END VER-->.
9
+ The current version of `doing` is <!--VER-->2.1.5<!--END VER-->.
10
10
 
11
11
  Find all of the documentation in the [doing wiki](https://github.com/ttscoff/doing/wiki).
12
12
 
13
+ See [what's new in Doing 2.0](https://brettterpstra.com/2021/11/20/doing-2-dot-0/).
14
+
15
+ Check out some craziness with Doing in the [iTerm status bar](https://brettterpstra.com/2021/10/15/see-what-youre-doing-in-the-iterm-status-bar/) and the [Mac Touch Bar/menu bar](https://brettterpstra.com/2021/07/21/crazy-bettertouchtool-touch-bar-simulator/).
16
+
13
17
  ## What and why
14
18
 
15
19
  `doing` is a basic CLI for adding and listing "what was I doing" reminders in a [TaskPaper-formatted](https://www.taskpaper.com) text file. It allows for multiple sections/categories and flexible output formatting.