Startup flag for filter_unreviewed (F)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 881
- Forks
- 90
- Avg merge
- 14h 29m
- Merged PRs (30d)
- 21
Description
What I'd like
A startup form of F (filter_unreviewed), to match every other view toggle:
--filter-unreviewedflagREVDIFF_FILTER_UNREVIEWEDenv var
Why
filter_unreviewed is the only toggle in the keymap without one. Every other view state can be chosen before the TUI opens:
| key | action | startup form |
|---|---|---|
v |
toggle_collapsed |
--collapsed |
C |
toggle_compact |
--compact |
w |
toggle_wrap |
--wrap |
t |
toggle_tree |
--no-tree |
L |
toggle_line_numbers |
--line-numbers |
B |
toggle_blame |
--blame |
W |
toggle_word_diff |
--word-diff |
u |
toggle_untracked |
--untracked |
F |
filter_unreviewed |
— |
This matters for me because revdiff is opened by a script, not by hand: a PR review starts from an agent that runs revdiff in a terminal overlay with the flags for that review. I can put the whole view in that command except this one, so every review starts by pressing F myself.
Typing the key into the terminal after launch is not a fix — it races the TUI's startup and can land in whatever is on screen at that moment.
Together with #324
With --reviewed <file> preloading the marks and --filter-unreviewed starting filtered, a second pass over a large PR becomes one command that opens exactly what is left. Separately each is useful; the pair is what makes the resumed review automatic.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing startup handling for the other view toggles and the F key's filter_unreviewed action. Add matching --filter-unreviewed and REVDIFF_FILTER_UNREVIEWED inputs, then verify that launching revdiff with either input starts with unreviewed filtering enabled and that existing toggles remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100