Skip to content

Commit 71daa16

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

File tree

6 files changed

+866
-18
lines changed

6 files changed

+866
-18
lines changed

README.md

Lines changed: 27 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,28 @@ 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, bulk refs, and file input:
62+
63+
```bash
64+
tw thread reopen 123 456 --yes # bulk reopen
65+
tw thread unread --from-file ids.txt --yes # refs from file
66+
tw thread restore 123 --unread --json # reopen + unread with JSON output
67+
tw thread done 123 --dry-run # preview archive operation
68+
```
69+
70+
Each mutation command supports:
71+
72+
```bash
73+
--from-file <path> # one thread ref per line
74+
--yes # skip bulk confirmation
75+
--dry-run # preview without changing state
76+
--json # include before/after state per thread
77+
```
78+
79+
Migration note: `tw thread done` is now reversible via `tw thread reopen`.
80+
5481
## Shell Completions
5582

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

0 commit comments

Comments
 (0)