aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-30 06:59:45 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-30 07:01:34 +0530
commite3d90a98ceb6cbf2bd7ab3b242692b0079a7e15a (patch)
treefbe1217c8d54d02599edd2853cdf24b67082c28f /src/nnn.h
parent4d291d0ac27830afc19bfb0f4057542a06de7b23 (diff)
downloadnnn-e3d90a98ceb6cbf2bd7ab3b242692b0079a7e15a.tar.gz
Support make option O_CTX8 for 8 contexts
Note that this is not compatible with 4 contexts.
Diffstat (limited to 'src/nnn.h')
-rw-r--r--src/nnn.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nnn.h b/src/nnn.h
index e932624..e6ee5e8 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -60,6 +60,12 @@ enum action {
SEL_CTX2,
SEL_CTX3,
SEL_CTX4,
+#ifdef CTX8
+ SEL_CTX5,
+ SEL_CTX6,
+ SEL_CTX7,
+ SEL_CTX8,
+#endif
SEL_PIN,
SEL_FLTR,
SEL_MFLTR,
@@ -165,6 +171,12 @@ static struct key bindings[] = {
{ '2', SEL_CTX2 },
{ '3', SEL_CTX3 },
{ '4', SEL_CTX4 },
+#ifdef CTX8
+ { '5', SEL_CTX5 },
+ { '6', SEL_CTX6 },
+ { '7', SEL_CTX7 },
+ { '8', SEL_CTX8 },
+#endif
/* Mark a path to visit later */
{ ',', SEL_PIN },
/* Filter */