mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Rename opener nplay to nuke
This commit is contained in:
parent
5708585c3b
commit
77ebfff98b
|
@ -153,7 +153,7 @@ There is no config file. Associated files are stored under `${XDG_CONFIG_HOME:-$
|
||||||
|
|
||||||
| Example `export` | Description |
|
| Example `export` | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `NNN_OPENER=nplay` | custom file opener ([nplay](https://github.com/jarun/nnn/blob/master/plugins/nplay)) |
|
| `NNN_OPENER=nuke` | custom file opener (see plugin `nuke`) |
|
||||||
| `NNN_BMS='d:~/Documents;D:~/Docs archive/'` | key-bookmark pairs [max 10] |
|
| `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_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) |
|
| `NNN_USE_EDITOR=1` | open text files in `$VISUAL` (else `$EDITOR`, fallback vi) |
|
||||||
|
|
4
nnn.1
4
nnn.1
|
@ -232,9 +232,9 @@ when dealing with the !, e and p commands respectively. A single combination to
|
||||||
.Pp
|
.Pp
|
||||||
\fBNNN_OPENER:\fR specify a custom file opener.
|
\fBNNN_OPENER:\fR specify a custom file opener.
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
export NNN_OPENER=nplay
|
export NNN_OPENER=nuke
|
||||||
|
|
||||||
nplay source: https://github.com/jarun/nnn/blob/master/misc/nplay/nplay
|
NOTE: `nuke` is a file opener available in plugin repository
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
\fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
|
\fBNNN_IDLE_TIMEOUT:\fR set idle timeout (in seconds) to invoke terminal locker (default: disabled).
|
||||||
|
|
|
@ -38,7 +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/) |
|
| 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 |
|
| nmount | Toggle mount status of a device as normal user | sh | pmount, udisks2 |
|
||||||
| notes | Open a quick notes file/dir in `$EDITOR` | sh | - |
|
| notes | Open a quick notes file/dir in `$EDITOR` | sh | - |
|
||||||
| nplay | Sample file opener (CLI-only by default) | sh | various |
|
| nuke | Sample file opener (CLI-only by default) | sh | various |
|
||||||
| oldbigfile | List large files by access time | sh | find, sort |
|
| oldbigfile | List large files by access time | sh | find, sort |
|
||||||
| organize | Auto-organize files in directories by file type | sh | file |
|
| organize | Auto-organize files in directories by file type | sh | file |
|
||||||
| pastebin | Paste contents of a text a file ix.io | sh | - |
|
| pastebin | Paste contents of a text a file ix.io | sh | - |
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
# nplay: a sample script to play files in different apps by file type and mime
|
# nuke: a sample script to play files in different apps by file type and mime
|
||||||
# shell: POSIX compliant
|
# shell: POSIX compliant
|
||||||
# usage: nplay filepath
|
# usage: nuke filepath
|
||||||
#
|
#
|
||||||
# nnn integration:
|
# nnn integration:
|
||||||
# 1. Export the required config:
|
# 1. Export the required config:
|
||||||
# export NNN_OPENER=/absolute/path/to/nplay
|
# export NNN_OPENER=/absolute/path/to/nuke
|
||||||
# # Otherwise, if nplay is in $PATH
|
# # Otherwise, if nuke is in $PATH
|
||||||
# # export NNN_OPENER=nplay
|
# # export NNN_OPENER=nuke
|
||||||
# 2. Run nnn with the program option to indicate a CLI opener
|
# 2. Run nnn with the program option to indicate a CLI opener
|
||||||
# nnn -c
|
# nnn -c
|
||||||
# 3. nplay can use nnn plugins (e.g. mocplay is used for audio), $PATH is updated.
|
# 3. nuke can use nnn plugins (e.g. mocplay is used for audio), $PATH is updated.
|
||||||
#
|
#
|
||||||
# details:
|
# details:
|
||||||
# Inspired by ranger's scope.sh, modified for usage with nnn.
|
# Inspired by ranger's scope.sh, modified for usage with nnn.
|
Loading…
Reference in a new issue