Applied, thanks.

On Sun, Nov 27, 2011 at 10:39:41PM +0100, Matthias Lederhofer wrote:
> Hi,
> 
> I'd like to suggest that the home and end keys move the cursor to
> start of line and end of line as usual in command prompt mode.
> 
> ---
>  mode-key.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/mode-key.c b/mode-key.c
> index e45f1c6..140f004 100644
> --- a/mode-key.c
> +++ b/mode-key.c
> @@ -141,6 +141,8 @@ const struct mode_key_entry mode_key_vi_edit[] = {
>       { KEYC_LEFT,            0, MODEKEYEDIT_CURSORLEFT },
>       { KEYC_RIGHT,           0, MODEKEYEDIT_CURSORRIGHT },
>       { KEYC_UP,              0, MODEKEYEDIT_HISTORYUP },
> +     { KEYC_HOME,            0, MODEKEYEDIT_STARTOFLINE },
> +     { KEYC_END,             0, MODEKEYEDIT_ENDOFLINE },
>  
>       { '$',                  1, MODEKEYEDIT_ENDOFLINE },
>       { '0',                  1, MODEKEYEDIT_STARTOFLINE },
> @@ -289,6 +291,8 @@ const struct mode_key_entry mode_key_emacs_edit[] = {
>       { KEYC_LEFT,            0, MODEKEYEDIT_CURSORLEFT },
>       { KEYC_RIGHT,           0, MODEKEYEDIT_CURSORRIGHT },
>       { KEYC_UP,              0, MODEKEYEDIT_HISTORYUP },
> +     { KEYC_HOME,            0, MODEKEYEDIT_STARTOFLINE },
> +     { KEYC_END,             0, MODEKEYEDIT_ENDOFLINE },
>  
>       { 0,                   -1, 0 }
>  };
> -- 
> 1.7.7.3
> 
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, application performance, 
> security threats, fraudulent activity, and more. Splunk takes this 
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to