From f98486f012eae0789aafb22bae544d7751173907 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 20 Aug 2024 13:49:53 +0300 Subject: [PATCH] docs: small updates --- README.md | 8 ++++---- src/kinds.rs | 2 +- src/task.rs | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f0280c4..09744db 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,8 @@ Dot or slash can be repeated to move to parent tasks before acting. - `<[TEXT]` - close active task and move up, with optional status description - `!TEXT` - set status for current task from text and move up (empty: Open) - `,[TEXT]` - list notes or add text note (comment / description) -- `*[INT]` - set priority - can also be used in task creation, with any digit +- TBI: `*[INT]` - set priority - can also be used in task creation, with any digit +- TBI: `;[TEXT]` - list comments or comment on task - TBI: show status history and creation with attribution - `&` - undo last action (moving in place or upwards confirms pending actions) - `wss://...` - switch or subscribe to relay (prefix with space to forcibly add a new one) @@ -126,7 +127,7 @@ Property Filters: - `+TAG` - add tag filter - `-TAG` - remove tag filters by prefix - `?STATUS` - filter by status (type or description) - plain `?` to reset, `??` to show all -- `@AUTHOR` - filter by author (`@` for self, id prefix, name prefix) +- `@AUTHOR` - filter by time or author (pubkey, or `@` for self, TBI: id prefix, name prefix) - TBI: `**INT` - filter by priority - TBI: Filter by time @@ -181,7 +182,6 @@ Considering to use Calendar: https://github.com/nostr-protocol/nips/blob/master/ - Open Command characters: `_^\=$%~'"`, `{}[]` - Remove colon from task creation syntax - reassign undo to `&` and use `@` for people -- maybe use `;` for sorting instead of `::` ### Conceptual @@ -189,7 +189,7 @@ The following features are not ready to be implemented because they need conceptualization. Suggestions welcome! -- Do not track time on Closed task? +- Queueing tasks - Allow adding new parent via description? - Special commands: help, exit, tutorial, change log level - Duplicate task (subtasks? timetracking?) diff --git a/src/kinds.rs b/src/kinds.rs index 2e6cc71..00ac436 100644 --- a/src/kinds.rs +++ b/src/kinds.rs @@ -48,7 +48,7 @@ Utilities: - `path` - name including parent tasks - `rpath` - name including parent tasks up to active task - TBI `depends` - list all tasks this task depends on before it becomes actionable -Debugging: `pubkey`, `props`, `alltags`, `descriptions`"; +Debugging: `kind`, `pubkey`, `props`, `alltags`, `descriptions`"; pub(crate) fn build_tracking(id: I) -> EventBuilder where diff --git a/src/task.rs b/src/task.rs index 2eb031d..2572148 100644 --- a/src/task.rs +++ b/src/task.rs @@ -157,6 +157,7 @@ impl Task { "name" => Some(self.event.content.clone()), "pubkey" => Some(self.event.pubkey.to_string()), "created" => Some(local_datetimestamp(&self.event.created_at)), + "kind" => Some(self.event.kind.to_string()), // Dynamic "status" => self.state_label().map(|c| c.to_string()), "desc" => self.descriptions().last().cloned(),