aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.1
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-05 23:56:38 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-06 02:13:58 +0530
commitfe775ccf1fe75a09c2ef7f95b0dff97e37f0aa9b (patch)
tree610eb7004954237b3501cf6c65f2349d2e79bd07 /nnn.1
parent94ed36b498a80e275dffdbb1ed85c89b3df49324 (diff)
downloadnnn-fe775ccf1fe75a09c2ef7f95b0dff97e37f0aa9b.tar.gz
desktop opener - xdg-open on Linux and open(1) on OS X
Diffstat (limited to 'nnn.1')
-rw-r--r--nnn.130
1 files changed, 11 insertions, 19 deletions
diff --git a/nnn.1 b/nnn.1
index 95c0ec8..5569f31 100644
--- a/nnn.1
+++ b/nnn.1
@@ -15,7 +15,7 @@
.Op Ar PATH
.Sh DESCRIPTION
.Nm
-(Noice is Not Noice) is a performance-optimized fork of the noice terminal file browser with improved desktop integration, customizable media type handler, simplified navigation, navigate-as-you-type mode, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
+(Noice is Not Noice) is a performance-optimized fork of the noice terminal file browser with extensive desktop integration, customizable text file or action handler, simplified navigation, navigate-as-you-type mode, disk usage analyzer mode, comprehensive file details and much more. It remains a simple and efficient file browser that stays out of your way.
.Pp
.Nm
defaults to the current directory if
@@ -118,23 +118,18 @@ supports the following options:
show program help and exit
.Sh CONFIGURATION
.Nm
+uses \fIxdg-open\fR (on Linux) and \fIopen(1)\fR (on OS X) as the desktop
+opener. If \fBNNN_OPENER\fR (see ENVIRONMENT section below) is not set,
+.Nm
invokes
.Pa nlay
-to play files recognized by extension. It is a highly customizable bash shell
-script which invokes a player depending on the
-type of file. Read more on
+to view text files (recognized by extension) or run actions. It is a highly
+customizable bash shell script. Read more on
.Pa nlay
at:
.br
.Em https://github.com/jarun/nnn/wiki/all-about-nlay
.Pp
-.Nm
-is configured by modifying
-.Pa config.def.h
-and recompiling the code. config.h is generated as a backup of config.def.h.
-.Pp
-See the environment and examples sections below for more options and information.
-.Pp
Configuring
.Nm
to change to the last visited directory on quit requires shell integration in a
@@ -169,14 +164,11 @@ when dealing with the !, e and p commands respectively.
\fBNNN_DE_FILE_MANAGER:\fR set to a desktop file manager to open the current
directory with.
.Pp
-\fBNNN_OPENER:\fR set to your desktop environment's default
-mime opener to override all custom mime associations.
-.br
-Examples: xdg-open, gio open, gvfs-open.
-.Pp
-\fBNNN_FALLBACK_OPENER:\fR set to your desktop environment's default
-mime opener to use as a fallback when no association is set for a file
-type. Custom associations are listed in the EXAMPLES section below.
+\fBNNN_OPENER:\fR set \fIxdg-open\fR (on Linux) or \fIopen(1)\fR desktop opener
+to handle all file types.
+.Bd -literal
+ export NNN_OPENER=1
+.Ed
.Pp
\fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal
screensaver.