broot 1.56.2

File browser and launcher
Documentation
mod coarity;
//mod arg_def;
mod exec_pattern;
mod execution_builder;
mod external_execution;
mod external_execution_mode;
mod file_type_condition;
mod internal;
mod internal_execution;
pub mod internal_focus;
pub mod internal_path;
pub mod internal_select;
mod invocation_parser;
mod sequence_execution;
mod verb;
mod verb_arg_def;
mod verb_description;
mod verb_execution;
mod verb_invocation;
mod verb_store;
mod write;

use lazy_regex::*;
pub use {
    coarity::*,
    //arg_def::*,
    exec_pattern::*,
    execution_builder::*,
    external_execution::*,
    external_execution_mode::ExternalExecutionMode,
    file_type_condition::*,
    internal::Internal,
    internal_execution::InternalExecution,
    invocation_parser::InvocationParser,
    once_cell::sync::Lazy,
    sequence_execution::SequenceExecution,
    verb::Verb,
    verb_arg_def::*,
    verb_description::VerbDescription,
    verb_execution::VerbExecution,
    verb_invocation::*,
    verb_store::{
        PrefixSearchResult,
        VerbStore,
    },
    write::*,
};


pub type VerbId = usize;

pub fn str_has_selection_group(s: &str) -> bool {
    ARG_DEF_GROUP.find_iter(s).any(|group| {
        matches!(
            group.as_str(),
            "{file}" | "{file-name}" | "{parent}" | "{directory}",
        )
    })
}
pub fn str_has_other_panel_group(s: &str) -> bool {
    for group in ARG_DEF_GROUP.find_iter(s) {
        if group.as_str().starts_with("{other-panel-") {
            return true;
        }
    }
    false
}