From eb5638f3e7d4e85130555159751899736d1a5a6d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 25 Jun 2008 19:18:20 +0000 Subject: [PATCH] Only lowercase key bindings. --- CHANGES | 3 ++- key-bindings.c | 36 ++++++++++++++---------------------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/CHANGES b/CHANGES index ca5d88ae..bced973a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ 25 June 2008 +* Slim down default key bindings: support lowercase only. * Handle escaped keys properly (parse eg \033b into a single key code) and use this to change copy mode next/previous work to M-f and M-b to match emacs. @@ -566,4 +567,4 @@ (including mutt, emacs). No status bar yet and no key remapping or other customisation. -$Id: CHANGES,v 1.141 2008-06-25 19:12:30 nicm Exp $ +$Id: CHANGES,v 1.142 2008-06-25 19:18:20 nicm Exp $ diff --git a/key-bindings.c b/key-bindings.c index fe6ea46c..ca862514 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.35 2008-06-21 10:19:36 nicm Exp $ */ +/* $Id: key-bindings.c,v 1.36 2008-06-25 19:18:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -76,22 +76,10 @@ key_bindings_init(void) int key; const struct cmd_entry *entry; } table[] = { - { 'D', &cmd_detach_client_entry }, - { 'd', &cmd_detach_client_entry }, - { 'S', &cmd_list_sessions_entry }, - { 's', &cmd_list_sessions_entry }, - { 'W', &cmd_list_windows_entry }, - { 'w', &cmd_list_windows_entry }, - { '?', &cmd_list_keys_entry }, + { '#', &cmd_list_buffers_entry }, + { '&', &cmd_kill_window_entry }, + { '-', &cmd_delete_buffer_entry }, { '/', &cmd_list_keys_entry }, - { 'C', &cmd_new_window_entry }, - { 'c', &cmd_new_window_entry }, - { 'N', &cmd_next_window_entry }, - { 'n', &cmd_next_window_entry }, - { 'P', &cmd_previous_window_entry }, - { 'p', &cmd_previous_window_entry }, - { 'L', &cmd_last_window_entry }, - { 'l', &cmd_last_window_entry }, { '0', &cmd_select_window_entry }, { '1', &cmd_select_window_entry }, { '2', &cmd_select_window_entry }, @@ -102,15 +90,19 @@ key_bindings_init(void) { '7', &cmd_select_window_entry }, { '8', &cmd_select_window_entry }, { '9', &cmd_select_window_entry }, - { 'R', &cmd_refresh_client_entry }, - { 'r', &cmd_refresh_client_entry }, - { '&', &cmd_kill_window_entry }, + { ':', &cmd_command_prompt_entry }, { '=', &cmd_scroll_mode_entry }, + { '?', &cmd_list_keys_entry }, { '[', &cmd_copy_mode_entry }, { ']', &cmd_paste_buffer_entry }, - { '#', &cmd_list_buffers_entry }, - { '-', &cmd_delete_buffer_entry }, - { ':', &cmd_command_prompt_entry }, + { 'c', &cmd_new_window_entry }, + { 'd', &cmd_detach_client_entry }, + { 'l', &cmd_last_window_entry }, + { 'n', &cmd_next_window_entry }, + { 'p', &cmd_previous_window_entry }, + { 'r', &cmd_refresh_client_entry }, + { 's', &cmd_list_sessions_entry }, + { 'w', &cmd_list_windows_entry }, { META, &cmd_send_prefix_entry }, }; u_int i;