Skip to content

Commit

Permalink
Fix esamattis#54 allow users to filter out panes based on arbitrary s…
Browse files Browse the repository at this point in the history
…trings
  • Loading branch information
Eyal Firstenberg committed Nov 16, 2015
1 parent f8ae770 commit a7bba9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/slimux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit a7bba9b

Please sign in to comment.