Bug 235022 - misc/nnn: Update to 2.2
Summary: misc/nnn: Update to 2.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 11:22 UTC by Sijmen J. Mulder
Modified: 2019-01-26 11:55 UTC (History)
1 user (show)

See Also:
dmgk: maintainer-feedback+


Attachments
nnn 2.0 to 2.2 diff (2.72 KB, patch)
2019-01-17 11:22 UTC, Sijmen J. Mulder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sijmen J. Mulder 2019-01-17 11:22:44 UTC
Created attachment 201207 [details]
nnn 2.0 to 2.2 diff

Upstream changes in 2.1:

 - Inclusion in several distros including Arch Linux official repo
 - Multiple contexts (_aka_ tabs _aka_ workspaces) [max 4]
 - Copy, move, remove selected files, remove current file
 - [Leader key](https://github.com/jarun/nnn#leader-key) (like vim)
 - In-built  GUI app launcher with up to 2 arguments (key o)
 - List copy selection (key y)
 - Env var NNN_NO_AUTOSELECT to disable dir auto-select
 - Key Esc exits prompt, ^L clears prompt
 - Program runtime help revamped
 - Static code analysis integration
 - gcc-8 warnings fixed
 - Remapped keys:
   - ^W - go to pinned dir
   - ^X - delete current entry
   - ^Q - quit program
 - nlay is retired (functionality built into nnn)
 - chdir prompt is retired
 - Env var NNN_NO_X retired, selection now works out of the box
 - Only single-char bookmark keys (to work with Leader key)
 
Upstream changes in 2.2:

 - (neo)vim plugin [nnn.vim](https://github.com/mcchrish/nnn.vim)
 - macOS fixes
   - Fix issues with file copy, move, remove
   - Handle Del in rename prompt
   - Pass correct file option to identify mime
 - Support selection across directories and contexts
 - Offer option force before file remove
 - Keys Tab, ^I to go to next active context
 - Per-context directory color specified by $NNN_CONTEXT_COLORS
   - Option -c is removed
 - Option -C to disable colors
 - Choose script to run from a script directory
 - Run a command (or launch an application)
 - Run file as executable (key C)
 - Documentation on lftp integration for remote file transfers
 - Support a _combined_ set of arguments to $EDITOR, $PAGER and $SHELL
 - Handle > 2 GB files on 32-bit ARM
 - Env var $DISABLE_FILE_OPEN_ON_NAV to disable file open on Right or l
 - NUL-terminated file paths in selection list instead of LF
 - Better support for Termux and Cygwin environments
 - Remapped keys
   - ^I - go to next active context
   - ^T - toggle _navigate-as-you-type_

Port changes:

 - nlay is no longer a required component and has been moved to
   examples (see https://github.com/jarun/nnn/issues/192). Hence the
   bash dependency and shebang fix can be dropped.
 - Made xdg-open an optional dependency.
 - Upstream Makefile has ncurses vars that can be overriden so the
   patch is no longer needed.
 - pkg-config was never needed; it was only used to find ncurses.
Comment 1 Dmitri Goutnik freebsd_committer freebsd_triage 2019-01-18 23:23:54 UTC
(In reply to Sijmen J. Mulder from comment #0)

Looks good, thanks for the update.

QA:
  poudriere testport: OK (112i, 112a, 120a)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2019-01-26 11:54:41 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-01-26 11:55:02 UTC
A commit references this bug:

Author: swills
Date: Sat Jan 26 11:54:00 UTC 2019
New revision: 491270
URL: https://svnweb.freebsd.org/changeset/ports/491270

Log:
  misc/nnn: update to 2.2

  PR:		235022
  Submitted by:	Sijmen J. Mulder <ik@sjmulder.nl>
  Approved by:	Dmitri Goutnik <dg@syrec.org> (maintainer)

Changes:
  head/misc/nnn/Makefile
  head/misc/nnn/distinfo
  head/misc/nnn/files/