iam4x / zsh-iterm-touchbar

Display feedback of terminal in the 🍏 Touchbar
MIT License
689 stars 75 forks source link

tmux support #9

Closed amdprophet closed 7 years ago

amdprophet commented 7 years ago

These features don't seem to work when in a tmux session. Is this a limitation of iTerm2 or is there some way support can be added to this project?

iam4x commented 7 years ago

Hello @amdprophet I have no knowledge about tmux. I think it's feasable since I made a Exit+Save button for vim that way:

~/.vimrc

autocmd VimEnter * silent !echo -ne "\033]1337;PopKeyLabels\a"
autocmd VimEnter * silent !echo -ne "\033]1337;SetKeyLabel=F1=Save & Quit\a"
autocmd VimEnter * map <F1> :wq<CR>
autocmd VimEnter * silent !echo -ne "\033]1337;SetKeyLabel=F2=Quit\a"
autocmd VimEnter * map <F2> :q!<CR>

Does that can help you?

TheRockyOng commented 7 years ago

tmux apparently absorbs all those escape sequence. Not sure what the best way to make it bypasses tmux

iam4x commented 7 years ago

Merged 👍

sandrodz commented 6 years ago

It doesn't work for me in tmux. I'm inside a box via ssh that has tmux, could that be a problem?

seajaysec commented 6 years ago

Not working for me in local tmux.