mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-15 00:02:36 +02:00
Add a "back to indentation" key in copy mode to move the cursor to the first
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
This commit is contained in:
@ -105,8 +105,9 @@ mode_key_lookup_vi(struct mode_key_data *mdata, int key)
|
||||
return (MODEKEYCMD_CHOOSE);
|
||||
return (MODEKEYCMD_COPYSELECTION);
|
||||
case '0':
|
||||
case '^':
|
||||
return (MODEKEYCMD_STARTOFLINE);
|
||||
case '^':
|
||||
return (MODEKEYCMD_BACKTOINDENTATION);
|
||||
case '\033':
|
||||
return (MODEKEYCMD_CLEARSELECTION);
|
||||
case 'j':
|
||||
@ -160,6 +161,8 @@ mode_key_lookup_emacs(struct mode_key_data *mdata, int key)
|
||||
return (MODEKEYCMD_CHOOSE);
|
||||
case '\001':
|
||||
return (MODEKEYCMD_STARTOFLINE);
|
||||
case KEYC_ADDESC('m'):
|
||||
return (MODEKEYCMD_BACKTOINDENTATION);
|
||||
case '\007':
|
||||
return (MODEKEYCMD_CLEARSELECTION);
|
||||
case '\027':
|
||||
|
Reference in New Issue
Block a user