Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux handler: using custom tmux_session does not poll/complete #171

Closed
blueyed opened this issue May 12, 2016 · 5 comments
Closed

tmux handler: using custom tmux_session does not poll/complete #171

blueyed opened this issue May 12, 2016 · 5 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented May 12, 2016

I am trying to use a custom g:tmux_session (another tmux instance on another screen), but dispatch#tmux#poll is not called (because there's no VimResized event (

autocmd VimResized * nested if !has('gui_running') | call dispatch#tmux#poll() | endif
)), and therefore dispatch#complete also is not.

I am aware of https://github.com/radenling/vim-dispatch-neovim.git, but would like to use tmux in this case explicitly.
Would hooking into CursorHold be an option here? Or should support for this (background polling) be added to dispatch-neovim?

Manually calling dispatch#tmux#poll() works.

@tpope
Copy link
Owner

tpope commented May 12, 2016

Believe me I never would have bothered with VimResized if CursorHold was an acceptable solution. I'd rather disable foreground builds entirely if we can't use VimResized or something else reliable like vim --remote. Maybe Neovim has some other way it can be communicated back?

@tpope tpope closed this as completed in 5f5c22c May 12, 2016
@blueyed
Copy link
Contributor Author

blueyed commented May 12, 2016

Maybe Neovim has some other way it can be communicated back?

Yes, Neovim has the concepts of jobs already.
That's what dispatch-neovim is using, but then uses a terminal window for this.

What's your opinion on supporting Neovim directly?
Where would I have to poke to get it integrated?

@blueyed
Copy link
Contributor Author

blueyed commented May 12, 2016

Well, Vim has job_start by now also!

I've found this wrapper plugin https://github.com/prabirshrestha/async.vim/blob/master/autoload/async/job.vim.

@tpope
Copy link
Owner

tpope commented May 12, 2016

Since tmux split-window returns immediately, I'm not clear on how job_start helps.

@blueyed
Copy link
Contributor Author

blueyed commented May 12, 2016

It could be periodically restarted when polling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants