pub fn display_files(&mut self) {
            let ApiActions { nvim_conn: NeovimConnection { nvim_actions, initial_buf_number, initial_win_and_buf, .. }, nvim_ctx } = self;
            for f in &nvim_ctx.opt.files {
                if let Err(e) = nvim_actions.open_file_buffer(f) {
                    log::warn!(target: "page file", "Error opening \"{}\": {}", f, e);
                } else {
                    let cmd_provided_by_user = &nvim_ctx.opt.command.as_deref().unwrap_or_default();
                    nvim_actions.prepare_file_buffer(*initial_buf_number, cmd_provided_by_user);
                    if nvim_ctx.opt.follow_all {
                        nvim_actions.set_current_buffer_follow_output_mode();
                    } else {
                        nvim_actions.set_current_buffer_scroll_mode();
                    }
                }
            }
            if nvim_ctx.is_split_flag_given_with_files() {
                nvim_actions.switch_to_window_and_buffer(&initial_win_and_buf)
            }
        }
/// Opens each file provided as free arguments in separate buffers.
/// Resets focus to initial buffer and window if further there will be created output buffer in split window,
/// since we want to see shell from which that output buffer was spawned
Opens each file provided as free arguments in separate buffers.
Resets focus to initial buffer and window if further there will be created output buffer in split window,
since we want to see shell from which that output buffer was spawned
Opens each file provided as free arguments in separate buffers . Resets focus to initial buffer and window if further there will be created output buffer in split window since we want to see shell from which that output buffer was spawned
pub fn display_files(&mut self) {
            let ApiActions { nvim_conn: NeovimConnection { nvim_actions, initial_buf_number, initial_win_and_buf, .. }, nvim_ctx } = self;
            for f in &nvim_ctx.opt.files {
                if let Err(e) = nvim_actions.open_file_buffer(f) {
                    log::warn!(target: "page file", "Error opening \"{}\": {}", f, e);
                } else {
                    let cmd_provided_by_user = &nvim_ctx.opt.command.as_deref().unwrap_or_default();
                    nvim_actions.prepare_file_buffer(*initial_buf_number, cmd_provided_by_user);
                    if nvim_ctx.opt.follow_all {
                        nvim_actions.set_current_buffer_follow_output_mode();
                    } else {
                        nvim_actions.set_current_buffer_scroll_mode();
                    }
                }
            }
            if nvim_ctx.is_split_flag_given_with_files() {
                nvim_actions.switch_to_window_and_buffer(&initial_win_and_buf)
            }
        }
pub fn display_files ( & mut self ) { let ApiActions { nvim_conn : NeovimConnection { nvim_actions , initial_buf_number , initial_win_and_buf , .. } , nvim_ctx } = self ; for f in & nvim_ctx . opt . files { if let Err ( e ) = nvim_actions . open_file_buffer ( f ) { log :: warn ! ( target " " " \" \" " f e ) ; } else { let cmd_provided_by_user = & nvim_ctx . opt . command . as_deref ( ) . unwrap_or_default ( ) ; nvim_actions . prepare_file_buffer ( * initial_buf_number , cmd_provided_by_user ) ; if nvim_ctx . opt . follow_all { nvim_actions . set_current_buffer_follow_output_mode ( ) ; } else { nvim_actions . set_current_buffer_scroll_mode ( ) ; } } } if nvim_ctx . is_split_flag_given_with_files ( ) { nvim_actions . switch_to_window_and_buffer ( & initial_win_and_buf ) } }
Opens each file provided as free arguments in separate buffers.
Opens each file provided as free arguments in separate buffers .
&mut self
&mut self