Skip to content

Add .tuicrignore filtering and small-screen diff UX#175

Merged
agavra merged 3 commits intoagavra:mainfrom
tarrencev:codex/tuicrignore-base-diff-only
Feb 11, 2026
Merged

Add .tuicrignore filtering and small-screen diff UX#175
agavra merged 3 commits intoagavra:mainfrom
tarrencev:codex/tuicrignore-base-diff-only

Conversation

@tarrencev
Copy link
Copy Markdown
Contributor

@tarrencev tarrencev commented Feb 11, 2026

This PR adds .tuicrignore support and applies filtering across startup, reloads, commit-range views, and mixed working-tree+commit diffs. It checks in a default .tuicrignore example and updates README/AGENTS documentation. For small terminals (under 100 columns), tuicr now starts with the file list hidden and diff panel focused, without introducing new CLI flags. The branch includes tests for ignore behavior (including unignore and deleted paths) and is clean under cargo test and cargo clippy -D warnings.

Copy link
Copy Markdown
Owner

@agavra agavra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tarrencev - happy to have your contribution.

I love the .tuicrignore feature, but I'm not sure I understand the --base feature as compared to --revisions and I think we can get away with better ux instead of a flag for diff-only

- Invalid `--theme` values cause an immediate non-zero exit.
- Unknown keys in `config.toml` are ignored with a startup warning.

### Ignoring Files With `.tuicrignore`
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is super cool! do you mind adding a .tuicrignore and checking it in to tuicr (with the example one). I suspect everyone would want that 😅

@tarrencev tarrencev changed the title Add .tuicrignore filtering and base/diff-only startup flags Add .tuicrignore filtering and small-screen diff UX Feb 11, 2026
@tarrencev
Copy link
Copy Markdown
Contributor Author

Addressed your review feedback in 0dafccb:\n- removed the proposed --base flow and related backend/plumbing\n- removed --diff-only and switched to automatic small-screen startup behavior (<100 columns starts with file list hidden)\n- added a checked-in root .tuicrignore example\n- updated README/AGENTS to match current behavior\n\nLocal validation: cargo fmt --check, cargo clippy -D warnings, cargo test.

Copy link
Copy Markdown
Owner

@agavra agavra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested it locally as well. Thanks for the contributions.

@agavra agavra merged commit bd00118 into agavra:main Feb 11, 2026
4 checks passed
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.

2 participants