Skip to content

feat(ls): cap listing with tee tail hint and standard dotfile semantics - #3470

Open
aeppling wants to merge 1 commit into
developfrom
feat/ls-cap-tee-tail-hint
Open

feat(ls): cap listing with tee tail hint and standard dotfile semantics#3470
aeppling wants to merge 1 commit into
developfrom
feat/ls-cap-tee-tail-hint

Conversation

@aeppling

@aeppling aeppling commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

rtk ls silently dropped content: no display cap on large listings, noise-filtered dirs vanished without a trace, and dotfiles were shown by default via a forced -a.

Now:

  • Listings are capped; everything RTK hides (overflow + filtered noise) is recoverable with a single tee tail command that returns only unseen content.
  • Dotfiles follow standard ls behavior, shown only when -a is passed.
  • The TTY-only summary footer is removed; agents never saw it.

- Cap displayed entries at CAP_INVENTORY (50); overflow spills to a tee
  file holding ONLY the dropped entries, recoverable with one command:
  [see remaining: tail -n +1 ~/.local/share/rtk/tee/<ts>_ls-hidden.log]
- Record RTK-filtered noise dirs (non-dot only) in the same tee file and
  surface counts as "... (N more, M filtered)"
- Follow standard ls dotfile semantics: pass -a to the underlying ls only
  when the user asked for it (long format kept for parsing)
- Drop the TTY-only Summary line and extension histogram: agents never
  saw it and it misled humans about agent-visible output

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BZkPEr1jwjMViU4h4uPUpN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant