vimux icon indicating copy to clipboard operation
vimux copied to clipboard

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

Open benediktms opened this issue 4 years ago • 5 comments

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.

benediktms avatar Jul 10 '21 07:07 benediktms

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

alerque avatar Jul 10 '21 09:07 alerque

@alerque This is a split I opened manually

benediktms avatar Jul 10 '21 09:07 benediktms

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?

alerque avatar Jul 10 '21 09:07 alerque

@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) :(

benediktms avatar Jul 10 '21 11:07 benediktms

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

alerque avatar Jul 10 '21 18:07 alerque