MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / load_stash

Method load_stash

crates/opencode-tui/src/components/prompt.rs:636–642  ·  view source on GitHub ↗
(&mut self, index: usize)

Source from the content-addressed store, hash-verified

634 }
635
636 pub fn load_stash(&mut self, index: usize) -> bool {
637 let Some(entry) = self.stash.get(index) else {
638 return false;
639 };
640 self.set_input(entry.input.clone());
641 true
642 }
643
644 fn history_previous(&mut self) {
645 if self.history.is_empty() {

Callers 1

handle_dialog_keyMethod · 0.80

Calls 3

set_inputMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected