blueyed / vim-diminactive

Vim plugin to dim inactive windows
336 stars 12 forks source link

Feature request: Tmux support. If I leave the vim pane, dim all the buffers #17

Closed sagotsky closed 8 years ago

sagotsky commented 8 years ago

I'm using vim-tmux-navigator to leave my vim pane. I don't think that actually matters for implementation but it might provide some hints on detecting when a pane switch occurs.

blueyed commented 8 years ago

See https://github.com/blueyed/vim-diminactive/pull/16 and #8.

Does that help?

blueyed commented 8 years ago

Apart from that, I am using vim-tmux-navigator myself, and we could use some callback / hook for this. OTOH using tmux directly seems to be better.

sagotsky commented 8 years ago

Maybe? I'll get back to you on those options.

On Thu, Oct 22, 2015 at 12:09 PM, Daniel Hahler notifications@github.com wrote:

Apart from that, I am using vim-tmux-navigator myself, and we could use some callback / hook for this. OTOH using tmux directly seems to be better.

— Reply to this email directly or view it on GitHub https://github.com/blueyed/vim-diminactive/issues/17#issuecomment-150273750 .

sagotsky commented 8 years ago

Sorry about the delay. https://github.com/tmux-plugins/vim-tmux-focus-events says it's not working with neovim yet. Oh well.

On Thu, Oct 22, 2015 at 1:21 PM, Jon Sagotsky sagotsky@gmail.com wrote:

Maybe? I'll get back to you on those options.

On Thu, Oct 22, 2015 at 12:09 PM, Daniel Hahler notifications@github.com wrote:

Apart from that, I am using vim-tmux-navigator myself, and we could use some callback / hook for this. OTOH using tmux directly seems to be better.

— Reply to this email directly or view it on GitHub https://github.com/blueyed/vim-diminactive/issues/17#issuecomment-150273750 .

blueyed commented 8 years ago

16 has been merged and works for me - also for Neovim.

See also https://github.com/blueyed/vim-diminactive/pull/23 for skipping this when going to another window.