Comments (10)
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.
Can't get that to work either - Should I be able to run ":resurrect-save" in tmux command mode?
from tmux-resurrect.
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 asprefix + 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.
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.
- 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.
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.
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.
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.
I got this working now. Didn't change anything and it suddenly works - very bizarre...
from tmux-resurrect.
Cool, good to hear that!
Closing the issue then.
from tmux-resurrect.
Related Issues (20)
- Restores wrong PWD when it's a symbolic link HOT 1
- resurrect files not saving expected data
- Save env variables as well
- Restoring non-existing directories
- Save problems
- Tests failing on clean checkout from master. HOT 1
- Description in document save_dir.md is not complete
- Problem recreate windows
- How to start tmux server with resurrect
- resurrect creates minimal sized horizontal splits
- Resurrect not saving the tmux session as intended HOT 2
- C-b C-r to restore session will end up with [exited] from tmux client on iSH(iOS alpinelinux)
- Login shell not invoked for zsh
- [Question] Create new sessions/windows/layouts using a file - supported?
- [BUG] saving with nvim opens the incorrect files if you have spaces in filenames
- How to upgrade from 3.0 and keep saved sessions ?
- [Bug] Restoring sessions is adding a new empty prompts everytime
- [BUG] Hooks pre-restore-all and post-restore-all don't work correctly with tmux v3.4 HOT 1
- plugin not saving correct command
- automatically restore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-resurrect.