Skip to content

Commit 8c68969

Browse files
committed
Set window title in tmux panes
What is up with that hostname default? tmux is a poster child for bad taste.
1 parent 6a197e5 commit 8c68969

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/dispatch/tmux.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function! dispatch#tmux#handle(request) abort
2626
let command .= ' -d'
2727
endif
2828
let command .= ' ' . shellescape('exec ' . dispatch#isolate(
29-
\ ['TMUX', 'TMUX_PANE'], dispatch#prepare_start(a:request)))
29+
\ ['TMUX', 'TMUX_PANE'],
30+
\ dispatch#set_title(a:request),
31+
\ dispatch#prepare_start(a:request)))
3032
call system(command)
3133
return 1
3234
endif
@@ -37,6 +39,7 @@ function! dispatch#tmux#make(request) abort
3739
\ && a:request.format !~# '%\\[er]'
3840
let session = get(g:, 'tmux_session', '')
3941
let script = dispatch#isolate(['TMUX', 'TMUX_PANE'],
42+
\ dispatch#set_title(a:request),
4043
\ call('dispatch#prepare_make', [a:request] +
4144
\ (pipepane ? [a:request.expanded . '; echo $? > ' . a:request.file . '.complete'] : [])))
4245

0 commit comments

Comments
 (0)