MCPcopy
hub / github.com/yorukot/superfile / navigateDown

Method navigateDown

src/internal/ui/zoxide/navigation.go:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15func (m *Model) navigateDown() {
16 if len(m.results) == 0 {
17 return
18 }
19 if m.cursor < len(m.results)-1 {
20 m.cursor++
21 } else {
22 m.cursor = 0 // Wrap to top
23 }
24 m.updateRenderIndex()
25}
26
27func (m *Model) updateRenderIndex() {
28 if len(m.results) == 0 {

Callers 2

HandleUpdateMethod · 0.95
TestNavigationFunction · 0.95

Calls 1

updateRenderIndexMethod · 0.95

Tested by 1

TestNavigationFunction · 0.76