little bug with tmux runner

This commit is contained in:
Wryn (yage) Wagner 2022-08-23 13:57:14 -06:00
parent 0bd8c18086
commit 9b09991599
2 changed files with 8 additions and 7 deletions

View File

@ -46,10 +46,11 @@ function GetCommandString(args, flavor, output)
if stridx(a:output, 'tmux') != -1 if stridx(a:output, 'tmux') != -1
let command = command.";" let command = command.";"
\ . "echo \"-----------------------------\" | lolcat;" \ . " echo \"-----------------------------\" | lolcat;"
\ . "echo \"(ENTER to close, C^c to stay)\";" \ . " echo \"(ENTER to close, C^c to stay)\";"
\ . "read </dev/tty;" \ . " read </dev/tty;"
\ . "tmux detach-client -s".g:escapeTmuxSession.";" \ . " tmux detach-client" " omit final ';'
echom command
endif endif
if stridx(a:output, 'split-pane') == -1 if stridx(a:output, 'split-pane') == -1
@ -61,7 +62,7 @@ endfunction
function GetPrefferredCommandOutput() function GetPrefferredCommandOutput()
for output in g:escapeCommandOutputs for output in g:escapeCommandOutputs
if stridx(output, 'tmux') && executable('tmux') if stridx(output, 'tmux') != -1 && executable('tmux')
return output return output
elseif stridx(output, 'split-pane') != -1 && v:version >= 800 elseif stridx(output, 'split-pane') != -1 && v:version >= 800
return output return output

View File

@ -57,8 +57,8 @@ nnoremap <Leader>rs q:oechom 'quickrepl' \| call ExecuteCommand('zsh -l', 'split
" \t = run last quicktest " \t = run last quicktest
" t)ype new quicktest " t)ype new quicktest
" e)dit last quicktest " e)dit last quicktest
nnoremap <Leader>t q:?^echom 'quicktest'<CR><CR> nnoremap <Leader>t q:?^echom 'quicktest'<CR><CR><CR>
nnoremap <Leader>tt q:oechom 'quicktest' \| call SplitPaneTest('')<ESC>F'i nnoremap <Leader>tt q:oechom 'quicktest' \| call ExecuteCommand('')<ESC>F'i
nnoremap <Leader>te q:?^echom 'quicktest'<CR> nnoremap <Leader>te q:?^echom 'quicktest'<CR>
" ./utility.vim " ./utility.vim