forked from janek/mostr
fix: list properties instead of adding blank column
This commit is contained in:
parent
74464241ec
commit
e5953c63b4
|
@ -98,7 +98,7 @@ when the application is terminated regularly.
|
|||
|
||||
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]` - Close active task and move to parent, with optional state description
|
||||
- `|TEXT` - Set state for current task from text (also aliased to `/` for now)
|
||||
|
|
18
src/main.rs
18
src/main.rs
|
@ -236,6 +236,24 @@ async fn main() {
|
|||
}
|
||||
}
|
||||
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);
|
||||
match pos {
|
||||
None => {
|
||||
|
|
Loading…
Reference in New Issue