aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG58
-rw-r--r--nnn.14
-rw-r--r--plugins/README.md2
-rw-r--r--src/nnn.c5
4 files changed, 65 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 0f9231c..6a010f3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,61 @@
+nnn v2.9
+2020-01-15
+
+- all keybinds and options reviewed by the team and frozen (see #422)
+ - reduced number of keybinds
+- greatly improved help screen readability
+- `nuke`: sample opener (CLI-only by default) and plugin
+- fast line redraws instead of full screen refresh (thanks @annagrram)
+- auto archive handling by extension (see config `NNN_ARCHIVE`)
+- Lead key simplified to bookmark key (<kbd>b</kbd> or <kbd>^/</kbd>)
+- single key to toggle order (<kbd>t</kbd> or <kbd>^T</kbd>)
+- plugins
+ - `.cbcp`: copy selection to system clipboard (internal, program option `-x`)
+ - `.ntfy`: show noti on cp, mv, rm completion (internal, program option `-x`)
+ - `autojump`: navigate using autojump
+ - `upload`: paste text files to http://ix.io, upload rest to https://file.io
+ - all fuzzy plugins modified to support both `fzf` and `fzy`
+- more control on plugins
+ - prefix `-` to skip directory refresh after running (cmd as) plugin
+ - suffix `*` to skip confirmation after running cmd as plugin
+- indicate range selection mode with `*`
+- list keys at bookmark and plugin key prompts
+- visit to pinned dir like bookmarks (Bookmark key followed by <kbd>,</kbd>)
+- toggle executable (key <kbd>*</kbd>)
+- show mime along with file details
+- special keys at empty filter prompt:
+ - apply the last filter (key <kbd>^L</kbd>)
+ - set to string (key <kbd>/</kbd>) or regex (key <kbd>\\</kbd>)
+ - toggle case-sensitivity (<kbd>:</kbd>)
+- retain filter on <kbd>Esc</kbd>, <kbd>Up</kbd>, <kbd>Down</kbd>
+- show filter details when filter is on
+- remove option to run filter as cmd on prompt key (can be disruptive)
+- program options
+ - option `-x`: enable notis and copy selection to system clipboard
+ - option `-g`: regex filters (string filter is default now)
+ - option `-Q`: quit program without confirmation
+ - option `-s`: load session
+ - option `-n`: start in nav-as-you-type mode
+ - option `-v`: version sort
+ - option `-V`: show program version
+ - option `-A`: disable dir auto-select
+- ISO 8601 compliant date in status bar
+- ported to Haiku OS (thanks @annagrram)
+- sort only filtered entries (to avoid directory refresh)
+- fix `getplugs` to install hidden files
+- fix several selection issues (see #400)
+- fix detail mode not restored on loading session
+- fix symlink to directory not auto-selected
+- fix regex error on partial regex patterns
+- fix symlink not shown if `stat(2)` on target fails
+- fix flags when spawning a CLI opener as default FM
+- fix issue with stat flag on Sun (no support for `dirent.d_type`)
+- fix current file in current context not saved correctly in session
+- signed source distribution on release
+- simplified debugging with line numbers in logs
+
+-------------------------------------------------------------------------------
+
nnn v2.8.1
2019-12-05
diff --git a/nnn.1 b/nnn.1
index 2a4692a..185c146 100644
--- a/nnn.1
+++ b/nnn.1
@@ -1,4 +1,4 @@
-.Dd Dec 05, 2019
+.Dd Jan 15, 2020
.Dt NNN 1
.Os
.Sh NAME
@@ -232,9 +232,11 @@ when dealing with the !, e and p commands respectively. A single combination to
----------------------------------- + -------------------------------------------------
Key:Command | Description
----------------------------------- + -------------------------------------------------
+ e:-_vi $nnn* | Edit hovered file in vi
k:-_fuser -kiv $nnn* | Interactively kill process(es) using hovered file
l:_git log | Show git log
n:-_vi /home/user/Dropbox/dir/note* | Take quick notes in a synced file/dir of notes
+ p:-_less -iR $nnn* | Page through hovered file in less
s:_smplayer -minigui $nnn* | Play hovered media file, even unfinished download
x:_chmod +x $nnn | Make the hovered file executable
y:-_sync* | Flush cached writes
diff --git a/plugins/README.md b/plugins/README.md
index 507572c..df77ba4 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -110,9 +110,11 @@ Notes:
| Key:Command | Description |
|---|---|
+| `e:-_vi $nnn*` | Edit hovered file in vi |
| `k:-_fuser -kiv $nnn*` | Interactively kill process(es) using hovered file |
| `l:_git log` | Show git log |
| `n:-_vi /home/user/Dropbox/dir/note*` | Take quick notes in a synced file/dir of notes |
+| `p:-_less -iR $nnn*` | Page through hovered file in less |
| `s:_smplayer -minigui $nnn*` | Play hovered media file, even unfinished download |
| `x:_chmod +x $nnn` | Make the hovered file executable |
| `y:-_sync*` | Flush cached writes |
diff --git a/src/nnn.c b/src/nnn.c
index 8748332..711b0d0 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -106,7 +106,7 @@
#include "dbg.h"
/* Macro definitions */
-#define VERSION "2.8.1"
+#define VERSION "2.9"
#define GENERAL_INFO "BSD 2-Clause\nhttps://github.com/jarun/nnn"
#define SESSIONS_VERSION 1
@@ -2305,8 +2305,7 @@ end:
if (ln[1])
ln[REGEX_MAX - 1] = ln[1];
- if (*ch != 27 && *ch != '\t' && *ch != KEY_UP && *ch != KEY_DOWN
- && *ch != CONTROL('T') && *ch != CONTROL('F')) {
+ if (*ch != 27 && *ch != '\t' && *ch != KEY_UP && *ch != KEY_DOWN && *ch != CONTROL('T')) {
ln[0] = ln[1] = '\0';
move_cursor(cur, 0);
} else if (ndents)