wellle / tmux-complete.vim

Vim plugin for insert mode completion of words in adjacent tmux panes
MIT License
515 stars 21 forks source link

Complete from all windows and all panes? #75

Closed kdheepak closed 7 years ago

kdheepak commented 7 years ago

Do you know if this will be possible / do you think there is interest in implementing this feature? Currently, it appears it only completes from adjacent panes, is that correct? Perhaps a feature where it completes from all panes and all windows could be added as an optional feature.

wellle commented 7 years ago

@kdheepak: It's already capable of doing that. I just tested again and was able to complete a words from a different window and a different session. I was using the plugin on its own and triggered it with the default C-XX-U combo.

Could it be that you're using a completion plugin integration? If so, which one?

kdheepak commented 7 years ago

I see. It's possible that it's because of that. I'm using deocomplete

wellle commented 7 years ago

Hmm, I tried it with deoplete. I'm using this setup:

Plug '~/code/tmux-complete.vim' " local version version for development, up to date with origin/master
Plug 'Shougo/deoplete.nvim'
let g:deoplete#enable_at_startup = 1

And it works for me. I'm using Vim in a tmux pane next to one where I typed aaaccc. In a different window I'm having aaaddd. And in another session aaabbb. When I type aaa in Vim I'm getting all three suggestions.

Can you try the same setup?

kdheepak commented 7 years ago

Thanks for looking into this in so much detail. I'm able to replicate this example fine. It could be an issue with another plugin (would another plugin even affect this?). Or perhaps it's a long running session / lots of text that causes this. I'll see if I can isolate the issue and post a minimal working example that you can work with the next time I encounter this. I will close this now. Thanks again for the quick responses!