Skip to main content

action_command

Function action_command 

Source
pub fn action_command(template: &str, path: &Path) -> Vec<String>
Expand description

Build a command line for a custom context-menu action on path.

The template is tokenized on whitespace. Literal {path} is replaced with the row’s full path and {dir} with the directory row itself (or, for a file row, its parent). When the template has neither marker, the row’s path is appended as the trailing argument.