tmux-resurrect | Persists tmux environment across system restarts | Command Line Interface library
kandi X-RAY | tmux-resurrect Summary
kandi X-RAY | tmux-resurrect Summary
This plugin goes to great lengths to save and restore all the details from your tmux environment. Here's what's been taken care of:. Requirements / dependencies: tmux 1.9 or higher, bash. Tested and working on Linux, OSX and Cygwin. tmux-resurrect is idempotent! It will not try to restore panes or windows that already exist. The single exception to this is when tmux is started with only 1 pane in order to restore previous tmux env. Only in this case will this single pane be overwritten.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tmux-resurrect
tmux-resurrect Key Features
tmux-resurrect Examples and Code Snippets
Community Discussions
Trending Discussions on tmux-resurrect
QUESTION
Right now my tmux keybindings are set such that prefix + h/j/k/l (i.e vim-style bindings) are used to move focus of the panes left/down/up/right. However, sometimes when I switch to a pane running vim and I immediately start navigating with h/j/k/l, I get stuck in "tmux mode" where it will continue switching panes instead of navigating in vim. I have similar issues when switching to a normal terminal pane and listing files (i.e by using "l"). To avoid this, I would like to force tmux to require the prefix key for every pane switch I do.
Is there a way to do this?
Edit: In case its needed, here is my .tmux.conf
...ANSWER
Answered 2020-Jan-13 at 14:25This is being caused by your use of -r
when creating the key bindings for h/j/k/l.
From the entry for bind-key
in the tmux man page:
The -r flag indicates this key may repeat, see the repeat-time option.
And about the repeat-time
option:
Allow multiple commands to be entered without pressing the prefix-key again in the specified time milliseconds (the default is 500). Whether a key repeats may be set when it is bound using the
-r
flag tobind-key
. Repeat is enabled for the default keys bound to theresize-pane
command.
Just drop the -r
from those four commands to have it require the prefix key every time.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tmux-resurrect
Add this line to the bottom of .tmux.conf:. Reload TMUX environment with: $ tmux source-file ~/.tmux.conf. You should now be able to use the plugin.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page