forked from janek/mostr
1
0
Fork 0

fix: list properties instead of adding blank column

This commit is contained in:
xeruf 2024-07-30 21:19:41 +03:00
parent 74464241ec
commit e5953c63b4
2 changed files with 19 additions and 1 deletions

View File

@ -98,7 +98,7 @@ when the application is terminated regularly.
Dots can be repeated to move to parent tasks. Dots can be repeated to move to parent tasks.
- `:[IND][COL]` - add / remove property column COL to IND or end - `:[IND][COL]` - add property column COL at IND or end, if it already exists remove property column COL or IND
- `>[TEXT]` - Complete active task and move to parent, with optional state description - `>[TEXT]` - Complete active task and move to parent, with optional state description
- `<[TEXT]` - Close active task and move to parent, with optional state description - `<[TEXT]` - Close active task and move to parent, with optional state description
- `|TEXT` - Set state for current task from text (also aliased to `/` for now) - `|TEXT` - Set state for current task from text (also aliased to `/` for now)

View File

@ -236,6 +236,24 @@ async fn main() {
} }
} }
None => { None => {
if arg.is_empty() {
println!("Available properties:
- `id`
- `parentid`
- `name`
- `state`
- `hashtags`
- `tags` - values of all nostr tags associated with the event, except event tags
- `desc` - last note on the task
- `description` - accumulated notes on the task
- `path` - name including parent tasks
- `rpath` - name including parent tasks up to active task
- `time` - time tracked on this task
- `rtime` - time tracked on this tasks and all recursive subtasks
- `progress` - recursive subtask completion in percent
- `subtasks` - how many direct subtasks are complete");
continue;
}
let pos = tasks.properties.iter().position(|s| s == arg); let pos = tasks.properties.iter().position(|s| s == arg);
match pos { match pos {
None => { None => {