From 8735f1691aa3421c1f4f72e007b4121f54f1e3de Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 2 Dec 2018 06:11:03 +0530 Subject: Support TAB to cycle contexts --- src/nnn.c | 8 ++++---- src/nnn.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 00e7384..63c2027 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2049,8 +2049,8 @@ 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 ^W Go to pinned dir\n" - "ed Toggle detail view ^T Next active context\n" - "a`, ^/ Leader key LeaderN Go to context N\n" + "8Tab, ^T Next active context d Toggle detail view\n" + "a`, ^/ Leader key LeaderN Go to/create context N\n" "cEsc Exit prompt ^L Redraw, clear prompt\n" "d^G Quit and cd q Quit context\n" "aQ, ^Q Quit ? Help, config\n" @@ -2065,8 +2065,8 @@ static int show_help(char *path) "d^F Extract archive m, M Brief/full media info\n" "ee Edit in EDITOR p Open in PAGER\n" "1ORDER\n" - "d^J Toggle du mode S Toggle apparent size\n" - "es Toggle sort by size t Toggle sort by mtime\n" + "d^J Disk usage S Apparent du\n" + "es Size t Modification time\n" "1MISC\n" "eo Launch GUI app !, ^] Spawn SHELL in dir\n" "eR Run custom script L Lock terminal\n"}; diff --git a/src/nnn.h b/src/nnn.h index c8a2cc9..58a3ab0 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -155,6 +155,7 @@ static struct key bindings[] = { { CONTROL('_'), SEL_LEADER, "", "" }, { '`', SEL_LEADER, "", "" }, /* Cycle contexts in forward direction */ + { '\t', SEL_CYCLE, "", "" }, { CONTROL('T'), SEL_CYCLE, "", "" }, /* Mark a path to visit later */ { 'b', SEL_PIN, "", "" }, -- cgit v1.2.3-70-g09d2