Repository navigation
feat(ui): close the notes rail with z; it appears with the first note and stays closed once closed - #177
Merged
Conversation
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 20, 2026
… and stays closed once closed
backnotprop
force-pushed
the
feat/hide-notes-panel
branch
from
November 20, 2026 03:45
d9c0067 to
4fe1bf9
Compare
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Asked for: "Can the comments panel close?" and then "I don't like that it auto shows. I want to be able to close it."
What changes
z(new actiontoggle-notes, rebindable under[keys]) closes the notes rail and opens it again. It is the same key in the document screen, in the code review and in its whole-file view (o/O), and it works from any pane. The rail stays as the person left it when going into the whole-file view and back.z, or moving the focus to the notes withTab, opens it again.Send 2 new), and the footer saysnotes hidden: z shows them.<data>/clients/plannotator-tui/ui-state.json({"notesRail":"closed"}or"open"). It applies to both screens.[ui] notes_rail = "when-notes" | "shown" | "hidden". A remembered choice wins over it. Withwhen-notes, a rail remembered as open still waits for the first note.z hide, the code review's?help lists the key, and both READMEs document the key and the setting.Behavior change
The default is now
when-notes, chosen by the owner. A document or diff with no notes no longer gets an empty rail: the text takes the full width, and the rail appears with the first note.notes_rail = "shown"gives back the old behavior, where the rail always shows when the pane is wide enough. To change the default, edit the#[default]onRailStartinsrc/notes_rail.rs.Tests
app/notes_rail_tests.rs: rail open and closed at 80, 120 and 200 columns (text width, marks, header and footer counts), the reading column re-centring, no rail before the first note,shownandhiddenas starting states,Tabre-opening and focusing it, a note added while closed leaving it closed, closed across a reload and across folder files, memory across sessions, and a rebound key in the footer.app/doc_size_tests.rs: toggling while the background layout of a long document is still running, and starting closed during it.review/tests/notes_rail.rs: the same cases for the code review, plus the diff reflowing into the freed columns, the whole-file view, and the help entry.notes_rail.rs: the state rules and the state file.config.rsandcli.rs: parsing the setting and the first frame's width.Screenshots (real binary in tmux, scratch HOME and data dir) were made locally: document open, closed, and with no notes; code review open and closed.