MCPcopy Create free account
hub / github.com/bajrangCoder/setu / toggle

Method toggle

src/views/command_palette.rs:277–293  ·  view source on GitHub ↗
(&mut self, window: &mut Window, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

275 .map(|command| SharedString::from(command.palette_label()))
276 .collect::<Vec<_>>();
277 let command_labels_lower = command_labels
278 .iter()
279 .map(|label| label.to_ascii_lowercase())
280 .collect::<Vec<_>>();
281 let filtered_indices = (0..commands.len()).collect::<Vec<_>>();
282
283 Self {
284 is_open: false,
285 commands,
286 command_labels,
287 command_labels_lower,
288 filtered_indices,
289 selected_index: 0,
290 focus_handle: cx.focus_handle(),
291 app_focus_handle,
292 input_state: None,
293 query: String::new(),
294 scroll_handle: ScrollHandle::new(),
295 closing_at: None,
296 close_epoch: 0,

Callers 1

Calls 3

ensure_input_stateMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected