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

Method register

crates/opencode-tui/src/context/keybind.rs:204–206  ·  view source on GitHub ↗
(&mut self, name: &str, keybind: Keybind)

Source from the content-addressed store, hash-verified

202 }
203
204 pub fn register(&mut self, name: &str, keybind: Keybind) {
205 self.bindings.insert(name.to_string(), keybind);
206 }
207
208 pub fn get(&self, name: &str) -> Option<&Keybind> {
209 self.bindings.get(name)

Callers 1

register_defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected