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

Method new

crates/opencode-tui/src/components/dialogs/prompt_stash.rs:26–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25impl PromptStashDialog {
26 pub fn new() -> Self {
27 let mut state = ListState::default();
28 state.select(Some(0));
29 Self {
30 entries: Vec::new(),
31 filtered: Vec::new(),
32 query: String::new(),
33 state,
34 open: false,
35 }
36 }
37
38 pub fn set_entries(&mut self, entries: Vec<StashItem>) {
39 self.entries = entries;

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected