Commit Graph

361 Commits

Author SHA1 Message Date
xeruf 52be8c53eb feat: revamp task printing through recursive sorting
Still to be fixed: Bookmarks, Time Summary
2024-10-14 16:10:56 +02:00
xeruf 5f25e116a1 feat: allow filtering tasks by author name 2024-10-13 17:15:43 +02:00
xeruf d1720f89ae fix(tasks): do not show progress for activities 2024-10-13 16:01:55 +02:00
xeruf f6082f12f2 fix(tasks): prevent crashes at zero depth 2024-10-12 21:55:32 +02:00
xeruf 3d389e8d52 feat: toggleable activity recursion 2024-10-12 14:17:46 +02:00
xeruf 28d1f4c983 fix(tasks): properly set search depth 2024-10-12 11:54:29 +02:00
xeruf 93fde86169 test(tasks): adjust view and search depth 2024-10-12 11:35:43 +02:00
xeruf 769b9578fe refactor: do not import xdg 2024-10-12 11:34:44 +02:00
xeruf c27ccb8282 refactor: rename stateless tasks to activities 2024-10-11 22:06:18 +02:00
xeruf d744fb8457 feat: separate search and view depth 2024-10-11 01:10:17 +02:00
xeruf c2f775e891 docs(tasks): expand documentation a bit 2024-10-03 13:39:52 +02:00
xeruf 617b1ea6d1 fix(tasks): do not show children of non-matching states 2024-10-03 13:29:41 +02:00
xeruf fd970b3709 fix(tasks): match task names at word boundary with regex 2024-10-01 23:20:08 +02:00
xeruf c6de8daee9 fix(main): increase notification channel size
apparently it needs to be double of the expected events,
so even this is only a temporary remedy
2024-10-01 23:19:01 +02:00
xeruf a297f61363 feat(tasks): report reprocessing issues 2024-09-23 13:59:29 +02:00
xeruf 96ca945263 feat: allow viewing tracking history for user 2024-09-23 13:51:16 +02:00
xeruf d4bca1c26f feat: deferred state updates 2024-09-23 08:50:12 +02:00
xeruf 516acadd4a fix: properly determine current task state 2024-09-23 01:20:24 +02:00
xeruf 945eb6906a feat: add ability to schedule any action 2024-09-22 20:05:05 +02:00
xeruf 34657540de refactor: remove Tasks to TasksRelay 2024-09-22 16:48:15 +02:00
xeruf afe3fa8670 fix: remove cached task children list 2024-09-22 16:47:26 +02:00
xeruf 753afad2fd fix: obtain children on the fly 2024-09-22 16:24:07 +02:00
xeruf 7755967a7a feat: requeue events with missing references 2024-09-22 14:44:20 +02:00
xeruf cb75a5749f style(tasks): some bits of documentation 2024-09-14 16:17:30 +03:00
xeruf 0744e86922 feat: properly include tasks with hashtags in filters 2024-09-14 16:13:41 +03:00
xeruf ddb68f7107 feat: recognize hashtags in task name 2024-09-14 15:53:27 +03:00
xeruf 4b59b273f5 feat(tasks): extend search depth by tags if appropriate 2024-09-07 16:26:55 +03:00
xeruf bb3bb1fd56 feat: better feedback on bookmarking 2024-09-07 16:25:44 +03:00
xeruf 593ebcddca feat(main): make empty / go to root 2024-09-07 16:06:59 +03:00
xeruf 132ea048a5 feat: greatly revamp filtering 2024-09-07 16:06:28 +03:00
xeruf ddc57dc36a fix(tasks): do not panic on missing children 2024-09-05 13:56:48 +03:00
xeruf 77bfc4cb7a fix: add weekday to relative date formatting 2024-09-05 13:50:50 +03:00
xeruf 43e7a5cd10 fix(tasks): prevent infinite loop on higher depth in ChildIterator 2024-09-03 21:15:48 +03:00
xeruf 3942105764 fix(tasks): do not show bookmarks on childrenless tasks 2024-08-29 23:28:52 +03:00
xeruf 945e29b5ed feat: enable setting persistent bookmarks 2024-08-29 23:20:31 +03:00
xeruf 1297be43bc feat(tasks): include bookmarked tasks regardless of position 2024-08-29 22:59:31 +03:00
xeruf 5a62e8f99e feat(tasks): parse own bookmarks from event 2024-08-29 22:28:25 +03:00
xeruf 018357b21e refactor(tasks): accurately rename referenced_events to singular 2024-08-29 22:17:46 +03:00
xeruf d4f544173a style: slight reformatting 2024-08-29 22:15:30 +03:00
xeruf c2b106ea69 refactor: use static Kinds rather than their ids 2024-08-29 22:14:26 +03:00
xeruf 003d1d6120 feat: prefer immediate children search results 2024-08-29 12:11:43 +03:00
xeruf 039c390c66 fix(tasks): re-filter when reducing view depth 2024-08-29 12:02:13 +03:00
xeruf b974957bc9 fix: do not set view depth when searching 2024-08-29 11:54:53 +03:00
xeruf dd5aaf71d2 feat: enable moving back through history with & 2024-08-29 11:50:34 +03:00
xeruf c5a2872534 feat: enable setting specific state with label 2024-08-29 11:06:56 +03:00
xeruf 1a1f23007b feat: filter tasks by state change time 2024-08-28 21:56:15 +03:00
xeruf 9eaf10006b fix(tasks): avoid timestamp conflicts 2024-08-28 09:16:38 +03:00
xeruf 6492a22cc9 fix: dim path separators 2024-08-28 09:16:38 +03:00
xeruf 13dac88ded fix: more consistent time-tracking history 2024-08-28 09:16:35 +03:00
xeruf 1263e39fb3 fix: parse date without numbers as day start 2024-08-27 12:02:45 +03:00
xeruf 714d4a4d5b fix(tasks): only enter a perfect global match that is not closed 2024-08-27 12:02:45 +03:00
xeruf 1d7d3eea74 feat(main): automatic readline history 2024-08-27 12:02:45 +03:00
xeruf 3cab294122 feat(tasks): prevent accidental redundant time-tracking 2024-08-27 12:02:45 +03:00
xeruf 01305c5a78 feat: more adaptive tag filtering
Make tag exclusions more persistent
2024-08-27 12:02:45 +03:00
xeruf 14a1cbe09c refactor: code cleanup with clippy 2024-08-27 12:02:45 +03:00
xeruf 533378b24d feat(tasks): allow jumping to task anywhere by exact name match 2024-08-27 12:02:40 +03:00
xeruf a0f5d62c81 fix: more intuitive feedback when stopping timetracking 2024-08-25 14:28:23 +03:00
xeruf 84e46827ce fix(tasks): temporary improved author formatting 2024-08-25 11:17:55 +03:00
xeruf 3c93e0aae7 feat: character threshold for creating notes 2024-08-25 11:17:26 +03:00
xeruf c3d18e4494 fix(tasks): properly determine last tracking of current task 2024-08-25 10:50:24 +03:00
xeruf 75a5f27843 feat(main): allow creating multiple task at once with newlines 2024-08-24 21:01:07 +03:00
xeruf 58126ba6e7 feat(main): migrate to current rustyline version 2024-08-24 20:57:07 +03:00
xeruf 9f14a0f3f9 feat: parse plain hour when adjusting tracking 2024-08-22 11:13:35 +03:00
xeruf f240413e2a style: various small cleanups 2024-08-21 12:31:29 +03:00
xeruf 999068bdd9 fix(main): pass own username to Tasks object 2024-08-21 12:30:13 +03:00
xeruf f7f4bdc4f3 refactor(main): merge local_tasks into relays map 2024-08-21 12:22:47 +03:00
xeruf ed1f482707 feat: revamp timestamp formatting helpers 2024-08-21 11:57:28 +03:00
xeruf 3dca6a4b23 fix(main): safer key persistence 2024-08-21 11:52:07 +03:00
xeruf 17b3334aea fix: prompt via readline 2024-08-21 11:05:43 +03:00
xeruf 77ba311bab feat(main): neatly interpret plain hour in date filter 2024-08-21 10:14:01 +03:00
xeruf 9da41db427 feat(main): implement readline functionality with rustylinez
Including background log output
2024-08-20 22:40:16 +03:00
xeruf a67bd384ec fix(tasks): creation position in filter_or_create 2024-08-20 21:42:05 +03:00
xeruf ace365de38 fix(main): enhance Result warnings macro with string interpolation 2024-08-20 21:16:01 +03:00
xeruf 07bba314ec fix(main): print Result warnings via macro 2024-08-20 20:41:41 +03:00
xeruf 126bd8cf81 fix: move from std::sync fully to tokio
Fixes Relay adding

