diff --git a/plugin/slimux.vim b/plugin/slimux.vim index 273530d..1fcab81 100644 --- a/plugin/slimux.vim +++ b/plugin/slimux.vim @@ -137,6 +137,10 @@ function! s:SelectPane(tmux_packet, ...) let l:command .= " | grep -E -v " . shellescape("^" . l:current_pane_id, 1) endif + if exists("g:slimux_filter_out_panes") + let l:command .= " | grep -v '" . g:slimux_filter_out_panes . "'" + endif + " Warn if no additional pane is found let l:no_panes_warning = "No additional panes found" if s:vim_inside_tmux == 1 && ( exists("g:slimux_select_from_current_window") && g:slimux_select_from_current_window == 1 )