MCPcopy Create free account
hub / github.com/GCWing/BitFun / move_down

Method move_down

src/apps/cli/src/ui/command_menu.rs:92–99  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

90 }
91
92 pub fn move_down(&mut self) {
93 if !self.visible {
94 return;
95 }
96 let selected = self.list_state.selected().unwrap_or(0);
97 let next = (selected + 1) % self.items.len();
98 self.list_state.select(Some(next));
99 }
100
101 /// Confirm the selected command and return its name
102 pub fn apply_selection(&mut self) -> Option<String> {

Callers 9

handle_mouse_eventMethod · 0.45
handle_keyMethod · 0.45
command_menu_downMethod · 0.45
model_selector_downMethod · 0.45
theme_selector_downMethod · 0.45
agent_selector_downMethod · 0.45
skill_selector_downMethod · 0.45
mcp_selector_downMethod · 0.45

Calls 2

lenMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected