use super::SettingsUI;
use super::section::section_matches;
use std::collections::HashSet;
mod editor;
mod list;
pub fn show(
ui: &mut egui::Ui,
settings: &mut SettingsUI,
changes_this_frame: &mut bool,
collapsed: &mut HashSet<String>,
) {
let query = settings.search_query.trim().to_lowercase();
if section_matches(
&query,
"Scripts",
&[
"script",
"scripting",
"observer",
"event",
"subprocess",
"python",
"panel",
],
) {
list::show_scripts_section(ui, settings, changes_this_frame, collapsed);
}
}
pub fn keywords() -> &'static [&'static str] {
&[
"script",
"scripting",
"python",
"automation",
"observer",
"event",
"subprocess",
"external",
"panel",
"subscriptions",
"script path",
"arguments",
"args",
"start",
"stop",
"auto-start",
"auto start",
"auto-launch",
"restart",
"restart policy",
"restart delay",
"permission",
"allow",
"write text",
"run command",
"change config",
"rate limit",
]
}