From 2f8bc985b79e036ca6d34bb680a8858154c17a3b Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 3 Oct 2026 13:07:58 -0300 Subject: Export a single session, or only what the filters select --json and --html now honour -s, the text filter, -p, -g, -E and -n. With -s the page defaults to session-.html. A partial export carries only the memories of the projects it includes; with no filter everything goes, as before. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index bba8906..c41738a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ The command reads local files and never sends anything anywhere. `--json` and `--html` write out **the full text of your conversations and your projects' memories**: prompts, answers, file paths, branch names. The generated `sessions.html` is a complete, -readable copy of everything you ever typed into Claude Code. +readable copy of everything you ever typed into Claude Code. Exporting a single +session (`-s 3 --html`) is still that whole conversation: read it before you +share it. Do not commit it, do not upload it, do not paste it into a bug report. The repository's `.gitignore` already excludes `sessions.html` and `data.json`, but @@ -60,6 +62,7 @@ claude-logbook -g "port already" # search inside the conversations claude-logbook -r 3 # print the command that resumes it eval "$(claude-logbook -r 3)" # …or resume it right away claude-logbook --html --open # build sessions.html and open it +claude-logbook -s 3 --html # export only #3 → session-.html claude-logbook -m # your projects' memories claude-logbook -P # permissions, extra directories and trust ``` @@ -85,8 +88,8 @@ claude-logbook docker -s 2 # reads the 2nd of those three | `--no-tools` | Hide tool calls when printing a conversation. | | `--no-pager` | Do not pipe the conversation through `$PAGER`. | | `--no-color` | Plain output (`NO_COLOR` is honoured too). | -| `--json` | Dump every session as JSON on stdout. | -| `--html [FILE]` | Build the standalone page (default `sessions.html`). | +| `--json` | Dump the sessions as JSON on stdout: all of them, or only `-s` / what the filters keep. | +| `--html [FILE]` | Build the standalone page with the same selection as `--json` (default `sessions.html`, or `session-.html` with `-s`). | | `--template FILE` | Use your own template for `--html`. | | `--open` | Open whatever `--html` produced in your browser. | | `--no-cache` | Ignore the cache and re-parse everything. | -- cgit v1.2.3