46 Commits

Author SHA1 Message Date
jdb c00be8c1fc Add asdf tool-versions definitions pinning this to Nim 1.6 2024-05-10 11:59:58 -05:00
jdb 96ee649bf6 Change the logic around how we load our config.
The previous logic that was intended to find the first non-empty
filename that represented a valid file location was wrong. Replaced with
a simpler filter-based version.

Additionally, if the user provides a specific configuration filename, we
no longer fall back to the defaults if it is not found. Instead we just
err out and inform them that the file the specified was not found.
1.0.14
2022-04-02 08:45:30 -05:00
jdb 69177ffa17 Log locations when unable to load config.
When we can't find a config file, log all the locations we looked and
don't create a new file in $HOME/.ptkrc.

There is currently an intermittent bug in the config loading logic that
is leading to the default config file in $HOME/.ptkrc not being found
and then being overwritten with the default config. This is step one in
fixing it.
1.0.13
2022-03-19 08:49:26 -05:00
jdb 8b6405441a Support additional date and time formats (particularly YYYY-MM-DD). 1.0.12 2022-01-03 08:57:43 -06:00
jdb aff927b4f4 Fix for Nim 1.6.2 1.0.11 2021-12-20 17:42:55 -06:00
jdb 7c7695b891 Update for migration from jdb-labs -> jdb-software. 1.0.10 2021-06-08 18:49:03 -05:00
jdb 6ab23c7c84 Remove tags option actually removes tags now. 1.0.9 2020-11-12 14:44:52 -06:00
jdb 136e0ade02 Edit functionality no loger relies on sub-process receiving parent ENV. 1.0.8 2020-11-12 10:42:00 -06:00
jdb 3a4905ff6c Fix relative time input following Nim stdlib changes. 2020-11-12 10:41:05 -06:00
jdb 15a893d99f Update to reflect stdlib changes in Nim 1.4. 1.0.7 2020-11-12 04:30:36 -06:00
jdb a58c7923cb Update to reflect stdlib changes in Nim 1.2 1.0.6 2020-07-06 11:17:56 -05:00
jdb 9de8a39d9e Fix an error parsing empty lines when editing a mark. 1.0.5 2020-03-16 16:02:16 -05:00
jdb 78480dc61c Include notes when editing marks. 1.0.4 2020-03-16 09:47:15 -05:00
jdb fb652eee30 Fix double-free in edit functionality (double-closing file handle). 1.0.3 2020-03-16 08:32:56 -05:00
jdb a1333db427 Add helper to update version easily. 1.0.2 2020-02-16 00:53:36 -06:00
jdb af6aa5d520 Update for Nim 1.0.0 1.0.1 2020-02-14 12:38:28 -06:00
Jonathan Bernard 0d4827453a Refactor to add API layer. 1.0.0 2018-10-03 04:01:29 -05:00
Jonathan Bernard 03da2e9cd9 WIP Refactor to support API. 2018-10-02 09:19:59 -05:00
Jonathan Bernard e62a4e31de Fix --file flag, cut dead code. 0.12.4 2018-10-01 19:03:53 -05:00
Jonathan Bernard 5140afa671 All informational messages start with 'ptk:'. 0.12.3 2018-05-16 12:13:00 -05:00
Jonathan Bernard 56be47f7e1 Stop no longer appends extra stop messages if we're already stopped. 0.12.2 2018-05-16 11:50:08 -05:00
Jonathan Bernard 75f74c3a0a Make -m case insensitive. 0.12.1 2018-04-30 11:05:46 -05:00
Jonathan Bernard e5c6e6187c Add --yesterday and --or filter criteria.
* `--yesterday` is like `--today`, but for yesterday 😄.
* `--or` changes the behavior of filter criteria to return a union of
  events matching an of the criteria than an intersection of events
  matching all the criteria. Example:

      ptk list --today --yesterday

  Will never return results (because the criteria are mutually
  exclusive).

      ptk list --today --or --yesterday

  Will return the marks for both today and yesterday.
0.12.0
2018-04-27 13:22:06 -05:00
Jonathan Bernard 81d326c5c8 Filter out empty whitespace when considering new tags. 0.11.3 2018-04-16 04:29:19 -05:00
Jonathan Bernard 72c332fa45 Add start as an alias for add. 0.11.2 2018-04-09 09:53:00 -05:00
Jonathan Bernard 4a878026d8 Bump library version to compile under Nim 0.18 0.11.1 2018-04-02 14:44:26 -05:00
Jonathan Bernard ee733957c6 Add current command. Reformat output of notes. 0.11.0 2017-09-19 10:37:28 -05:00
Jonathan Bernard d75f5607c2 Fix edge case when no marks exist yet. 0.10.1 2017-05-16 12:32:59 -05:00
Jonathan Bernard 15708cebdf Add explicit dependency on isaac >= 0.1.2
Something depends on isaac 0.1.0, but that version doesn't compile on Nim 0.16
and above. Until the transitive dependancy is updated, ask for at least 0.1.2.
0.10.0
2017-02-21 11:18:12 -06:00
Jonathan Bernard 78a35b6478 Added list tags command. 0.9.0 2017-02-09 10:57:51 -06:00
Jonathan Bernard 099848edca Add resume command, update documentation. 0.8.0 2016-12-13 12:29:03 -06:00
Jonathan Bernard d3fc1cdf9c Fix incorrect ISO time format.
An incorrect time format that was used in version 0.6 and prior.
Version 0.7 between 1.0 support this format on read only and will write
out the correct  format (so they can be used to convert older timelines).
0.7.0
2016-11-01 09:57:36 -05:00
Jonathan Bernard 237f5026f2 Added merge command. 0.6.0 2016-10-23 17:31:27 -05:00
Jonathan Bernard 3cf76ef382 Add --this-week, --last-week options 0.5.0 2016-10-21 15:42:48 -05:00
Jonathan Bernard e0618f6520 Add some alternate time formats. 0.4.1 2016-10-13 06:31:51 -05:00
Jonathan Bernard 915c5b1ea1 Added --today flag. 0.4.0 2016-10-12 16:30:32 -05:00
Jonathan Bernard 9d0c77c8af Add support for using tags and pattern matching to select marks to list or sum. 0.3.0 2016-10-11 16:13:26 -05:00
Jonathan Bernard 033862f793 Added README and TODO. 2016-10-11 13:29:31 -05:00
Jonathan Bernard bf5c0a5752 Fixed typo, added support for tags in edit mode and listings. 0.2.1 2016-10-11 10:52:50 -05:00
Jonathan Bernard 6977dfbc2c Added support for tagging entries. 0.2.0 2016-10-11 10:31:36 -05:00
Jonathan Bernard a76d3074de Fix parsing of timeline name. 0.1.0 2016-10-08 00:50:09 -05:00
Jonathan Bernard 85027513dd Change signature of findById to return just the index. 2016-10-08 00:47:29 -05:00
Jonathan Bernard a1d43490cf Added stop, continue, and sum-time. 2016-10-08 00:37:16 -05:00
Jonathan Bernard a1d2fa383a Basic implementation: add, list, ammend, delete. 2016-10-07 19:58:51 -05:00
Jonathan Bernard 74a6217c8f Added .gitignore. 2016-10-06 15:46:58 -05:00
Jonathan Bernard 1edcf12998 Initial commit with nimble configuration. 2016-10-06 15:45:59 -05:00