diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-06-04 04:49:16 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-06-04 05:06:56 +0530 |
commit | 88e9df01a4073706e9b8d015c31b68c2a18248d6 (patch) | |
tree | 9c3b2f582f9002b8c1b75a4e55e6facad8e0a397 /config.def.h | |
parent | a2e7e94064a20a7e7327b0f514b67a3a8de27fe1 (diff) | |
download | nnn-88e9df01a4073706e9b8d015c31b68c2a18248d6.tar.gz |
Navigate-as-you-type support
1. Open directories in filter mode
2. Fix arrow keys not working after filter selection (due to invalid cur entry)
3. Support `Insert` key to clear filter prompt
4. Update documentation
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index c5c9ce1..943b8f3 100644 --- a/config.def.h +++ b/config.def.h @@ -3,6 +3,7 @@ #define CURSR " > " #define EMPTY " " +static int filtermode = 0; /* Set to 1 to enter filter mode */ static int mtimeorder = 0; /* Set to 1 to sort by time modified */ static int sizeorder = 0; /* Set to 1 to sort by file size */ static int bsizeorder = 0; /* Set to 1 to sort by blocks used including content */ @@ -35,6 +36,8 @@ static struct key bindings[] = { { 'l', SEL_GOIN, "", "" }, /* Filter */ { '/', SEL_FLTR, "", "" }, + /* Toggle filter mode */ + { 'f', SEL_MFLTR, "", "" }, /* Desktop search */ { CONTROL('_'), SEL_SEARCH, "", "" }, /* Next */ |