-
Notifications
You must be signed in to change notification settings - Fork 159
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
Re-use the vimux pane over sessions #70
Comments
I think what you're taking about is |
Nope, |
Obviously it would make these two options kind of mutually exclusive. |
Bump. What's your opinion on this? |
I understand what you're looking for, but I'm worried that it's adding too much complexity to vimux. Just to make sure I'm clear, you want to persist the global vim variable that holds the pane id so that it is the same between vim restarts? This is how I think I would do this without adding it to vimux: If you check out where I actually target the pane to send the text to it here I use the global variable let g:VimuxRunnerPaneIndex = readfile("/tmp/vimux_runner_pane_index")[0] This is obviously pretty brittle and you could harden it a bit by checking to make sure the contents of the tmp file is an integer and that it is a tmux pane that exists in the current window. (You might be able to just use this function that I use internally [1] https://github.com/benmills/vimux/blob/master/plugin/vimux.vim#L145 |
Thanks for coming to this. On 06/21/2013 12:55 AM, Ben Mills wrote:
Well, almost, pane_id per tmux-window/session.
This would not quite work as it would only make sense if you ever have
Well, this is exactly what is wrong: you need to look at pane_id not, pane_id is unique for the whole session, pane_index changes when you Anyway, I don't think this is that complex. I'll try to implement this |
Might this issue be addressed by the upcoming contribution in #138? |
Closed by #180 |
Hi,
First of all, pretty awesome plugin, good integration with a proper shell is something I've always been jealous of Emacs users and this is at least some steps in that direction.
What I'm missing though is the ability to do this:
This would allow to have a kind of "dedicated" tmux pane which acts as REPL. This could be a configurable option such as
VimuxUniquePane
.The only problem is that it's kind of hard to access pane's in tmux, but there are two hackish approaches:
VimuxPane
and add a check to look if one exists next time vimux is used. Note that the pane title is not set or maintained by tmux, it's the title set by the OSC title setting sequence, so potentially it can be changed by something running in the shell, which is not nice.I think the second approach is much less hackish, but then the pane ID needs to be stored somewhere.
EDIT: I guess
viminfo
could be used for that?:help viminfo
If you would agree with such a feature I could contribute a patch for this.
The text was updated successfully, but these errors were encountered: