Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -3116,6 +3116,14 @@ read. A cropped pane is read whole whatever the band's height, and the rows
above its cut fill the band from the bottom, so a taller band shows more of
what the agent last said.

`t` hides the band and gives its rows to the forest, and `t` again brings it
back. While the band is hidden `bdi` reads no pane, since nothing would be
drawn from the read: a read already out is answered into nothing, and none is
due. Bringing the band back reads the selected pane at once, and until that
answer lands the band says it is reading rather than show rows as old as the
hiding. The band is shown at every start. The choice lasts the run and is not
remembered.

### The reader says what their background is

`bdi` cannot see the reader's background and does not ask. A `[theme]` section
Expand Down Expand Up @@ -3473,6 +3481,7 @@ The bindings are vim-like, with the arrows as aliases:
| `s` | cycle which copy of a bead opens, under the selected node |
| `S` | cycle which copy of a bead opens, across the whole forest |
| `F` | draw the selected bead as the only root, or put the forest back |
| `t` | hide or show the pane's output under the forest |
| `/` | find part of a bead's id or title, wherever the forest draws it |
| `n`, `^G` | go to the next bead matching the search |
| `N`, `^T` | go to the one before it |
Expand Down
1 change: 1 addition & 0 deletions src/tui/drive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ fn answered(
| Action::CycleSpine
| Action::CycleSpineForest
| Action::ToggleFilter
| Action::ToggleTail
| Action::FocusForest
| Action::Search
| Action::NextMatch
Expand Down
8 changes: 8 additions & 0 deletions src/tui/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ pub(super) const BINDINGS: &[Binding] = &[
does: "draw the selected bead as the only root, or put the forest back",
hint: None,
},
Binding {
keys: &[alone(KeyCode::Char('t'), "t")],
action: Action::ToggleTail,
does: "hide or show the pane's output under the forest",
hint: None,
},
Binding {
keys: &[alone(KeyCode::Char('/'), "/")],
action: Action::Search,
Expand Down Expand Up @@ -538,6 +544,7 @@ pub(super) mod tests {
Action::CycleSpine,
Action::CycleSpineForest,
Action::ToggleFilter,
Action::ToggleTail,
Action::Focus,
Action::FocusForest,
Action::ShowBead,
Expand Down Expand Up @@ -574,6 +581,7 @@ pub(super) mod tests {
| Action::CycleSpine
| Action::CycleSpineForest
| Action::ToggleFilter
| Action::ToggleTail
| Action::Focus
| Action::FocusForest
| Action::ShowBead
Expand Down
Loading