pub fn create_builtin(
        name: &str,
        key: Option<KeyEvent>,
        shortcut: Option<String>,
        description: &str
    ) -> Verb {
        Verb {
            invocation: VerbInvocation {
                key: name.to_string(),
                args: None,
            },
            key,
            args_parser: None,
            shortcut,
            execution: format!(":{}", name),
            description: Some(description.to_string()),
            from_shell: false,
            leave_broot: true, // ignored
            confirm: false,    // ignored
        }
    }
/// built-ins are verbs offering a logic other than the execution
///  based on exec_pattern. They mostly modify the appstate
built-ins are verbs offering a logic other than the execution
based on exec_pattern. They mostly modify the appstate
built - ins are verbs offering a logic other than the execution based on exec_pattern . They mostly modify the appstate
pub fn create_builtin(
        name: &str,
        key: Option<KeyEvent>,
        shortcut: Option<String>,
        description: &str
    ) -> Verb {
        Verb {
            invocation: VerbInvocation {
                key: name.to_string(),
                args: None,
            },
            key,
            args_parser: None,
            shortcut,
            execution: format!(":{}", name),
            description: Some(description.to_string()),
            from_shell: false,
            leave_broot: true, // ignored
            confirm: false,    // ignored
        }
    }
pub fn create_builtin ( name : & str , key : Option < KeyEvent > , shortcut : Option < String > , description : & str ) -> Verb { Verb { invocation : VerbInvocation { key : name . to_string ( ) , args : None , } , key , args_parser : None , shortcut , execution : format ! ( " " name ) , description : Some ( description . to_string ( ) ) , from_shell : false , leave_broot : true , // ignored confirm : false , // ignored } }
built-ins are verbs offering a logic other than the execution
based on exec_pattern.
built - ins are verbs offering a logic other than the execution based on exec_pattern .
name
&str
key
Option<KeyEvent>
shortcut
Option<String>
description
&str
name
&str
key
Option<KeyEvent>
shortcut
Option<String>
description
&str