]> Sergey Matveev's repositories - nnn.git/commitdiff
Prepare for release v2.9
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 15 Jan 2020 04:12:23 +0000 (09:42 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 15 Jan 2020 04:12:23 +0000 (09:42 +0530)
CHANGELOG
nnn.1
plugins/README.md
src/nnn.c

index 0f9231c1de7a1fdf767d44e75dbb4b3cb10ae54e..6a010f350c3cc938b241db781594318334f383af 100644 (file)
--- 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 2a4692aecc185089739a711d1e97265f4d0e1bde..185c1463f463279398bf139cc431813a10c610ba 100644 (file)
--- 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
index 507572cdd87cb55eda9167db532ead87cd27bce6..df77ba4ec0ccbfd1b56b9540046394b774e4a14b 100644 (file)
@@ -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 |
index 87483328a4a642ddbf15981ececb7b857b84871a..711b0d0e0bcd356f555b37c4353f7974af12509f 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
 #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)