Skip to content

feat: collapse duplicate / ID-only / noise replies in topic --with-replies #8

Description

@pengyanai

Goal: raise information density of v2ex topic <id> --with-replies text output. Real-world example: topic 1213663 (公益站 ID 投递) has ~340 replies, of which the vast majority are 'ID: NNNN' promotional posts or 'mark/+1' noise — the actual discussion drowns.

Design:

  • exact-duplicate group → one row + (× N similar)
  • ID-only replies (regex ^\sID[::]?\s\d+) → trailing single-line bucket
  • short / stop-listed noise (mark, +1, 顶, 感谢, 👍, ...) → trailing bucket
  • --json output stays raw (agents re-derive)
  • --no-collapse opts back to current behavior

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions