mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Alter next-word to have vi-like movement behaviour, and add next-word-end with
the existing emacs behaviour. From Micah Cowan.
This commit is contained in:
		@@ -90,6 +90,7 @@ struct mode_key_cmdstr mode_key_cmdstr_copy[] = {
 | 
			
		||||
	{ MODEKEYCOPY_MIDDLELINE, "middle-line" },
 | 
			
		||||
	{ MODEKEYCOPY_NEXTPAGE, "page-down" },
 | 
			
		||||
	{ MODEKEYCOPY_NEXTWORD, "next-word" },
 | 
			
		||||
	{ MODEKEYCOPY_NEXTWORDEND, "next-word-end" },
 | 
			
		||||
	{ MODEKEYCOPY_PREVIOUSPAGE, "page-up" },
 | 
			
		||||
	{ MODEKEYCOPY_PREVIOUSWORD, "previous-word" },
 | 
			
		||||
	{ MODEKEYCOPY_RIGHT, "cursor-right" },
 | 
			
		||||
@@ -276,7 +277,7 @@ const struct mode_key_entry mode_key_emacs_copy[] = {
 | 
			
		||||
	{ '\027' /* C-w */,	0, MODEKEYCOPY_COPYSELECTION },
 | 
			
		||||
	{ '\033' /* Escape */,	0, MODEKEYCOPY_CANCEL },
 | 
			
		||||
	{ 'b' | KEYC_ESCAPE,	0, MODEKEYCOPY_PREVIOUSWORD },
 | 
			
		||||
	{ 'f' | KEYC_ESCAPE,	0, MODEKEYCOPY_NEXTWORD },
 | 
			
		||||
	{ 'f' | KEYC_ESCAPE,	0, MODEKEYCOPY_NEXTWORDEND },
 | 
			
		||||
	{ 'g',			0, MODEKEYCOPY_GOTOLINE },
 | 
			
		||||
	{ 'm' | KEYC_ESCAPE,	0, MODEKEYCOPY_BACKTOINDENTATION },
 | 
			
		||||
	{ 'n',			0, MODEKEYCOPY_SEARCHAGAIN },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user