Skip to content
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

TPM seems to be installed but the suggested key bindings don't work for me. #8

Closed
reconstructions opened this issue Sep 11, 2014 · 6 comments

Comments

@reconstructions
Copy link

I can't get tpm working. If I run tmux with the suggested tmux.conf file in OS X iTerm and then issue the command tmux source-file ~/.tmux.conf, I get the following output:

temp

But if I then use my prefix (ctrl-a) with the command to install plugins ( I, i.e. uppercase letter i ) like this: ctrl-a-shift-i, nothing happens.

I see lots of reports of problems or incompatibilities when attempting to use the shift key with tmux key bindings, and every one of the many commands I have successfully used with tmux is lower case. I would appreciate some suggestions for syntax to set another binding for this.

Looking at the README for resurrection, I notice that the instructions say one should use prefix + ctrl-s to save. To me this reads as ctrl-a-ctrl-s, which is of course impossible. Do you mean prefix + s?

I would love to get this working, thanks in advance.

@reconstructions reconstructions changed the title TPM seems to be installed but the suggest key bindings do nothing. TPM seems to be installed but the suggested key bindings don't work for me. Sep 11, 2014
@reconstructions
Copy link
Author

Totally weird. I am still not able to get ctrl-a-shift-I (my prefix is ctrl-a) to run the plugin installer (or at least, if it runs, it doesn't provide any feedback that I could see), but now when I press ctrl-a-shift-s (NOT ctrl-a + ctrl-s) I get a Tmux environment saved notice, and when I press ctrl-a-shift-r (NOT ctrl-a-ctrl-r) it gives a Tmux restore complete notice about half the time. Otherwise it kicks off (reverse-i-search), which I don't want.

It looks like resurrect is running, but I have stumbled on these key bindings by chance, and they aren't the same as in the README. Those don't work.

The only mapping in my tmux.conf is the following:

set -g prefix C-a
unbind C-b
bind C-a send-prefix

I would still love to know the syntax to get rid of these convoluted bindings...

@reconstructions
Copy link
Author

When I restart tmux, however, it quits with [exited], which I gather is likely to mean a bad tmux.conf. So it seems like tpm and resurrect are somehow half installed but borked.

I am running bash on OS X, should I have run-shell ~/.tmux/plugins/tpm/tpm in my tmux.conf? I saw another issue which suggested not, but the syntax mentioned there didn't work either.

@reconstructions
Copy link
Author

If I comment out run-shell ~/.tmux/plugins/tpm/tpm in my tmux.conf, I can run tmux, then uncomment this line, then use the command tmux source-file ~/.tmux.conf within tmux, and after that I can do the above-mentioned saving with ctrl-a-shift-s, and it appears resurrect is working.

But once I quit I can't restart tmux, I get [exited] instead. If I comment out run-shell ~/.tmux/plugins/tpm/tpm and rerun tmux source-file ~/.tmux.conf outside tmux, then I can get back in. Either I am missing some instructions or something is wrong!

@bruno-
Copy link
Member

bruno- commented Sep 11, 2014

Hey hey,
lot's of questions here. I'll try to catch up with a few.

Totally weird. I am still not able to get ctrl-a-shift-I (my prefix is ctrl-a) to run the plugin installer (or at least, if it runs, it doesn't provide any feedback that I could see), but now when I press ctrl-a-shift-s (NOT ctrl-a + ctrl-s) I get a Tmux environment saved notice, and when I press ctrl-a-shift-r (NOT ctrl-a-ctrl-r) it gives a Tmux restore complete notice about half the time. Otherwise it kicks off (reverse-i-search), which I don't want.

Ok, I'll try to clarify the thing with tmux key bindings.

  • prefix + I - you invoke this by:
    • press Ctrl-a then lift off all the fingers from the keyboard briefly
    • then press shift-i to invoke the key binding
  • prefix + Ctrl-s - this one is invoked in a similar pattern:
    • press Ctrl-a at the same time then lift off all the fingers from the keyboard briefly
    • then press Ctrl-s at the same time

I think you might be trying to press all these keys together at the same time which is likely causing you trouble.
As a general rule, whenever you see prefix + something it means pressing Ctrl-a keys together, then lifting fingers from the keyboard briefly before proceeding with the something part.

When I restart tmux, however, it quits with [exited], which I gather is likely to mean a bad tmux.conf. So it seems like tpm and resurrect are somehow half installed but borked.

If you exit tmux, the [exited] message is perfectly legit - no need to get worried about that.

But once I quit I can't restart tmux, I get [exited] instead. If I comment out run-shell ~/.tmux/plugins/tpm/tpm and rerun tmux source-file ~/.tmux.conf outside tmux, then I can get back in. Either I am missing some instructions or something is wrong!

Can you please link me a stable version of your .tmux.conf file.

@reconstructions
Copy link
Author

Well, I finally got it working, but I have no idea how and the keystrokes that worked are not the same as those in the resurrect README. I have used tmux keystrokes a bunch before, so for the most part I have the feel for that. I could never be sure that prefix + I was working, at least as far as I could tell, but since resurrect is working I suppose it must have.

Tmux was quitting when I tried to start it (with [exited]), and it was something in the .tmux.conf that was doing it, but it finally worked, once again without my being able to say exactly why. It took a million restarts.

And I can finally save and restore tmux sessions, but the keys that work for me are prefix + shift-s (save) and 'prefix + shift-r. I think I accidentally tried those and saw that the session was saving when groping forprefix + ctrl-s. And I have to push them one at a time in sequence while holding down all the previous keys: 'ctrl, a, shift, s, not in two stages as you describe.

So I think there is something weird going on with this repo and resurrect running in iTerm2 with the latest VIM and TMUX versions in OS X Mavericks on a MacBook Air, but that is just my opinion, and for sure I have no idea what fixed it for me. Thanks for the help, and for saving my tmux sessions!

@bruno-
Copy link
Member

bruno- commented Sep 13, 2014

Hi, I'm glad you finally got it working and I'm sorry to hear about all the bad experiences so far.

If there are other users out there that have the similar problems, please report and we'll try to work it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants