TODO/Code quality - mark #7 as completed
This commit is contained in:
parent
1ddd8bb69e
commit
c28e33ad8b
4
TODO.org
4
TODO.org
|
@ -187,7 +187,7 @@
|
|||
4. [ ] Jump to beginning/end of data (keys B/F)
|
||||
5. [ ] Expandable items - show tag-combination-based breakdown
|
||||
|
||||
** Code quality [0%]
|
||||
** Code quality [12%]
|
||||
1. [ ] Remove duplication between =chronometrist-toggle-task= and =chronometrist-toggle-task-button=
|
||||
2. [ ] Make functions more test-friendly. Quite a few can get away with returning values instead of writing to a file - this will make it easier to test them. Other functions can handle the file operations for them.
|
||||
3. [ ] Rewrite using cl-loop
|
||||
|
@ -197,7 +197,7 @@
|
|||
1. Some feature definitions already exist in features/, write step definitions for them.
|
||||
5. [ ] Remove duplication - the three =chronometrist-*-history-populate= functions seem to have a common pattern of iterating over each hash value (a list of plists) in =chronometrist-events=, and over each element of that list.
|
||||
6. [ ] Remove duplication - extracting user key-values from a plist seems to be a common operation.
|
||||
7. [ ] Extensions - redesign =chronometrist= such that it does not need to check for the availability of extensions (such as =chronometrist-goal=)
|
||||
7. [X] Extensions - redesign =chronometrist= such that it does not need to check for the availability of extensions (such as =chronometrist-goal=)
|
||||
* Could make two "transformer lists" - =chronometrist-list-format-transformers= and =chronometrist-entry-transformers=.
|
||||
|
||||
The former would be called before =tabulated-list-format= is set. The latter would be called by =chronometrist-entries=, with each individual entry as an argument.
|
||||
|
|
Reference in New Issue