Closes https://github.com/rust-nostr/nostr/issues/533
2024-08-20 14:29:09 +03:00
xeruf b5b2ea9b71 fix(main): client communication ordering 2024-08-20 14:18:37 +03:00
xeruf f98486f012 docs: small updates 2024-08-20 13:51:23 +03:00
xeruf ada3492487 feat: upgrade to nostr sdk 0.34 2024-08-20 13:00:36 +03:00
xeruf efc0061390 feat(main): rudimentary filter by date or author 2024-08-19 22:16:19 +03:00
xeruf 1b0f7dca09 fix(main): more intuitive behavior when stopping tracking with stamp 2024-08-19 21:55:44 +03:00
xeruf f4cff3d702 feat: use author name consistently 2024-08-19 21:41:45 +03:00
xeruf f8a4777f71 feat(kinds): more accurate tag formatting 2024-08-19 21:25:59 +03:00
xeruf 0296556bcd fix(main): fetch task kinds before updates 2024-08-19 21:25:20 +03:00
xeruf c64a1fa051 feat(tasks): add task author to default columns 2024-08-19 21:21:31 +03:00
xeruf 721c200b97 fix(tasks): hide duplicates again in personal time-tracking history 2024-08-19 17:35:26 +03:00
xeruf 3b9fedd9a3 feat(tasks): display details on task without subtasks 2024-08-19 17:30:05 +03:00
xeruf 12b7c909ab feat(tasks): track depth in ChildIterator 2024-08-19 16:52:19 +03:00
xeruf 5bc3509930 refactor: provide position ref and cloned 2024-08-19 16:36:06 +03:00
xeruf 629db66018 fix(tasks): properly find current position when futures are involved 2024-08-19 13:59:37 +03:00
xeruf e0d241ec5a fix(tasks): undo tracking with history-based position 2024-08-19 13:56:28 +03:00
xeruf 506a73060a fix(tasks): properly process movement with history-based position 2024-08-19 13:47:27 +03:00
xeruf ebfe632497 feat(tasks): derive position from history 2024-08-19 13:06:20 +03:00
xeruf a4f9398846 fix: simplify tracking functions
Pruning the local history is not worth it.
2024-08-19 11:45:12 +03:00
xeruf 416a7f195d feat: format visible time tracking history 2024-08-19 11:27:12 +03:00
xeruf f8375cf879 refactor(task): state kind numbers as enum values 2024-08-18 22:47:19 +03:00
xeruf 8bf305d4d4 fix: only show default state for proper tasks 2024-08-18 22:43:14 +03:00
xeruf eaeeebca7b feat: add notes as stateless tasks 2024-08-18 22:37:02 +03:00
xeruf 2255abc1b8 docs: unify property columns documentation 2024-08-18 21:54:48 +03:00
xeruf 19d0fbb8fc feat(task): expose remaining relevant event properties 2024-08-18 21:38:20 +03:00
xeruf 903536bd3b docs: some helpful comments 2024-08-18 21:37:39 +03:00
xeruf 86654c8348 feat: show named task authors 2024-08-18 21:33:32 +03:00
xeruf d88cae4273 feat(main): enable filtering by author 2024-08-16 21:58:38 +03:00
xeruf 9ad1243078 fix(main): better messages for background thread operations 2024-08-16 17:46:04 +03:00
xeruf 2fac3fd8f8 refactor(tasks): resolve recursive tasks without intermediate collections 2024-08-16 09:45:35 +03:00
xeruf 34540370c3 refactor(main): small cleanups 2024-08-15 15:50:58 +03:00
xeruf 43278a6631 feat(tasks): interpret plain numbers as minutes and strip prefixes 2024-08-15 13:22:16 +03:00
xeruf 9c0a688297 fix(tasks): prevent tracking invalid times 2024-08-15 13:12:42 +03:00
xeruf fcd5e9c0c9 feat(tasks): employ time parsing libraries for tracking offsets 2024-08-15 12:21:32 +03:00
xeruf 3e056eb2b6 feat: feedback when filter does not match 2024-08-15 10:33:52 +03:00
xeruf 930c6b9c38 fix: improve task filtering, especially with slash
- smart case
- substring match
- less movement needed
2024-08-15 10:33:06 +03:00
xeruf c93b2f2d91 feat(main): enhance prompt formatting 2024-08-15 09:31:49 +03:00
xeruf 0253b00c61 feat(tasks): display tracking since for current task 2024-08-14 22:12:43 +03:00
xeruf 957422f767 feat: localize nostr Timestamps consistently 2024-08-14 21:49:36 +03:00
xeruf 3eefbad6d5 feat: allow setting multiple tag filters at once 2024-08-14 19:42:58 +03:00
xeruf b544616801 test(tasks): small rearrangements 2024-08-14 16:00:03 +03:00
xeruf 1e0cc319b8 docs: expand Readme and adjust code comments 2024-08-14 15:59:43 +03:00
xeruf 8588fb9a04 refactor(main): improved debug output 2024-08-14 15:57:05 +03:00
xeruf bbfbb2d8b0 fix(main): better feedback on url parse error 2024-08-14 15:40:15 +03:00
xeruf f5aca3eca8 fix(main): better feedback after adjusting timetracking 2024-08-14 15:36:54 +03:00
xeruf be582cb536 fix(main): revamp prompt formatting 2024-08-14 15:33:50 +03:00
xeruf 68d5c101e9 feat(main): enable switching to new relay while running 2024-08-14 15:32:42 +03:00
xeruf 45b8f9cf0f feat(main): define MostrMessage type for inter-thread channel 2024-08-13 21:40:23 +03:00
xeruf ae4d315d87 fix: small sorting adjustment 2024-08-13 21:40:01 +03:00
xeruf 66af6af0ab fix(main): do not superfluously move in place 2024-08-13 21:40:01 +03:00
xeruf a059ff1c3e refactor(main): define timeout delays as constants 2024-08-13 21:39:47 +03:00
xeruf 6cb2d47a8d feat(main): advanced logger instantiation 2024-08-13 21:27:26 +03:00
xeruf 6d4666c12d feat(tasks): improve visible tasks summary 2024-08-13 11:59:57 +03:00
xeruf c67ef3b119 feat(main): batch up messages for relays 2024-08-13 11:54:14 +03:00
xeruf 619bcfbbad feat(tasks): generate tree from iterator 2024-08-12 23:08:06 +03:00
xeruf 85b923edc8 feat: enable creating dependent sibling task 2024-08-12 23:06:49 +03:00
xeruf 9f84fd7ef1 refactor(tasks): find task tree as references 2024-08-12 12:17:03 +03:00
xeruf 67a19d61f2 feat(tasks): implement fallback for finding task children 2024-08-12 12:09:46 +03:00
xeruf 8f3552aeba feat: move up after setting state manually 2024-08-12 11:57:21 +03:00
xeruf b3d70ab0b7 feat(tasks): enable excluding tags from view 2024-08-11 12:28:08 +03:00
xeruf c83d8a2f55 feat(tasks): option to fully set sorting 2024-08-11 12:05:29 +03:00
xeruf a7d02e60b2 feat(tasks): make sorting by property customizable 2024-08-11 10:58:34 +03:00
xeruf 55792ca34f feat(tasks): sorting by property 2024-08-11 10:01:46 +03:00
xeruf dda969e08b feat: integrate progress and dependencies into state property 2024-08-10 21:27:47 +03:00
xeruf dcf333353b fix(tasks): ignore future stamps in time-tracking summation 2024-08-10 21:27:47 +03:00
xeruf 15bd21059d fix: show currently running timetracking for task 2024-08-10 21:27:47 +03:00
xeruf 9fbe3e27cb feat: implement task stopping shortcut 2024-08-10 21:27:41 +03:00
xeruf 06bfe8e18a fix(task): properly parse str into State 2024-08-10 18:16:29 +03:00
xeruf b74ac18e39 style: reformat and remove leftover debug print 2024-08-10 18:14:19 +03:00
xeruf ae2172c8f2 feat(main): properly apply input trimming 2024-08-10 18:11:42 +03:00
xeruf b03ad00b6a feat: quick filter for all task states 2024-08-10 15:44:52 +03:00
xeruf ff74ac216b feat(task): colorize state property 2024-08-10 15:14:09 +03:00
xeruf c48355e5da feat(task): parse dependees 2024-08-09 20:53:30 +03:00
xeruf 7a8a048d6c feat: add procedures for dependency lists 2024-08-08 21:10:17 +03:00
xeruf c492d64d9e style: align command match branches 2024-08-08 18:16:25 +03:00
xeruf b62ec6fd39 feat: summarize time tracked on visible tasks 2024-08-08 15:14:04 +03:00