vimux
vimux copied to clipboard
VimuxOpenRunner doesn't work any more
It seems that my nvim/vimux setup is broken with https://github.com/preservim/vimux/pull/217. If I run VimuxOpenRunner it silently fails, meaning that no terminal is opened.
Once I revert this change locally, my setup works again, meaning that terminal is opened as expected.
Tmux version 3.0a/ Ubuntu 20.04
Will provide more details upon request/once I have more time to check details.
Some more details would be helpful, can you share your configuration?
Steps to reproduce on Ubuntu 20.04 with tmux 3.0a
cd ~/.vim/
mkdir -p pack/vimux/start
git clone https://github.com/preservim/vimux
vim -V9/tmp/vim.txt
produces
if you do
:VimuxOpenRunner
The problematic command is
tmux split-window -l 20% -v
See
Though -l size seems to be supported
but seems to be only for absolute values
Naive approach for fixing this issue is to check the exit code of this command and if it fails then issue the other command. I guess, it would be helpful in any case to check exit code and not only silently fail in this case. What do you think?
Ahh, thank you. I think I'll put a conditional in there based on the tmux version.
You know what... should we just say that it's up to the user to decide whether to include the percent sign? This will be a bit of a hiccup when the plugin is updated, since setting let g:VimuxHeight = "20" will have to change to let g:VimuxHeight = "20%".
hi! is this change going to be merged? I just found this same issue with tmux 3
is this change going to be merged?
Which change? This is not a PR and I don't see any PRs related to this issue. Contributions welcome. I am not actively developing this plugin but this @preservim org exists to facilitate contributions getting applied so plugins stay maintained as long as contributions flow in. Feel free to jump in.
I don't see any PR either. I was basically asking if anyone was working on this. I'm happy to do a PR. I'll send it this weekend
Yeah sorry, I got distracted by the CI issues on this repo and forgot about this. It would be great to see a PR! We do now check for errors in system calls as of #222 so that could be helpful here.
no worries! just sent a PR. English is not my first language so I'm not sure if the update to the docs sounds natural
Thank you! This does mildly break the config for users who have a custom value for the height option, but the fix is easy and this keeps things simpler going forward.