mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add pane_at_left/right/top/bottom formats, from Amos Bird.
This commit is contained in:
		
							
								
								
									
										4
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								format.c
									
									
									
									
									
								
							@@ -1405,6 +1405,10 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
 | 
			
		||||
		format_add(ft, "pane_top", "%u", wp->yoff);
 | 
			
		||||
		format_add(ft, "pane_right", "%u", wp->xoff + wp->sx - 1);
 | 
			
		||||
		format_add(ft, "pane_bottom", "%u", wp->yoff + wp->sy - 1);
 | 
			
		||||
		format_add(ft, "pane_at_left", "%d", wp->xoff == 0);
 | 
			
		||||
		format_add(ft, "pane_at_top", "%d", wp->yoff == 0);
 | 
			
		||||
		format_add(ft, "pane_at_right", "%d", wp->xoff + wp->sx == wp->window->sx);
 | 
			
		||||
		format_add(ft, "pane_at_bottom", "%d", wp->yoff + wp->sy == wp->window->sy);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								tmux.1
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tmux.1
									
									
									
									
									
								
							@@ -2774,7 +2774,6 @@ Set action on window silence when
 | 
			
		||||
is on.
 | 
			
		||||
The values are the same as those for
 | 
			
		||||
.Ic activity-action .
 | 
			
		||||
.Pp
 | 
			
		||||
.It Xo Ic status
 | 
			
		||||
.Op Ic on | off
 | 
			
		||||
.Xc
 | 
			
		||||
@@ -3610,6 +3609,10 @@ The following variables are available, where appropriate:
 | 
			
		||||
.It Li "mouse_standard_flag" Ta "" Ta "Pane mouse standard flag"
 | 
			
		||||
.It Li "mouse_all_flag" Ta "" Ta "Pane mouse all flag"
 | 
			
		||||
.It Li "pane_active" Ta "" Ta "1 if active pane"
 | 
			
		||||
.It Li "pane_at_bottom" Ta "" Ta "1 if pane is at the bottom of window"
 | 
			
		||||
.It Li "pane_at_left" Ta "" Ta "1 if pane is at the left of window"
 | 
			
		||||
.It Li "pane_at_right" Ta "" Ta "1 if pane is at the right of window"
 | 
			
		||||
.It Li "pane_at_top" Ta "" Ta "1 if pane is at the top of window"
 | 
			
		||||
.It Li "pane_bottom" Ta "" Ta "Bottom of pane"
 | 
			
		||||
.It Li "pane_current_command" Ta "" Ta "Current command if available"
 | 
			
		||||
.It Li "pane_dead" Ta "" Ta "1 if pane is dead"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user