@@ -8,7 +8,7 @@ source "$CURRENT_DIR/process_restore_helpers.sh"
8
8
source " $CURRENT_DIR /spinner_helpers.sh"
9
9
10
10
# delimiter
11
- d=$' \t '
11
+ d=$' \t ; \t '
12
12
13
13
# Global variable.
14
14
# Used during the restore: if a pane already exists from before, it is
@@ -306,7 +306,7 @@ restore_window_properties() {
306
306
restore_all_pane_processes () {
307
307
if restore_pane_processes_enabled; then
308
308
local pane_full_command
309
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $6, $8, $11; }' $( last_resurrect_file) |
309
+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $6, $8, $11; }' $( last_resurrect_file) |
310
310
while IFS=$d read -r session_name window_number pane_index dir pane_full_command; do
311
311
dir=" $( remove_first_char " $dir " ) "
312
312
pane_full_command=" $( remove_first_char " $pane_full_command " ) "
@@ -316,15 +316,15 @@ restore_all_pane_processes() {
316
316
}
317
317
318
318
restore_active_pane_for_each_window () {
319
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $9 == 1 { print $2, $3, $6; }' $( last_resurrect_file) |
319
+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^pane/ && $9 == 1 { print $2, $3, $6; }' $( last_resurrect_file) |
320
320
while IFS=$d read session_name window_number active_pane; do
321
321
tmux switch-client -t " ${session_name} :${window_number} "
322
322
tmux select-pane -t " $active_pane "
323
323
done
324
324
}
325
325
326
326
restore_zoomed_windows () {
327
- awk ' BEGIN { FS="\t"; OFS="\t" } /^pane/ && $5 ~ /Z/ && $9 == 1 { print $2, $3; }' $( last_resurrect_file) |
327
+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^pane/ && $5 ~ /Z/ && $9 == 1 { print $2, $3; }' $( last_resurrect_file) |
328
328
while IFS=$d read session_name window_number; do
329
329
tmux resize-pane -t " ${session_name} :${window_number} " -Z
330
330
done
@@ -340,7 +340,7 @@ restore_grouped_sessions() {
340
340
}
341
341
342
342
restore_active_and_alternate_windows () {
343
- awk ' BEGIN { FS="\t"; OFS="\t" } /^window/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $( last_resurrect_file) |
343
+ awk ' BEGIN { FS="\t;\t "; OFS="\t; \t" } /^window/ && $6 ~ /[*-]/ { print $2, $5, $3; }' $( last_resurrect_file) |
344
344
sort -u |
345
345
while IFS=$d read session_name active_window window_number; do
346
346
tmux switch-client -t " ${session_name} :${window_number} "
0 commit comments