gogcli/docs
daniel 3e85dcf8ba feat(sedmat): add paragraph addressing and structure introspection
Add paragraph-number addressing (5d, 3s/.*/text/, $a/text/) and
`docs structure` / `docs cat -N` commands for paragraph-level
document manipulation.

New commands:
- `docs structure` — numbered paragraph list with types (text + JSON)
- `docs cat -N` — cat with [N] paragraph prefixes

Address syntax for `docs sed`:
- Nd (delete paragraph N), N,Md (range delete), $d (last)
- Ns/pat/repl/ (substitute within paragraph N)
- Na/text/ (append after N), Ni/text/ (insert before N)
- --tab flag for multi-tab document support

Testing:
- 24 new unit tests covering parseAddress (13 cases),
  parseFullExpr_Addressed (10 cases), resolveAddress (6 cases),
  and buildParagraphMap (8 cases). All pass.
- Manual testing against live Google Docs verified: structure,
  cat -N, addressed substitute, delete, append, insert, dollar
  addressing, and range delete.
- Bug found and fixed during manual testing: addressed a/text/
  and i/text/ were parsed by parseAICommand (expects a/pat/text/)
  which put text in the pattern field instead of replacement,
  producing empty paragraphs. Added parseAddressedAICommand for
  the single-field addressed form.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-01 14:15:08 -05:00
..
assets docs(site): add gogcli.sh landing page 2025-12-26 21:18:04 +01:00
refactor refactor(cmd): unify result output 2026-02-15 04:16:13 +01:00
auth-clients.md feat(auth): add multi-org login 2026-01-22 04:04:14 +00:00
CNAME docs(site): add gogcli.sh landing page 2025-12-26 21:18:04 +01:00
contacts-json-update.md feat(contacts): update contacts from JSON 2026-02-14 15:31:14 +01:00
dates.md contacts: support --birthday and --notes in contacts update (#233) 2026-02-13 18:16:49 +01:00
email-tracking-worker.md feat(tracking): per-account setup + track-split 2026-01-08 23:52:57 +01:00
email-tracking.md feat(tracking): per-account setup + track-split 2026-01-08 23:52:57 +01:00
index.html fix(cli): infer default account 2026-01-10 03:12:21 +01:00
RELEASING.md chore(release): v0.11.0 2026-02-15 04:28:24 +01:00
sedmat.md feat(sedmat): add paragraph addressing and structure introspection 2026-03-01 14:15:08 -05:00
spec.md fix(gmail/calendar): ISO-2022-JP decoding, cc/bcc headers, calendar selection (#131) 2026-02-16 06:56:42 +01:00
watch.md feat(gmail): land history types watch filtering (#168) 2026-02-16 04:39:03 +01:00