]> granicus.if.org Git - neomutt/commitdiff
keybindings: restore nntp change-newsgroup keybindings
authorNaveen Nathan <naveen@lastninja.net>
Thu, 25 Apr 2019 13:38:25 +0000 (23:38 +1000)
committerRichard Russon <rich@flatcap.org>
Thu, 25 Apr 2019 16:35:52 +0000 (17:35 +0100)
This restores a subset of the keybindings found in the original vvv.nntp
patch that don't clash with any of neomutt defaults.

Specifically:
  i to change-newsgroup
  ESC-i to change-newsgroup-readonly

functions.h

index 1c383f95530c56968ec4098d42bbbfee40c31298..25843d1136f0068a0127bbf75db94ace9ae7adcf 100644 (file)
@@ -107,8 +107,8 @@ const struct Binding OpMain[] = { /* map: index */
   { "change-folder",             OP_MAIN_CHANGE_FOLDER,             "c" },
   { "change-folder-readonly",    OP_MAIN_CHANGE_FOLDER_READONLY,    "\033c" },  // <Alt-c>
 #ifdef USE_NNTP
-  { "change-newsgroup",          OP_MAIN_CHANGE_GROUP,              NULL },
-  { "change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY,     NULL },
+  { "change-newsgroup",          OP_MAIN_CHANGE_GROUP,              "i" },
+  { "change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY,     "\033i" },
 #endif
 #ifdef USE_NOTMUCH
   { "change-vfolder",            OP_MAIN_CHANGE_VFOLDER,            NULL },
@@ -260,8 +260,8 @@ const struct Binding OpPager[] = { /* map: pager */
   { "change-folder",             OP_MAIN_CHANGE_FOLDER,           "c" },
   { "change-folder-readonly",    OP_MAIN_CHANGE_FOLDER_READONLY,  "\033c" },    // <Alt-c>
 #ifdef USE_NNTP
-  { "change-newsgroup",          OP_MAIN_CHANGE_GROUP,            NULL },
-  { "change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY,   NULL },
+  { "change-newsgroup",          OP_MAIN_CHANGE_GROUP,            "i" },
+  { "change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY,   "\033i" },
 #endif
 #ifdef USE_NOTMUCH
   { "change-vfolder",            OP_MAIN_CHANGE_VFOLDER,          NULL },