Skip to main content

bind_pane_open

Function bind_pane_open 

Source
pub(crate) async fn bind_pane_open(
    state: &AppState,
    cmd: &mut CommandPaneOpenData,
) -> Result<Option<PathBuf>, String>
Expand description

pane.open from a confined pane: only a file inside its folder, opened in an Editor. Its path is replaced by the resolved one, and the answer is the pane’s folder (none: the open is from no such pane).