MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / open

Method open

crates/opencode-tui/src/components/slash_command.rs:33–39  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

31 }
32
33 pub fn open(&mut self) {
34 self.query = String::new();
35 self.refresh_filter();
36 self.state.select(Some(0));
37 self.open = true;
38 self.selected_action = None;
39 }
40
41 pub fn close(&mut self) {
42 self.open = false;

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
refresh_filterMethod · 0.80

Tested by

no test coverage detected