From 36de2a2cbf6a9ec64223e8ecefd1ededb1cd33c0 Mon Sep 17 00:00:00 2001 From: dawn <90008@klbr.net> Date: Mon, 21 Sep 2026 01:33:38 +0300 Subject: [PATCH] gaze tracks the cursor column in the field, probing becomes a left-right glance --- internal/app/ui.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/internal/app/ui.go b/internal/app/ui.go index ac331b7..47e72a7 100644 --- a/internal/app/ui.go +++ b/internal/app/ui.go @@ -186,17 +186,21 @@ func (m pickerModel) View() string { kitty := "(^ . .^)" // neutral gaze switch { case m.pending > 0: - // radar ears while the fleet is being scanned - kitty = []string{"(/ . .^)", "(^ . .\\)", "₍^. .^₎", "(^ . .^)"}[m.twitch/4%4] + // glancing left and right while the fleet is being scanned + if m.twitch/4%2 == 0 { + kitty = "(^• .^)" + } else { + kitty = "(^. •^)" + } case m.filter.Value() == "": kitty = "(^ - -^)" // dozing until you start typing default: - // pupils follow the cursor across three buckets - pos, end := m.filter.Position(), max(1, len(m.filter.Value())) + // pupils follow the cursor's column within the input field + pos, fieldW := m.filter.Position(), max(1, m.filter.Width) switch { - case pos*3 < end: - kitty = "(^• •^)" - case pos*3 < 2*end: + case pos*3 < fieldW: + kitty = "(^• .^)" + case pos*3 < 2*fieldW: kitty = "(^ . .^)" default: kitty = "(^ ••^)" -- 2.51.2