tmux copy-paste changes
This commit is contained in:
		
							parent
							
								
									806c8bca09
								
							
						
					
					
						commit
						672e572014
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -44,13 +44,19 @@
 | 
			
		|||
	bind -r J resize-pane -D 5
 | 
			
		||||
	bind -r K resize-pane -U 5
 | 
			
		||||
	bind -r L resize-pane -R 5
 | 
			
		||||
#sorta-kinda vim keys for copy and paste
 | 
			
		||||
	bind-key -T copy-mode-vi v send-keys -X begin-selection
 | 
			
		||||
	bind-key -T copy-mode-vi y send-keys -X copy-selection
 | 
			
		||||
	bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -sel clip -i"
 | 
			
		||||
	bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#moving panes between windows.
 | 
			
		||||
bind-key b command-prompt -p "bring pane from:" "join-pane -s '%%'"
 | 
			
		||||
bind-key s command-prompt -p "sent pane to:" "join-pane -t '%%'"
 | 
			
		||||
 | 
			
		||||
#reload conf with r
 | 
			
		||||
bind r source-file ~/tmux.conf
 | 
			
		||||
bind r source-file ~/.tmux.conf
 | 
			
		||||
 | 
			
		||||
#fix annoying escape behavior
 | 
			
		||||
	set -sg escape-time 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue