mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 00:46:04 +00:00 
			
		
		
		
	@@ -1,6 +1,8 @@
 | 
				
			|||||||
# Changelog
 | 
					# Changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### master
 | 
					### master
 | 
				
			||||||
 | 
					- bugfix: when top is running the pane `$PWD` can't be saved. This was causing
 | 
				
			||||||
 | 
					  issues during the restore and is now fixed.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v0.2.0, 2014-08-29
 | 
					### v0.2.0, 2014-08-29
 | 
				
			||||||
- bugfix: with vim 'session' strategy, if the session file does not exist - make
 | 
					- bugfix: with vim 'session' strategy, if the session file does not exist - make
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -75,6 +75,7 @@ restore_pane() {
 | 
				
			|||||||
	local pane="$1"
 | 
						local pane="$1"
 | 
				
			||||||
	echo "$pane" |
 | 
						echo "$pane" |
 | 
				
			||||||
	while IFS=$'\t' read line_type session_name window_number window_name window_active window_flags pane_index dir pane_active pane_command pane_full_command; do
 | 
						while IFS=$'\t' read line_type session_name window_number window_name window_active window_flags pane_index dir pane_active pane_command pane_full_command; do
 | 
				
			||||||
 | 
							dir="$(remove_first_char "$dir")"
 | 
				
			||||||
		window_name="$(remove_first_char "$window_name")"
 | 
							window_name="$(remove_first_char "$window_name")"
 | 
				
			||||||
		pane_full_command="$(remove_first_char "$pane_full_command")"
 | 
							pane_full_command="$(remove_first_char "$pane_full_command")"
 | 
				
			||||||
		if window_exists "$session_name" "$window_number"; then
 | 
							if window_exists "$session_name" "$window_number"; then
 | 
				
			||||||
@@ -109,6 +110,7 @@ restore_all_pane_processes() {
 | 
				
			|||||||
		local pane_full_command
 | 
							local pane_full_command
 | 
				
			||||||
		awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $7, $8, $11; }' $(last_session_path) |
 | 
							awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ && $11 !~ "^:$" { print $2, $3, $7, $8, $11; }' $(last_session_path) |
 | 
				
			||||||
			while IFS=$'\t' read session_name window_number pane_index dir pane_full_command; do
 | 
								while IFS=$'\t' read session_name window_number pane_index dir pane_full_command; do
 | 
				
			||||||
 | 
									dir="$(remove_first_char "$dir")"
 | 
				
			||||||
				pane_full_command="$(remove_first_char "$pane_full_command")"
 | 
									pane_full_command="$(remove_first_char "$pane_full_command")"
 | 
				
			||||||
				restore_pane_process "$pane_full_command" "$session_name" "$window_number" "$pane_index" "$dir"
 | 
									restore_pane_process "$pane_full_command" "$session_name" "$window_number" "$pane_index" "$dir"
 | 
				
			||||||
			done
 | 
								done
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,7 @@ pane_format() {
 | 
				
			|||||||
	format+="${delimiter}"
 | 
						format+="${delimiter}"
 | 
				
			||||||
	format+="#{pane_index}"
 | 
						format+="#{pane_index}"
 | 
				
			||||||
	format+="${delimiter}"
 | 
						format+="${delimiter}"
 | 
				
			||||||
	format+="#{pane_current_path}"
 | 
						format+=":#{pane_current_path}"
 | 
				
			||||||
	format+="${delimiter}"
 | 
						format+="${delimiter}"
 | 
				
			||||||
	format+="#{pane_active}"
 | 
						format+="#{pane_active}"
 | 
				
			||||||
	format+="${delimiter}"
 | 
						format+="${delimiter}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user