mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Add copy-pipe-and-cancel, from Artem Fokin.
This commit is contained in:
		
							
								
								
									
										1
									
								
								tmux.1
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tmux.1
									
									
									
									
									
								
							@@ -1032,6 +1032,7 @@ The following commands are supported in copy mode:
 | 
				
			|||||||
.It Li "copy-end-of-line" Ta "D" Ta "C-k"
 | 
					.It Li "copy-end-of-line" Ta "D" Ta "C-k"
 | 
				
			||||||
.It Li "copy-line" Ta "" Ta ""
 | 
					.It Li "copy-line" Ta "" Ta ""
 | 
				
			||||||
.It Li "copy-pipe <command>" Ta "" Ta ""
 | 
					.It Li "copy-pipe <command>" Ta "" Ta ""
 | 
				
			||||||
 | 
					.It Li "copy-pipe-and-cancel <command>" Ta "" Ta ""
 | 
				
			||||||
.It Li "copy-selection" Ta "" Ta ""
 | 
					.It Li "copy-selection" Ta "" Ta ""
 | 
				
			||||||
.It Li "copy-selection-and-cancel" Ta "Enter" Ta "M-w"
 | 
					.It Li "copy-selection-and-cancel" Ta "Enter" Ta "M-w"
 | 
				
			||||||
.It Li "cursor-down" Ta "j" Ta "Down"
 | 
					.It Li "cursor-down" Ta "j" Ta "Down"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -761,6 +761,10 @@ window_copy_command(struct window_pane *wp, struct client *c, struct session *s,
 | 
				
			|||||||
	} else if (args->argc == 2 && *args->argv[1] != '\0') {
 | 
						} else if (args->argc == 2 && *args->argv[1] != '\0') {
 | 
				
			||||||
		argument = args->argv[1];
 | 
							argument = args->argv[1];
 | 
				
			||||||
		if (strcmp(command, "copy-pipe") == 0) {
 | 
							if (strcmp(command, "copy-pipe") == 0) {
 | 
				
			||||||
 | 
								if (s != NULL)
 | 
				
			||||||
 | 
									window_copy_copy_pipe(wp, s, NULL, argument);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							if (strcmp(command, "copy-pipe-and-cancel") == 0) {
 | 
				
			||||||
			if (s != NULL) {
 | 
								if (s != NULL) {
 | 
				
			||||||
				window_copy_copy_pipe(wp, s, NULL, argument);
 | 
									window_copy_copy_pipe(wp, s, NULL, argument);
 | 
				
			||||||
				window_pane_reset_mode(wp);
 | 
									window_pane_reset_mode(wp);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user