Function moras::menu::file::new_tab

source ยท
fn new_tab(
    event: &WindowMenuEvent,
    file_path: &Path,
) -> Result<(), Box<dyn Error>>
Expand description

Create a new tab with the file in provided file path

Return None if success, Some(err) if failed. If success, will set the current tab name to the opened file path.