GithubHelp home page GithubHelp logo

Comments (10)

bruno- avatar bruno- commented on August 17, 2024

Hi,
maybe the terminal is not detecting alt keys.
Try setting this in .tmux.conf:

set -g @resurrect-save 'C-s'
set -g @resurrect-restore 'C-r'

then reload tmux settings by typing this in the shell tmux source ~/.tmux.conf.

Now, you should be able to save with prefix + ctrl-s and restore with prefix + ctrl-r.

Let me know if it works!

from tmux-resurrect.

hojberg avatar hojberg commented on August 17, 2024

Can't get that to work either - Should I be able to run ":resurrect-save" in tmux command mode?

from tmux-resurrect.

bruno- avatar bruno- commented on August 17, 2024

No, unfortunately tmux does not allow creating new commands for it's command mode.

Ok, we're taking a step back then:

  • can you check ~/.tmux/plugins/tmux-resurrect/ directory exists?
  • what happens when you run ~/.tmux/plugins/tmux-resurrect/scripts/save.sh script directly (it should do the saving - the same as prefix + Alt-s)
  • what's the output you're getting with this command tmux list-keys | grep resurrect ?

Thanks for the help with debugging this.

from tmux-resurrect.

jgeralnik avatar jgeralnik commented on August 17, 2024

Another thing to be aware of is to make sure you included the line

  run-shell ~/.tmux/plugins/tpm/tpm

in your .tmux.conf if you are using tmux plugin manager

from tmux-resurrect.

hojberg avatar hojberg commented on August 17, 2024
  • Directory is there.
  • running ~/.tmux/plugins/tmux-resurrect/scripts/save.sh works
  • tmux list-keys | grep resurrect:
  tmux list-keys | grep resurrect                                                                                                                                         master
bind-key        C-r run-shell /Users/hojberg/.tmux/plugins/tmux-resurrect/scripts/restore.sh
bind-key        C-s run-shell /Users/hojberg/.tmux/plugins/tmux-resurrect/scripts/save.sh
bind-key        M-r run-shell /Users/hojberg/.tmux/plugins/tmux-resurrect/scripts/restore.sh
bind-key        M-s run-shell /Users/hojberg/.tmux/plugins/tmux-resurrect/scripts/save.sh

and finally the run-shell for tpm is in my config.

from tmux-resurrect.

bruno- avatar bruno- commented on August 17, 2024

Okay, great. I'm happy that running the .../save.sh script worked because that's where all the logic is.

The output from tmux list-keys also looks good. It's really up to tmux to run those scripts you see in the output on the right when you press either Alt-s or Ctrl-s for save...

So I'm kinda clueless now.
@hojberg if there's no other option, wanna do a pairing session tomorrow evening over google hangouts?

from tmux-resurrect.

solomonjames avatar solomonjames commented on August 17, 2024

I am noticing the same thing. I upgraded tmux to 1.9a from brew. tried the C-r binding too. So far my issue follows @hojberg exactly.

from tmux-resurrect.

solomonjames avatar solomonjames commented on August 17, 2024

Hmmm, so after some playing I got the following config setup to work:

bind C-s run-shell ~/.tmux/plugins/tmux-resurrect/scripts/save.sh                                                                                                                     
bind C-r run-shell ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh

But I also had to ensure that the files in scripts/* were executable. They seem to be executable with just a git clone, but I was using something called Fresh Shell to load this plugin and seemed to change the permissions on all the files. I still can't get the Alt+s to work, but I am happy with C-r/C-s because the plugin works great!!

from tmux-resurrect.

hojberg avatar hojberg commented on August 17, 2024

I got this working now. Didn't change anything and it suddenly works - very bizarre...

from tmux-resurrect.

bruno- avatar bruno- commented on August 17, 2024

Cool, good to hear that!
Closing the issue then.

from tmux-resurrect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.