Преглед на файлове

remove / as additional lead key when filter is on

master
Arun Prakash Jana преди 4 години
родител
ревизия
5b0b63e7d6
No known key found for this signature in database GPG Key ID: A75979F35C080412
променени са 2 файла, в които са добавени 3 реда и са изтрити 8 реда
  1. +2
    -7
      src/nnn.c
  2. +1
    -1
      src/nnn.h

+ 2
- 7
src/nnn.c Целия файл

@@ -2086,11 +2086,6 @@ static int filterentries(char *path)
}

switch (*ch) {
case '/': /* works as Leader key in filter mode */
*ch = CONTROL('_'); // fallthrough
if (len == 1)
cur = oldcur;
goto end;
case '=': // fallthrough /* Launch app */
case ';': // fallthrough /* Run plugin key */
case '?': /* Help and config key, '?' is an invalid regex */
@@ -3480,7 +3475,7 @@ static void show_help(const char *path)
"cb Pin CWD ^B Go to pinned dir\n"
"9, ^/ Lead key N LeadN Context N\n"
"6(Sh)Tab Cycle context d Detail view toggle\n"
"c/ Filter/Lead Ins ^N Nav-as-you-type toggle\n"
"c/ Filter Ins ^N Nav-as-you-type toggle\n"
"aEsc Exit prompt ^L F5 Redraw/clear prompt\n"
"c. Show/hide dots ? Help, conf\n"
"9Q ^Q Quit ^G QuitCD q Quit context\n"
@@ -3499,7 +3494,7 @@ static void show_help(const char *path)
"cz Size E Extn t Time\n"
"1MISC\n"
"9! ^] Shell ; x Plugin key\n"
"cC Execute file R ^V Pick plugin\n"
"cC Execute file i ^V Pick plugin\n"
"cs Manage session = Launch app\n"
"cc Connect remote u Unmount\n"
"9] ^P Prompt/run cmd L Lock\n"};


+ 1
- 1
src/nnn.h Целия файл

@@ -246,7 +246,7 @@ static struct key bindings[] = {
{ 'x', SEL_PLUGKEY },
{ ';', SEL_PLUGKEY },
/* Run a plugin */
{ 'R', SEL_PLUGIN },
{ 'i', SEL_PLUGIN },
{ CONTROL('V'), SEL_PLUGIN },
/* Launcher */
{ '=', SEL_LAUNCH },


Loading…
Отказ
Запис