vimpostor / vim-tpipeline

Embed your vim statusline in tmux
GNU General Public License v3.0
364 stars 10 forks source link

Restore original tmux status after switching to a non-vim window #37

Closed WilliamHsieh closed 1 year ago

WilliamHsieh commented 1 year ago

Describe the bug

Is there a way to restore the original tmux status line (both status-left and status-right) after switching to a non-vim tmux window?

To reproduce

  1. enter tmux
  2. start vim / nvim in a window
  3. switch to another tmux window
  4. both status-left and status-right are gone

Expected behavior

There should be a way to restore the user-defined status-left and status-right after switching out of vim.

Terminal emulator

alacritty

Debug output

No response

vimpostor commented 1 year ago

Yes, does let g:tpipeline_restore = 1 not work for you?

WilliamHsieh commented 1 year ago

It works! Thank's for your fast response!

sm00k3y commented 1 year ago

Is it possible to put this in the readme? I was looking for that option for way too long 🙏

Anyways, amazing plugin, thank you so much for it!