Skip to content

Commit 315132b

Browse files
committed
Happy Birthday nnn! 🍰
1 parent aa7f1da commit 315132b

File tree

4 files changed

+55
-13
lines changed

4 files changed

+55
-13
lines changed

CHANGELOG

+45
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
nnn v3.1
2+
2020-04-13
3+
4+
- unlimited bookmarks and plugin keys
5+
- status bar text in context color
6+
- support config `NO_COLOR` to disable colors
7+
- config `NNN_OPTS` to specify binary options to `nnn`
8+
- config `NNN_MCLICK` to emulate configurable key
9+
- toggle selection on right click
10+
- ignore hard links when calculating disk usage
11+
- dim (hard/sym) link names (symlink to file has `@`)
12+
- more special keys at empty filter prompt in _type-to-nav_
13+
- key <kbd>></kbd> to export file list
14+
- option `-F` to show fortune in help and settings screen
15+
- option `-T` to specify sort order (obsoletes `-v`)
16+
- option to clear sort order
17+
- key <kbd>T</kbd> to change time type (access/change/mod)
18+
- `.nmv` - internal fully-functional batch renamer plugin
19+
- make var `O_NOBATCH` to disable native batch renamer
20+
- `nuke` & `imgview` - open all images in directory sxiv
21+
- `nuke` - open log files in vi
22+
- plugin `x2sel` - system clipboard to selection copier
23+
- plugin `fzy` - cd using z database
24+
- plugin `fzopen` - support `FZF_DEFAULT_COMMAND`
25+
- create new context on TAB without prompt
26+
- hover and connect by dir name (within config dir)
27+
- move to next entry on current file delete
28+
- on single file copy/move, select the copied/moved file
29+
- option `-f` to to use readline history file (off by default)
30+
- use `s` in status bar to indicate selection in progress
31+
- make var `O_NOMOUSE` to disable mouse support
32+
- do not store `NNN_TRASH` and `-Q` in config/session
33+
- add sample .desktop file for XDG compatible DEs
34+
- rename _nav-as-you-type_ to _type-to-nav_ mode
35+
- fix PCRE case-insensitive regex search
36+
- fix no error msg when filter length limit exceeded
37+
- fix static package generation
38+
- fix broken abort message when started in du-mode
39+
- fix filter lost on context switch in non _type-to-nav_ mode
40+
- fix broken readline prompt
41+
- fix long strings treated as action keys in filter prompt
42+
- fix `NNNLVL` not reset when spawned shell is exited
43+
44+
-------------------------------------------------------------------------------
45+
146
nnn v3.0
247
2020-02-12
348

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<a href="https://circleci.com/gh/jarun/workflows/nnn"><img src="https://img.shields.io/circleci/project/github/jarun/nnn.svg?label=circleci" alt="CircleCI Status" /></a>
88
<a href="https://en.wikipedia.org/wiki/Privacy-invasive_software"><img src="https://img.shields.io/badge/privacy-✓-crimson?maxAge=2592000" alt="Privacy Awareness" /></a>
99
<a href="https://github.com/jarun/nnn/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-BSD%202--Clause-yellow.svg?maxAge=2592000" alt="License" /></a>
10-
<a href="https://github.com/jarun/nnn/wiki"><img src="https://img.shields.io/badge/nnn-Wiki-important?maxAge=2592000" alt="Wiki" /></a>
1110
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RMLTQ76JSXJ4Q"><img src="https://img.shields.io/badge/PayPal-donate-1eb0fc.svg" alt="Donate via PayPal!" /></a>
1211
</p>
1312

@@ -51,7 +50,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
5150
25. Watch matrix text fly or read fortune messages
5251
26. Configure in 5 minutes!
5352

54-
Once installed (instructions below), _**read the fine [manual](https://github.com/jarun/nnn/wiki)**_.
53+
Once installed (instructions below), _**read the fine manual**_. [![Wiki](https://img.shields.io/badge/nnn-Wiki-important?maxAge=2592000)](https://github.com/jarun/nnn/wiki)
5554

5655
## Features
5756

nnn.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.Dd Feb 12, 2020
1+
.Dd Apr 13, 2020
22
.Dt NNN 1
33
.Os
44
.Sh NAME

src/nnn.c

+8-10
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
#include "dbg.h"
108108

109109
/* Macro definitions */
110-
#define VERSION "3.0"
110+
#define VERSION "3.1"
111111
#define GENERAL_INFO "BSD 2-Clause\nhttps://github.com/jarun/nnn"
112112
#define SESSIONS_VERSION 1
113113

@@ -770,7 +770,7 @@ static void clear_hash()
770770
static void clearinfoln(void)
771771
{
772772
move(xlines - 2, 0);
773-
addch('\n');
773+
clrtoeol();
774774
}
775775

776776
#ifdef KEY_RESIZE
@@ -819,12 +819,6 @@ static void printerr(int linenum)
819819
exit(1);
820820
}
821821

822-
static void printinfoln(const char *str)
823-
{
824-
clearinfoln();
825-
mvaddstr(xlines - 2, xcols - strlen(str), str);
826-
}
827-
828822
static inline bool xconfirm(int c)
829823
{
830824
return (c == 'y' || c == 'Y');
@@ -936,7 +930,7 @@ static void *xrealloc(void *pcur, size_t len)
936930
* Always null ('\0') terminates if both src and dest are valid pointers.
937931
* Returns the number of bytes copied including terminating null byte.
938932
*/
939-
static size_t xstrsncpy(char *restrict dest, const char *restrict src, size_t n)
933+
static size_t xstrsncpy(char *dest, const char *src, size_t n)
940934
{
941935
if (!src || !dest || !n)
942936
return 0;
@@ -2390,13 +2384,17 @@ static void showfilterinfo(void)
23902384
snprintf(info + i, REGEX_MAX - i - 1, " %s [/], %s [:]",
23912385
(cfg.regex ? "regex" : "str"),
23922386
((fnstrstr == &strcasestr) ? "ic" : "noic"));
2393-
printinfoln(info);
2387+
2388+
clearinfoln();
2389+
mvaddstr(xlines - 2, xcols - strlen(info), info);
23942390
}
23952391

23962392
static void showfilter(char *str)
23972393
{
2394+
attron(COLOR_PAIR(cfg.curctx + 1));
23982395
showfilterinfo();
23992396
printmsg(str);
2397+
// printmsg calls attroff()
24002398
}
24012399

24022400
static inline void swap_ent(int id1, int id2)

0 commit comments

Comments
 (0)