Skip to content

Commit ebe9108

Browse files
gnapsescottlovegrove
authored andcommitted
feat: add reversible thread inbox state operations
1 parent 79f6b35 commit ebe9108

6 files changed

Lines changed: 772 additions & 20 deletions

File tree

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ tw inbox --unread # unread threads only
6969
tw thread view <ref> # view thread with comments
7070
tw thread view <ref> --comment 123 # view a specific comment
7171
tw thread reply <ref> # reply to a thread
72+
tw thread done <ref> # archive thread (mark as done)
73+
tw thread reopen <ref> # reopen archived thread
74+
tw thread unread <ref> # mark thread unread
75+
tw thread read <ref> # mark thread read
76+
tw thread restore <ref> --unread # reopen and mark unread
7277
tw conversation unread # list unread conversations
7378
tw conversation view <ref> # view conversation messages
7479
tw msg view <ref> # view a conversation message
@@ -83,6 +88,26 @@ References accept IDs (`123` or `id:123`), Twist URLs, or fuzzy names (for works
8388

8489
Run `tw --help` or `tw <command> --help` for more options.
8590

91+
## Inbox State Workflows
92+
93+
Thread inbox-state commands support single refs and bulk refs:
94+
95+
```bash
96+
tw thread reopen 123 456 --yes # bulk reopen
97+
tw thread restore 123 --unread --json # reopen + unread with JSON output
98+
tw thread done 123 --dry-run # preview archive operation
99+
```
100+
101+
Each mutation command supports:
102+
103+
```bash
104+
--yes # skip bulk confirmation
105+
--dry-run # preview without changing state
106+
--json # include before/after state per thread
107+
```
108+
109+
Migration note: `tw thread done` is now reversible via `tw thread reopen`.
110+
86111
## Shell Completions
87112

88113
Tab completion is available for bash, zsh, and fish:

0 commit comments

Comments
 (0)