mod action_editor;
mod action_forms;
mod action_list;
use crate::SettingsUI;
use crate::section::section_matches;
use std::collections::HashSet;
use action_list::show_actions_section;
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,
"Actions",
&[
"action",
"custom",
"shell",
"command",
"text",
"insert",
"key",
"sequence",
"macro",
"keybinding",
"prefix",
"execute",
"run",
"split",
"pane",
],
) {
show_actions_section(ui, settings, changes_this_frame, collapsed);
}
}
pub fn keywords() -> &'static [&'static str] {
&[
"action",
"actions",
"custom action",
"shell command",
"new tab",
"text insert",
"key sequence",
"macro",
"automation",
"shortcut",
"keybinding",
"binding",
"record",
"title",
"name",
"arguments",
"split",
"split pane",
"pane",
"horizontal",
"vertical",
"workflow",
"sequence",
"condition",
"repeat",
"capture output",
"capture_output",
"exit code",
"step",
]
}