File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -375,5 +375,17 @@ redefine this if you're using something like tmate.
375
375
376
376
Default: "tmux"
377
377
378
+ ------------------------------------------------------------------------------
379
+ *VimuxOpenExtraArgs*
380
+ 2.8 g:VimuxOpenExtraArgs~
381
+
382
+ Allows addtional arguments to be passed to the tmux command that opens the
383
+ runner. Make sure that the arguments specified are valid depending on whether
384
+ you're using panes or windows, and your version of tmux.
385
+
386
+ let g:VimuxOpenExtraArgs = "-c #{pane_current_path}"
387
+
388
+ Default: "tmux"
389
+
378
390
==============================================================================
379
391
vim:tw=78:ts=2:sw=2:expandtab:ft=help:norl:
Original file line number Diff line number Diff line change 14
14
15
15
command -nargs =* VimuxRunCommand :call VimuxRunCommand (<args> )
16
16
command VimuxRunLastCommand :call VimuxRunLastCommand ()
17
+ command VimuxOpenRunner :call VimuxOpenRunner ()
17
18
command VimuxCloseRunner :call VimuxCloseRunner ()
18
19
command VimuxZoomRunner :call VimuxZoomRunner ()
19
20
command VimuxInspectRunner :call VimuxInspectRunner ()
@@ -80,12 +81,13 @@ function! VimuxOpenRunner()
80
81
if _VimuxOption (" g:VimuxUseNearest" , 1 ) == 1 && nearestIndex != -1
81
82
let g: VimuxRunnerIndex = nearestIndex
82
83
else
84
+ let extraArguments = _VimuxOption (" g:VimuxOpenExtraArgs" , " " )
83
85
if _VimuxRunnerType () == " pane"
84
86
let height = _VimuxOption (" g:VimuxHeight" , 20 )
85
87
let orientation = _VimuxOption (" g:VimuxOrientation" , " v" )
86
- call _VimuxTmux (" split-window -p " .height." -" .orientation)
88
+ call _VimuxTmux (" split-window -p " .height." -" .orientation. " " .extraArguments )
87
89
elseif _VimuxRunnerType () == " window"
88
- call _VimuxTmux (" new-window" )
90
+ call _VimuxTmux (" new-window " .extraArguments )
89
91
endif
90
92
91
93
let g: VimuxRunnerIndex = _VimuxTmuxIndex ()
You can’t perform that action at this time.
0 commit comments