feat(kebab-tui): p9-fb-24 task 1 — pager module + PAGE_STEP constant

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-04 16:37:16 +00:00
parent ce6e7d2bb9
commit 6d24174dc6
2 changed files with 12 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ mod input;
mod inspect;
mod library;
mod markdown;
mod pager;
mod run;
mod search;
mod terminal;

View File

@@ -0,0 +1,11 @@
//! p9-fb-24: page-step constant shared by Ask + Inspect PgUp/PgDn.
//!
//! Fixed `10` rows per page (independent of viewport height). The
//! design doc considered viewport-aware paging but deliberately
//! deferred it — Inspect already shipped with `+/-10`, so unifying
//! on the same constant is the smallest path that closes the
//! "Ask has no PgUp/PgDn" feedback. A future viewport-aware upgrade
//! lives behind this single edit point.
/// Rows scrolled per `PgUp` / `PgDn` keystroke.
pub(crate) const PAGE_STEP: u16 = 10;