pub fn create_oneoff_output_buffer(&mut self) -> (Buffer, PathBuf) {
            let ApiActions { nvim_conn: NeovimConnection { nvim_actions, initial_buf_number, .. }, nvim_ctx } = self;
            let buf = if nvim_ctx.outp_buf_usage.is_create_split() {
                nvim_actions.create_split_output_buffer(&nvim_ctx.opt)
            } else {
                nvim_actions.create_substituting_output_buffer()
            };
            let buf_pty_path = nvim_actions.get_current_buffer_pty_path();
            let cmd_provided_by_user = nvim_ctx.opt.command.as_deref().unwrap_or_default();
            nvim_actions.prepare_output_buffer(
                *initial_buf_number,
                &cmd_provided_by_user,
                &nvim_ctx.opt.filetype,
                &nvim_ctx.page_id,
                nvim_ctx.opt.pwd,
                nvim_ctx.opt.query_lines,
            );
            (buf, buf_pty_path)
        }
/// Creates a new output buffer using split window if required.
/// Also sets some nvim options for better reading experience
Creates a new output buffer using split window if required.
Also sets some nvim options for better reading experience
Creates a new output buffer using split window if required . Also sets some nvim options for better reading experience
pub fn create_oneoff_output_buffer(&mut self) -> (Buffer, PathBuf) {
            let ApiActions { nvim_conn: NeovimConnection { nvim_actions, initial_buf_number, .. }, nvim_ctx } = self;
            let buf = if nvim_ctx.outp_buf_usage.is_create_split() {
                nvim_actions.create_split_output_buffer(&nvim_ctx.opt)
            } else {
                nvim_actions.create_substituting_output_buffer()
            };
            let buf_pty_path = nvim_actions.get_current_buffer_pty_path();
            let cmd_provided_by_user = nvim_ctx.opt.command.as_deref().unwrap_or_default();
            nvim_actions.prepare_output_buffer(
                *initial_buf_number,
                &cmd_provided_by_user,
                &nvim_ctx.opt.filetype,
                &nvim_ctx.page_id,
                nvim_ctx.opt.pwd,
                nvim_ctx.opt.query_lines,
            );
            (buf, buf_pty_path)
        }
pub fn create_oneoff_output_buffer ( & mut self ) -> ( Buffer , PathBuf ) { let ApiActions { nvim_conn : NeovimConnection { nvim_actions , initial_buf_number , .. } , nvim_ctx } = self ; let buf = if nvim_ctx . outp_buf_usage . is_create_split ( ) { nvim_actions . create_split_output_buffer ( & nvim_ctx . opt ) } else { nvim_actions . create_substituting_output_buffer ( ) } ; let buf_pty_path = nvim_actions . get_current_buffer_pty_path ( ) ; let cmd_provided_by_user = nvim_ctx . opt . command . as_deref ( ) . unwrap_or_default ( ) ; nvim_actions . prepare_output_buffer ( * initial_buf_number , & cmd_provided_by_user , & nvim_ctx . opt . filetype , & nvim_ctx . page_id , nvim_ctx . opt . pwd , nvim_ctx . opt . query_lines , ) ; ( buf , buf_pty_path ) }
Creates a new output buffer using split window if required.
Creates a new output buffer using split window if required .
&mut self
&mut self