use crate::SettingsUI;
use std::collections::HashSet;
mod coprocesses_section;
mod state;
mod triggers_section;
pub use state::AutomationTabState;
pub fn show(
ui: &mut egui::Ui,
settings: &mut SettingsUI,
changes_this_frame: &mut bool,
collapsed: &mut HashSet<String>,
) {
triggers_section::show_triggers_section(ui, settings, changes_this_frame, collapsed);
coprocesses_section::show_coprocesses_section(ui, settings, changes_this_frame, collapsed);
crate::scripts_tab::show(ui, settings, changes_this_frame, collapsed);
}
pub fn keywords() -> &'static [&'static str] {
&[
"trigger",
"triggers",
"regex",
"pattern",
"match",
"automation",
"automate",
"action",
"highlight",
"notify",
"notification",
"run command",
"play sound",
"send text",
"coprocess",
"coprocesses",
"pipe",
"subprocess",
"auto start",
"auto-start",
"mark line",
"set variable",
"variable",
"foreground",
"foreground color",
"prompt before run",
"prompt",
"confirm",
"dialog",
"split pane",
"split",
"pane",
"security",
"denylist",
"rate limit",
"dangerous",
"safe",
"restart",
"restart policy",
"restart delay",
"script",
"scripting",
"python",
"observer",
"event",
"external",
"panel",
"subscriptions",
"script path",
"arguments",
"args",
"start",
"stop",
"auto-launch",
"permission",
"allow",
"write text",
"change config",
"prompt before write text",
"confirm before write text",
"write text confirmation",
"inject text",
]
}