Commit Graph

251 Commits

Author SHA1 Message Date
contrapunctus 9d68ac8b53 Merge branch 'dev' into plist-group-handle-split-plists 2021-12-05 22:18:57 +05:30
contrapunctus 975b67af1f fix: order of records returned by plist-group to-list 2021-12-05 22:16:30 +05:30
contrapunctus 2ac54f418a Merge branch 'dev' into plist-group-handle-split-plists 2021-12-04 22:45:12 +05:30
contrapunctus 3fd8efea73 Create generic update-properties 2021-12-04 18:41:17 +05:30
contrapunctus 0e8e9f4373 Fix error messages to match Elisp guidelines 2021-12-04 18:39:46 +05:30
contrapunctus 7ddb9c653b Join line if only deleting a plist 2021-12-04 16:58:45 +05:30
contrapunctus c70a7791b0 code: use local variables for clarification 2021-12-04 15:15:33 +05:30
contrapunctus a947cca7c7 Throw error if remove-last is called on backend with no records 2021-12-04 15:13:40 +05:30
contrapunctus b469defcd4 Throw error if `insert` called with empty plist 2021-12-04 14:25:43 +05:30
contrapunctus 10b592a04b fix: make replace-last handle split plists 2021-12-04 14:19:31 +05:30
contrapunctus a669f2b765 fix: prevent leftover empty plist-groups 2021-12-04 12:58:54 +05:30
contrapunctus 07aaa0e78c fix: make remove-last take split plists into account
last-two-split-p - remove redundant conditions (we are checking for a
situation in which the newer-plist-group cannot, by definition, have
>1 plists), change return value.
2021-12-03 22:12:04 +05:30
contrapunctus 9e8c3659d5 Create last-two-split-p 2021-12-03 01:01:27 +05:30
contrapunctus d108a4fdcb style: tweak plists-split-p 2021-12-03 00:16:53 +05:30
contrapunctus 17b19d79f5 Create plists-split-p 2021-12-02 17:42:45 +05:30
contrapunctus 5e5697b326 fix: dispatch on correct backend object
(This didn't have any incorrect behaviour that I noticed...I wonder why.)
2021-12-01 15:46:29 +05:30
contrapunctus 37bc29d923 fix: pretty printer behaviour for nested list values 2021-11-30 18:10:34 +05:30
contrapunctus e8eadc7048 fix: message user when discard-active is not applicable 2021-11-29 16:42:42 +05:30
contrapunctus 4eb4f30873 feat: new command chronometrist-discard-active 2021-11-28 17:26:12 +05:30
contrapunctus 14f02ff402 feat: implement backend operation remove-last 2021-11-28 12:36:31 +05:30
contrapunctus 8b82d68822 fix: timer running even when file buffer modified 2021-11-28 00:53:36 +05:30
contrapunctus 55f875ce1f Change "plist-pp" to "pp" 2021-11-27 18:08:50 +05:30
contrapunctus 87671c5a7f Merge branch 'doc' into dev 2021-11-22 16:43:59 +05:30
contrapunctus 2d28f896ff Remove unused local variable 2021-11-22 16:40:27 +05:30
contrapunctus a2a506f0f3 doc: clarify docstring 2021-11-22 16:39:43 +05:30
contrapunctus 702c1db887 Address byte compiler errors 2021-11-22 01:53:48 +05:30
contrapunctus 7e552e32fd Enable comment links to ease jumping from compilation errors to LP 2021-11-21 00:45:57 +05:30
contrapunctus e844e9f4b2 Create command to visit Org literate source 2021-11-19 15:10:17 +05:30
contrapunctus 7a3c5681ce Write currently-failing plist-pp-to-string test 2021-11-18 02:18:58 +05:30
contrapunctus 866776d028 [plist-pp] handle plist groups 2021-11-08 22:44:01 +05:30
contrapunctus 552c64b967 [plist-pp] use shorter parameter name, add comments, use ?\s 2021-11-01 11:27:41 +05:30
contrapunctus 13c6cd184a [plist-group] temporary hack - reset data structures on file change
I intend to adapt the plist backend's change type detection code so it
can be used for any kind of s-expression file backends.
2021-11-01 11:04:47 +05:30
contrapunctus 38ba060de3 Fix incorrect backend being migrated 2021-11-01 11:03:54 +05:30
contrapunctus a10e7f6e3a Fix chronometrist-migrate bugs 2021-11-01 11:03:54 +05:30
contrapunctus 62856f515d Move fs-watch to backend object slot 2021-11-01 11:03:54 +05:30
contrapunctus ae8c422d70 Run reset-internal instead of on-change after switching backends 2021-10-31 12:55:11 +05:30
contrapunctus 5892e9737f Write read-backend-name docstring; move to backend section 2021-10-31 12:53:37 +05:30
contrapunctus 186475d41e Create switch-backend command and register-backend function 2021-10-31 11:19:09 +05:30
contrapunctus 574ffd996c Split interval if necessary when clocking out 2021-10-31 09:55:58 +05:30
contrapunctus 7e19560d2a [plist-group] if required, create new tagged list before record insert 2021-10-30 09:51:21 +05:30
contrapunctus b70f304eb5 [plist-group] use hash table for task-records-for-date
* Move file-backend-mixin and related definitions to "common
  definitions for s-expression backends"
* Use loop-sexp-file and reinstate sexp-pre-read-check to reduce
  duplication
* Change some generics to dispatch on file-backend-mixin to make them
  common to the plist and plist-group backends
2021-10-30 01:17:23 +05:30
contrapunctus 7a17ed14a7 Rename functions; implement to-hash-table for plist-group
task-records -> task-records-for-date
active-time-one-day -> active-time-on

New generic - latest-date-records
Removed generic active-time
2021-10-30 00:00:35 +05:30
contrapunctus 06b29e3ce0 Update all references to chronometrist-events (except tests) 2021-10-29 09:54:28 +05:30
contrapunctus 45a2eeec06 Have details frontend use hash-table slot 2021-10-29 01:17:44 +05:30
contrapunctus 436aba7547 Remove list-tasks from backend protocol 2021-10-29 01:06:26 +05:30
contrapunctus 4f0b0c0171 Use to-list + cl-loop instead of cl-loop wrapper macros 2021-10-29 00:40:54 +05:30
contrapunctus b0482699cd fix: use unwind-protect to always reset iterator state 2021-10-23 17:06:46 +05:30
contrapunctus 1d300249cc feat: customizable task list 2021-10-23 16:06:08 +05:30
contrapunctus d10684f817 Add task-records test; restructure tests 2021-10-21 14:56:04 +05:30
contrapunctus 9eb9a05dd7 Make current-task a regular function 2021-10-21 14:33:50 +05:30