15 releases (9 major breaking)

9.0.0 Jan 25, 2025
8.0.0 Nov 7, 2024
7.1.0 Nov 7, 2024
7.0.0 Jul 22, 2024
0.1.1 Jul 19, 2023

#220 in GUI

Download history 6/week @ 2024-10-23 36/week @ 2024-10-30 255/week @ 2024-11-06 44/week @ 2024-11-13 49/week @ 2024-11-20 50/week @ 2024-11-27 65/week @ 2024-12-04 92/week @ 2024-12-11 48/week @ 2024-12-18 70/week @ 2025-01-01 119/week @ 2025-01-08 49/week @ 2025-01-15 111/week @ 2025-01-22 39/week @ 2025-01-29 35/week @ 2025-02-05

304 downloads per month

MIT license

18KB
282 lines

Crates.io Documentation codecov Dependency status

egui_autocomplete

An extension to the egui::TextEdit that allows for a dropdown box with autocomplete to popup while typing.
You can select the suggestions with arrows keys + enter/tab or mouse clicks.

View web example here

To enable egui persistence, enable the serde feature


lib.rs:

Example

use egui_autocomplete::AutoCompleteTextEdit;
struct AutoCompleteExample {
  // User entered text
  text: String,
  // A list of strings to search for completions
  inputs: Vec<String>,
}

impl AutoCompleteExample {
  fn update(&mut self, _ctx: &egui::Context, ui: &mut egui::Ui) {
    ui.add(AutoCompleteTextEdit::new(
       &mut self.text,
       &self.inputs,
    ));
  }
}

Dependencies

~5–11MB
~95K SLoC