From 784ed6fefed5bbfb02e683df928fe238be9a180c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 12 Nov 2018 03:36:37 +0530 Subject: Use the term Leader key --- src/nnn.c | 4 ++-- src/nnn.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 03b421c..bcc54b2 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1371,7 +1371,7 @@ static int parsebmstr() ++bms; /* - * Use single-char keys to use ^B like vim Leader key. + * Use single-char keys to combine with Leader key. * Fail here to ensure keys are single char. * To support multiple char keys remove the return * and add appropriate check to enable smart-detect. @@ -1976,7 +1976,7 @@ static int show_help(char *path) "4→, ↵, l, ^M Open file/enter dir . Toggle show hidden\n" "e/ Filter Ins, ^I Toggle nav-as-you-type\n" "eb Pin current dir ^V Go to pinned dir\n" - "d^B Leader key LeaderN Switch to context N\n" + "a`, ^/ Leader key LeaderN Switch to context N\n" "cEsc Exit prompt ^L Redraw, clear prompt\n" "d^G Quit and cd q Quit context\n" "aQ, ^Q Quit ? Help, settings\n" diff --git a/src/nnn.h b/src/nnn.h index b98592d..9e2ce90 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -150,7 +150,8 @@ static struct key bindings[] = { /* Last visited dir */ { '-', SEL_CDLAST, "", "" }, /* Leader key */ - { CONTROL('B'), SEL_LEADER, "", "" }, + { CONTROL('_'), SEL_LEADER, "", "" }, + { '`', SEL_LEADER, "", "" }, /* Mark a path to visit later */ { 'b', SEL_PIN, "", "" }, /* Visit marked directory */ -- cgit v1.2.3-70-g09d2