You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/vault-tui/src/app.rs
+112Lines changed: 112 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,11 @@ const GEN_MIN_LEN: usize = 8;
29
29
/// own generator ceiling so saved values round-trip everywhere.
30
30
constGEN_MAX_LEN:usize = 128;
31
31
32
+
/// Rows a vim half-page motion (`Ctrl-d`/`Ctrl-u`) moves. A fixed approximation
33
+
/// of vim's "half the window": the pure-render `App` has no viewport height, so
34
+
/// a constant step keeps the motion useful without plumbing the pane geometry.
35
+
constVIM_PAGE:usize = 10;
36
+
32
37
/// A single-line editable text buffer with a cursor — the shared core behind
33
38
/// the `/` search, `:` command line, and every form field. Edits happen at the
34
39
/// cursor; `cursor` is a byte offset kept on a `char` boundary so all the
@@ -704,6 +709,10 @@ impl FormState {
704
709
705
710
/// Top-level TUI state.
706
711
#[derive(Clone,Debug)]
712
+
#[expect(
713
+
clippy::struct_excessive_bools,
714
+
reason = "App is the TUI's flat UI-state aggregate; these are independent toggles (config prefs + transient flags), not a state machine to fold into an enum"
715
+
)]
707
716
pubstructApp{
708
717
/// What the screen shows.
709
718
pubscreen:Screen,
@@ -751,6 +760,11 @@ pub struct App {
751
760
/// animations yet, so nothing reads this — it's populated from config so a
752
761
/// future spinner / lock-countdown can honor it without re-plumbing.
0 commit comments