pub fn open_with_hook(
path: &Path,
cmd: &str,
init: &str,
background: bool,
) -> Result<bool>Expand description
Open path with command and run init_script inside the resulting window.
ยงErrors
Returns an error if the editor or terminal command fails to spawn.