aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-23 21:49:56 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-23 21:49:56 +0530
commit31849fd5fb7b919a7cb99669c0bcd6f2685af2cc (patch)
tree2a6055ecf1f2777987e8af6bad9590b2f6cfecfb
parent7de98faa747be4a52a6966550cdcb44b83e53b1c (diff)
downloadnnn-31849fd5fb7b919a7cb99669c0bcd6f2685af2cc.tar.gz
New key to tkae note ^N
-rw-r--r--README.md2
-rw-r--r--src/nnn.c2
-rw-r--r--src/nnn.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 44a26c5..4990db4 100644
--- a/README.md
+++ b/README.md
@@ -242,7 +242,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
MISC
!, ^] Spawn SHELL in dir C Execute entry
R, ^V Run custom script L Lock terminal
- ^S Run a command N Take note
+ ^S Run a command N, ^N Take note
```
Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens.
diff --git a/src/nnn.c b/src/nnn.c
index 5340989..178eb96 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2286,7 +2286,7 @@ static bool show_help(char *path)
"1MISC\n"
"8!, ^] Spawn SHELL in dir C Execute entry\n"
"8R, ^V Run custom script L Lock terminal\n"
- "b^S Run a command N Take note\n"};
+ "b^S Run a command N, ^N Take note\n"};
if (fd == -1)
return FALSE;
diff --git a/src/nnn.h b/src/nnn.h
index ae165f0..1500515 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -225,6 +225,7 @@ static struct key bindings[] = {
{ 'p', SEL_RUNPAGE },
/* Open notes file */
{ 'N', SEL_NOTE },
+ { CONTROL('N'), SEL_NOTE },
/* Lock screen */
{ 'L', SEL_LOCK },
/* Quit a context */