@@ -16,6 +16,7 @@ let g:VimuxTmuxCommand = get(g:, 'VimuxTmuxCommand', 'tmux')
16
16
let g: VimuxUseNearest = get (g: , ' VimuxUseNearest' , v: true )
17
17
let g: VimuxExpandCommand = get (g: , ' VimuxExpandCommand' , v: false )
18
18
let g: VimuxCloseOnExit = get (g: , ' VimuxCloseOnExit' , v: false )
19
+ let g: VimuxCommandShell = get (g: , ' VimuxCommandShell' , v: true )
19
20
20
21
function ! VimuxOption (name) abort
21
22
return get (b: , a: name , get (g: , a: name ))
@@ -175,7 +176,12 @@ endfunction
175
176
176
177
function ! VimuxPromptCommand (... )
177
178
let command = a: 0 == # 1 ? a: 1 : ' '
178
- let l: command = input (VimuxOption (' VimuxPromptString' ), command , ' shellcmd' )
179
+ if VimuxOption (' VimuxCommandShell' )
180
+ let l: cancelreturn = ' shellcmd'
181
+ else
182
+ let l: cancelreturn = v: false
183
+ endif
184
+ let l: command = input (VimuxOption (' VimuxPromptString' ), command , l: cancelreturn )
179
185
if VimuxOption (' VimuxExpandCommand' )
180
186
let l: command = join (map (split (l: command , ' ' ), ' expand(v:val)' ), ' ' )
181
187
endif
0 commit comments