Skip to content

Commit 02b29b4

Browse files
committed
feat: add reversible thread inbox state operations
1 parent 67a9e09 commit 02b29b4

File tree

6 files changed

+782
-18
lines changed

6 files changed

+782
-18
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ tw inbox --unread # unread threads only
4040
tw thread view <ref> # view thread with comments
4141
tw thread view <ref> --comment 123 # view a specific comment
4242
tw thread reply <ref> # reply to a thread
43+
tw thread done <ref> # archive thread (mark as done)
44+
tw thread reopen <ref> # reopen archived thread
45+
tw thread unread <ref> # mark thread unread
46+
tw thread read <ref> # mark thread read
47+
tw thread restore <ref> --unread # reopen and mark unread
4348
tw conversation unread # list unread conversations
4449
tw conversation view <ref> # view conversation messages
4550
tw msg view <ref> # view a conversation message
@@ -51,6 +56,26 @@ References accept IDs (`123` or `id:123`), Twist URLs, or fuzzy names (for works
5156

5257
Run `tw --help` or `tw <command> --help` for more options.
5358

59+
## Inbox State Workflows
60+
61+
Thread inbox-state commands support single refs and bulk refs:
62+
63+
```bash
64+
tw thread reopen 123 456 --yes # bulk reopen
65+
tw thread restore 123 --unread --json # reopen + unread with JSON output
66+
tw thread done 123 --dry-run # preview archive operation
67+
```
68+
69+
Each mutation command supports:
70+
71+
```bash
72+
--yes # skip bulk confirmation
73+
--dry-run # preview without changing state
74+
--json # include before/after state per thread
75+
```
76+
77+
Migration note: `tw thread done` is now reversible via `tw thread reopen`.
78+
5479
## Shell Completions
5580

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

0 commit comments

Comments
 (0)