Respect value of g:VimuxRunnerIndex #235
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
This PR aims to solve an issue I have that is to select a specific pane to be the runner (any pane across all sessions). I found that the behavior to interact with the runner was slightly inconsistent and didn't quite allow for that.
The best solution I found was to select the runner through the
g:VimuxRunnerIndex
, but without these fixes I wasn't able to use it reliably sinceVimuxOpenRunner
would try to get a new runner every time andVimuxRunCommand
wouldn't recognize the pane unless it's on the current window.I tested most use cases and it seems to respect the old behavior. Let me know if you agree with this.
PS: This is how I'm using it btw using fzf to pick a pane from the current session (could be adapted to do the same for all sessions)