Comments (5)
Digging a bit more, the following two command hangs
sh ~/.vim/bundle/tmux-complete.vim/sh/tmuxcomplete -l '-a'
sh ~/.vim/bundle/tmux-complete.vim/sh/tmuxcomplete -p 'foo'
But this works fine initially, and hangs afterwords
sh ~/.vim/bundle/tmux-complete.vim/sh/tmuxcomplete -s lines
from tmux-complete.vim.
tmux capture-pane -p hangs for some reason, and it only happens in OSX, but not ubuntu.
from tmux-complete.vim.
The issue seems to be caused by the shell option. Setting it to /bin/sh and it works fine then. My SHELL is zsh, but it is wired that it works fine in ubuntu
from tmux-complete.vim.
@paulhybryant: Thanks for reaching out, but I don't really follow what was the issue here and would like to understand. I'm using OSX myself without any problems.
- What exactly did you do to make it hang?
- Does it hang when invoked in Vim as completion or when you run the script manually or both?
- What do you mean by "shell option"?
I'm guessing that it hangs when you invoke it from your terminal like this
sh ~/.vim/bundle/tmux-complete.vim/sh/tmuxcomplete -l '-a'
but it works fine when invoked like this:
/bin/sh ~/.vim/bundle/tmux-complete.vim/sh/tmuxcomplete -l '-a'
If that is the case, I would like to know what sh
is in your case. Could you run ls -a
which sh`` and try if any of these show anything interesting?
sh --version
sh -v
sh -V
Thanks!
from tmux-complete.vim.
@wellle Thanks for the reply.
To answer the first two questions, I use vim and it hangs in insert mode, when neocomplete kicks in. It takes a long time to gather complete candidates.
By shell options I mean the vim 'shell' option. e.g. set shell=/bin/sh
I think the reason it hangs is because if 'shell' is not set, it uses $SHELL, which is zsh in my case, and for some reason zsh causes the system() call in vim to be slow. By setting 'shell' to /bin/sh, everything works well.
from tmux-complete.vim.
Related Issues (20)
- gvim support HOT 1
- License? HOT 1
- New release tag HOT 1
- tmux-complete 0.1.0 not working with neocomplete HOT 16
- Strange behaviour HOT 5
- Integrate w/ deoplete? HOT 9
- tmux-complete outputs 'No tmux found' completion if no tmux instance is running HOT 3
- Flickering with deoplete HOT 3
- Cannot leave insert mode HOT 4
- Complete from all windows and all panes? HOT 4
- Provide an async api to work with other plugin like asyncomplete.vim HOT 9
- deoplete source: use async functionality HOT 3
- Trigger setting for coc? HOT 5
- deoplete source: expose relevant asynccomplete configuration options
- use allowlist for asyncomplete
- CoC specify suggest.completionItemKindLabels for Tmux source
- Only Completion for adjacent tmux panes
- Integrate with nvim-cmp
- Feature suggestion: copy all visible lines in specified tmux pane to buffer (I included a working implemention as example)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-complete.vim.