From a7bba9b77b627660a43e0ad31a6366a3e77e70d8 Mon Sep 17 00:00:00 2001 From: Eyal Firstenberg Date: Mon, 16 Nov 2015 12:24:30 +0200 Subject: [PATCH] Fix #54 allow users to filter out panes based on arbitrary strings --- plugin/slimux.vim | 4 ++++ 1 file changed, 4 insertions(+) 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 )