Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Salzmann-Jaeckel
tmux-resurrect
Commits
05cf7904
Unverified
Commit
05cf7904
authored
Aug 29, 2014
by
Bruno Sutic
Browse files
Enable restoring more panes per window
Closes #24
parent
f9ef86d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
05cf7904
...
...
@@ -7,6 +7,7 @@
are all around. This is now fixed - pane restorations are now idempotent.
-
if pane exists from before session restore - do not restore the process within
it. This makes the restoration process even more idempotent.
-
more panes within a window can now be restored
### v0.2.0, 2014-08-29
-
bugfix: with vim 'session' strategy, if the session file does not exist - make
...
...
scripts/session_restorer.sh
View file @
05cf7904
...
...
@@ -99,7 +99,8 @@ new_pane() {
local
window_number
=
"
$2
"
local
window_name
=
"
$3
"
local dir
=
"
$4
"
tmux split-window
-t
"
${
session_name
}
:
${
window_number
}
"
-c
"
$dir
"
tmux split-window
-t
"
${
session_name
}
:
${
window_number
}
"
-c
"
$dir
"
-h
tmux resize-pane
-t
"
${
session_name
}
:
${
window_number
}
"
-L
"999"
}
restore_pane
()
{
...
...
@@ -186,8 +187,8 @@ main() {
if
supported_tmux_version_ok
&&
check_saved_session_exists
;
then
start_spinner
restore_all_panes
restore_all_pane_processes
restore_pane_layout_for_each_window
>
/dev/null 2>&1
restore_all_pane_processes
# below functions restore exact cursor positions
restore_active_pane_for_each_window
restore_active_and_alternate_windows
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment