From e8abf1ae69c598041227079fb90bef343e0ad514 Mon Sep 17 00:00:00 2001 From: Chris Toomey Date: Wed, 31 Dec 2014 14:12:25 -0500 Subject: [PATCH] Remove ZoomRunnerPane in favor of FocusRunnerPane The functionality was largely duplicated across the commands, and with regard to naming, `FocusRunnerPane` better maps to how I use it. Closes #35 - Unify Focus & Zoom runner pane functions --- doc/vim-tmux-runner.txt | 15 --------------- plugin/vim-tmux-runner.vim | 10 ---------- 2 files changed, 25 deletions(-) diff --git a/doc/vim-tmux-runner.txt b/doc/vim-tmux-runner.txt index a52d430..30fb166 100644 --- a/doc/vim-tmux-runner.txt +++ b/doc/vim-tmux-runner.txt @@ -21,7 +21,6 @@ CONTENTS *vtr-contents* 2.11 ............................... |VtrClearRunner| 2.12 ............................... |VtrFlushCommand| 2.13 ............................... |VtrSendCtrlD| - 2.14 ............................... |VtrZoomRunnerPane| 3. Configuration ................... |VTR-Configuration| 3.1 ................................ |VtrPercentage| 3.2 ................................ |VtrOrientation| @@ -218,20 +217,6 @@ Send Ctrl-D key sequence to the runner without resetting the current command. This is useful if you are repeatedly running a script in the debugger and regularly need to kill the repl. ------------------------------------------------------------------------------- - *VtrZoomRunnerPane* -2.12 VtrZoomRunnerPane~ - -Zoom the runner pane using the native zooming functionality from tmux 1.8. -This will cause the runner pane to temporarily occupy the entire tmux window. -This is useful for temporarily viewing the pane in a larger context, ie to see -a long bracktrace. - -You can add the following mapping to your ~/.tmux.conf file to enable quick -toggling of the zoom functionality: - - bind C-p run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys ':VtrZoomRunnerPane' 'C-m') || tmux select-pane -l" - ============================================================================== CONFIGURATION (3) *VTR-Configuration* diff --git a/plugin/vim-tmux-runner.vim b/plugin/vim-tmux-runner.vim index 51b4b7f..b0338b0 100644 --- a/plugin/vim-tmux-runner.vim +++ b/plugin/vim-tmux-runner.vim @@ -121,14 +121,6 @@ function! s:FocusRunnerPane() call s:SendTmuxCommand("resize-pane -Z") endfunction -function! s:ZoomRunnerPane() - if !s:RequireRunnerPane() | return | endif - let copy_mode_cmd = s:TargetedTmuxCommand("copy-mode", s:runner_pane) - let zoom_command = s:TargetedTmuxCommand("resize-pane -Z", s:runner_pane) - call s:SendTmuxCommand(copy_mode_cmd) - call s:SendTmuxCommand(zoom_command) -endfunction - function! s:Strip(string) return substitute(a:string, '^\s*\(.\{-}\)\s*\n\?$', '\1', '') endfunction @@ -391,7 +383,6 @@ function! s:DefineCommands() command! VtrFlushCommand call s:FlushCommand() command! VtrSendCtrlD call s:SendCtrlD() command! VtrAttachToPane call s:PromptForRunnerToAttach() - command! VtrZoomRunnerPane call s:ZoomRunnerPane() endfunction function! s:DefineKeymaps() @@ -407,7 +398,6 @@ function! s:DefineKeymaps() nnoremap dr :VtrDetachRunner nnoremap cr :VtrClearRunner nnoremap fc :VtrFlushCommand - nnoremap zr :VtrZoomRunnerPane endif endfunction