mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Range selection: replace ^K by ^Space
This commit is contained in:
parent
faddaa5c3a
commit
2e870f3879
2 changed files with 6 additions and 3 deletions
|
@ -2857,8 +2857,11 @@ static int filterentries(char *path, char *lastname)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Handle all control chars in main loop */
|
/* Handle all control chars in main loop */
|
||||||
if (*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^')
|
if (*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^') {
|
||||||
|
if (keyname(*ch)[1] == '@')
|
||||||
|
*ch = 'm';
|
||||||
goto end;
|
goto end;
|
||||||
|
}
|
||||||
|
|
||||||
if (len == 1) {
|
if (len == 1) {
|
||||||
if (*ch == '?') /* Help and config key, '?' is an invalid regex */
|
if (*ch == '?') /* Help and config key, '?' is an invalid regex */
|
||||||
|
@ -4576,7 +4579,7 @@ static void show_help(const char *path)
|
||||||
"b^R Rename/dup%-14cr Batch rename\n"
|
"b^R Rename/dup%-14cr Batch rename\n"
|
||||||
"cz Archive%-17ce Edit file\n"
|
"cz Archive%-17ce Edit file\n"
|
||||||
"c* Toggle exe%-14c> Export list\n"
|
"c* Toggle exe%-14c> Export list\n"
|
||||||
"5Space ^J (Un)select%-11cm ^K Mark range/clear\n"
|
"5Space ^J (Un)select%-7cm ^Space Mark range/clear\n"
|
||||||
"9p ^P Copy sel here%-11ca Select all\n"
|
"9p ^P Copy sel here%-11ca Select all\n"
|
||||||
"9v ^V Move sel here%-8cw ^W Cp/mv sel as\n"
|
"9v ^V Move sel here%-8cw ^W Cp/mv sel as\n"
|
||||||
"9x ^X Delete%-18cE Edit sel\n"
|
"9x ^X Delete%-18cE Edit sel\n"
|
||||||
|
|
|
@ -215,7 +215,7 @@ static struct key bindings[] = {
|
||||||
{ ' ', SEL_SEL },
|
{ ' ', SEL_SEL },
|
||||||
/* Toggle select multiple files */
|
/* Toggle select multiple files */
|
||||||
{ 'm', SEL_SELMUL },
|
{ 'm', SEL_SELMUL },
|
||||||
{ CONTROL('K'), SEL_SELMUL },
|
{ CONTROL(' '), SEL_SELMUL },
|
||||||
/* Select all files in current dir */
|
/* Select all files in current dir */
|
||||||
{ 'a', SEL_SELALL },
|
{ 'a', SEL_SELALL },
|
||||||
/* List, edit selection */
|
/* List, edit selection */
|
||||||
|
|
Loading…
Add table
Reference in a new issue