aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-08 08:27:53 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-08 08:27:53 +0530
commit5708585c3b6deac437f4882e5bc111f87febdfac (patch)
treefd85fd20a6e7a0361cad935b9d324648e5be11f5
parent5826da920fdae35cd2abc705a559bf9e59cf94e6 (diff)
downloadnnn-5708585c3b6deac437f4882e5bc111f87febdfac.tar.gz
Add nplay as a plugin
-rw-r--r--README.md2
-rw-r--r--misc/nplay/README.md26
-rw-r--r--plugins/README.md1
-rwxr-xr-xplugins/nplay (renamed from misc/nplay/nplay)4
4 files changed, 4 insertions, 29 deletions
diff --git a/README.md b/README.md
index 2135a77..8fe0829 100644
--- a/README.md
+++ b/README.md
@@ -153,7 +153,7 @@ There is no config file. Associated files are stored under `${XDG_CONFIG_HOME:-$
| Example `export` | Description |
| --- | --- |
-| `NNN_OPENER=nplay` | custom file opener ([nplay](https://github.com/jarun/nnn/blob/master/misc/nplay/nplay)) |
+| `NNN_OPENER=nplay` | custom file opener ([nplay](https://github.com/jarun/nnn/blob/master/plugins/nplay)) |
| `NNN_BMS='d:~/Documents;D:~/Docs archive/'` | key-bookmark pairs [max 10] |
| `NNN_PLUG='o:fzopen;m:nmount;x:_chmod +x $nnn'` | key-plugin (or cmd) pairs (<kbd>:key</kbd> to run) [max 15] |
| `NNN_USE_EDITOR=1` | open text files in `$VISUAL` (else `$EDITOR`, fallback vi) |
diff --git a/misc/nplay/README.md b/misc/nplay/README.md
deleted file mode 100644
index a18e285..0000000
--- a/misc/nplay/README.md
+++ /dev/null
@@ -1,26 +0,0 @@
-## nplay
-
-`nplay` (*NnnPLAY*) is a customizable file opener by file extension or mime type.
-
-It is customizable and written for the CLI mode by default. To set GUI mode and use GUI apps by change the line
-
- GUI=0
-to
-
- GUI=1
-
-### Usage
-
- nplay filepath
-
-### Integration with `nnn`
-
-1. Export the required config:
-
- export NNN_OPENER=/path/to/nplay
- # Otherwise, if nplay is in $PATH
- export NNN_OPENER=nplay
-2. Run `nnn` with the program option to indicate a CLI opener
-
- nnn -c
-3. `nplay` can use `nnn` plugins (e.g. mocplay is used for audio), $PATH is updated to include `nnn` plugins dir.
diff --git a/plugins/README.md b/plugins/README.md
index 54b7e4d..ac89167 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -38,6 +38,7 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina
| mocplay | Append (and/or play) selection/dir/file in moc | sh | [moc](http://moc.daper.net/) |
| nmount | Toggle mount status of a device as normal user | sh | pmount, udisks2 |
| notes | Open a quick notes file/dir in `$EDITOR` | sh | - |
+| nplay | Sample file opener (CLI-only by default) | sh | various |
| oldbigfile | List large files by access time | sh | find, sort |
| organize | Auto-organize files in directories by file type | sh | file |
| pastebin | Paste contents of a text a file ix.io | sh | - |
diff --git a/misc/nplay/nplay b/plugins/nplay
index d3447cd..3ce4692 100755
--- a/misc/nplay/nplay
+++ b/plugins/nplay
@@ -7,9 +7,9 @@
#
# nnn integration:
# 1. Export the required config:
-# export NNN_OPENER=/path/to/nplay
+# export NNN_OPENER=/absolute/path/to/nplay
# # Otherwise, if nplay is in $PATH
-# export NNN_OPENER=nplay
+# # export NNN_OPENER=nplay
# 2. Run nnn with the program option to indicate a CLI opener
# nnn -c
# 3. nplay can use nnn plugins (e.g. mocplay is used for audio), $PATH is updated.