preservim / vimux

easily interact with tmux from vim
MIT License
2.19k stars 158 forks source link

VimuxPromptCommand does not open a new split if there is an ongoing process in a different split #199

Open benediktms opened 3 years ago

benediktms commented 3 years ago

The VimuxPromptCommand does not create a new horizontal split below vim, if there is already a split open that has an ongoing process. Probably the best example of this would be starting a some sort of development server and having vim open in the second pane.

alerque commented 3 years ago

Are you talking about some split you opened manually or a previous one created by Vimux automatically?

benediktms commented 3 years ago

@alerque This is a split I opened manually

alerque commented 3 years ago

Okay I see what you mean. My usage is usually either to manage splits myself or let this do it for me in a dedicated window, but not mix and match like that.

I'd be happy to facilitate some kind of fix for this is somebody comes up with a PR, but it might be a while before I get around to it myself.

There is already a mechanism for using a specific pane name, what this probably entails is setting up the default to something the user won't have running already and checking for it even when a custom name is not specified. This may or make not make sense as the default but at least as a configuration option I'd be fine with including it to cover this usage scenario.

Care to take a stab at it yourself?

benediktms commented 3 years ago

@alerque I would be to be quite honest my knowledge with vimscript is extremely superficial (basically just enough to be able to manage my configs) :(

alerque commented 3 years ago

Fair enough. I guess we can hope somebody else sees this and feel like diving in...