-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you set what pane to use dynamically? #129
Comments
Setting A way to create a new pane and set it as your vimux pane would be the following: function! VimuxCreateNewPane()
" Creates new Tmux pane
let splitExitCode = system("tmux split-window")
" Set the proper index
let g:VimuxRunnerIndex = _VimuxTmuxIndex()
call _VimuxTmux("last-"._VimuxRunnerType())
endfunction When you run |
Has this question been satisfactorily answered? Is this utility function something that should get contributed to the core and documented for ease of use and discovery or are we good here? |
@alerque the example would at minimum need to updated as the function names have changed. In addition it should be possible to use vimux's Alternatively adding arguments to override the default options could make it even simpler and avoid modifying global scope for a temporary and dynamic function call. |
Thanks for jumping in @lejeunerenard. Yes all the underscored "private" functions got renamed to be actually scoped to the plugin ( That caveat aside, I do like your ideas about how to make this easier to accomplish. Any chance you'd be interested in whipping up a PR that contributes the necessary change by adding arguments? P.S. Dynamically settings options (aka preference values that are |
Will I be able to set the pane dynamically?
Say my default config is to use the nearest pane but sometimes I want it to open a new pane instead. How would I go on about this?
The text was updated successfully, but these errors were encountered: