Skip to content

Commit

Permalink
Prepare for release v2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jan 15, 2020
1 parent 4930f34 commit 73a2919
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 4 deletions.
58 changes: 58 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 3 additions & 1 deletion nnn.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.Dd Dec 05, 2019
.Dd Jan 15, 2020
.Dt NNN 1
.Os
.Sh NAME
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
5 changes: 2 additions & 3 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -2305,8 +2305,7 @@ static int filterentries(char *path, char *lastname)
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)
Expand Down

17 comments on commit 73a2919

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szlin, @dilawar, @eclipso, @fornwall @sjmulder nnn v2.9 is released!

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annagrram please update Haiku.

@dilawar
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitted to opensuse.

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@annagrram
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annagrram please update Haiku.

I updated it on the release day :)

@sjmulder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's on hold in pkgsrc where nnn crashes when linked against the NetBSD's libedit instead of GNU readline (we try to use system libraries where possible):

Program received signal SIGSEGV, Segmentation fault.
#0  0x00007b5bb26023c3 in ti_getstr () from /usr/lib/libterminfo.so.1
#1  0x00007b5bb2220325 in ?? () from /usr/pkg/lib/libncursesw.so.6
#2  0x00007b5bb2220479 in ?? () from /usr/pkg/lib/libncursesw.so.6
#3  0x00007b5bb2220c17 in mousemask_sp () from /usr/pkg/lib/libncursesw.so.6
#4  0x000000000040bede in main ()

I'm trying to fix it but if I can't find a solution in the next few days I'll force the use of GNU readline instead.

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjmulder is this newly introduced in v2.9?

@sjmulder
Copy link
Collaborator

@sjmulder sjmulder commented on 73a2919 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjmulder is this newly introduced in v2.9?

I believe so but I haven't bisected yet. It could also be something with ncurses. I'm rebuilding my NetBSD userland with debug symbols but the VM ran out of disk space etc etc but I'll get there.

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Please let me know the scenario. We should try to fix it on libedit rather than changing the library.

@eclipseo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built in Fedora.

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjmulder can you please check if commit abd1df8 fixes the issue?

@fornwall
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Termux package has been updated, thanks @jarun for the notification!

@sjmulder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjmulder can you please check if commit abd1df8 fixes the issue?

Unfortunately it does not. I've opened a separate issue for it: #445

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szlin any update?

@szlin
Copy link
Collaborator

@szlin szlin commented on 73a2919 Jan 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jarun New version of nnn has been updated!

@jarun
Copy link
Owner Author

@jarun jarun commented on 73a2919 Jan 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Lin!

Please sign in to comment.