Closed kourylape closed 2 months ago
Sorry for the confusion. It seems my desired behavior can be had with the following config and excluding VimuxRunnerQuery all together:
vim.g.VimuxRunnerType = "pane"
vim.g.VimuxRunnerName = "vimuxout"
I do think the docs are little vague with how these options interact with each other. I had to figure it out by diving into the plugin's source.
I'm glad you figured it out. And clarifications to the docs are always welcome!
The docs for VimuxRunnerName calls out:
Tmux's doc for target-pane:
Example Config:
I know that's an invalid query, but it's not really called out without Tmux doc diving.
That config does update the pane's title to be vimuxout, but with https://github.com/preservim/vimux/blob/master/plugin/vimux.vim#L246. It's never going to work as a query.
It seems like there are two options:
list-panes -aF '#{pane_index}:#{pane_title}'
similar to nearestRunnerId(). I think the challenge would be you would to distinguish between a query that's{right-of}
versusvimux
versus0