Skip to content

feat: add cat output filter#2837

Open
MeGaurav4 wants to merge 1 commit into
rtk-ai:developfrom
MeGaurav4:fix/cat-filter-2803
Open

feat: add cat output filter#2837
MeGaurav4 wants to merge 1 commit into
rtk-ai:developfrom
MeGaurav4:fix/cat-filter-2803

Conversation

@MeGaurav4

Copy link
Copy Markdown

Adds a compact output filter for cat, one of the most commonly used commands that was missing from the built-in filters list.

Files changed: src/filters/cat.toml (new), src/core/toml_filter.rs (filter count bump)

Closes #2803

Verification

  • cargo test passes (2360 tests, 0 failures)
  • New filter has 3 inline tests: basic output, trailing blanks, empty input

Adds a built-in TOML filter for the cat command. Strips trailing
blank lines, caps output at 100 lines, truncates lines at 200
chars. cat was one of the most commonly used Unix commands missing
a filter, causing raw passthrough in rtk Antigravity mode.
@CLAassistant

CLAassistant commented Jul 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

antigravity ignores rtk popular commands to filter

2 participants