aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-15 11:06:41 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-15 11:11:23 +0530
commit9282eff925ca636ce673b3ed61b3bee9b8b6414a (patch)
treef2a1e3603e71f4c9131af3ebbcde5ff640703d12
parent7575a3e031d0af5b946cec510f32d528badd4755 (diff)
downloadnnn-9282eff925ca636ce673b3ed61b3bee9b8b6414a.tar.gz
Update plugin docs
-rw-r--r--plugins/README.md10
-rwxr-xr-xplugins/moclyrics2
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/README.md b/plugins/README.md
index 9c6b52d..d81cb6f 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -14,7 +14,7 @@ The currently available plugins are listed below.
| imgur | bash | - | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) |
| ipinfo | sh | curl, whois | Fetch external IP address and whois information |
| kdeconnect | sh | kdeconnect-cli | Send selected files to an Android device |
-| moclyrics | sh | [ddgr](https://github.com/jarun/ddgr), [moc](http://moc.daper.net/) | Show lyrics of current track in moc |
+| moclyrics | sh | [ddgr](https://github.com/jarun/ddgr), [moc](http://moc.daper.net/) | Show lyrics of the track playing in moc |
| mocplay | sh | [moc](http://moc.daper.net/) | Appends (and plays, see script) selection/dir/file in moc|
| ndiff | sh | vimdiff | Diff for selection (limited to 2 for directories) |
| nmount | sh | pmount, udisks2 | Toggle mount status of a device as normal user |
@@ -52,13 +52,13 @@ Each script has a _Description_ section which provides more details on what the
There are 2 ways to run plugins:
-1. Use the _pick plugin_ shortcut to visit the plugin directory and execute a plugin. Repeating the same shortcut cancels the operation and puts you back in the original directory.
-
-2. To run (up to 10) plugins directly with <kbd>x-key</kbd>:
+1. Directly with <kbd>x-key</kbd>:
export NNN_PLUG='o:fzy-open;p:mocplay;d:ndiff;m:nmount;t:thumb'
- With this, plugin `fzy-open` can be run with the keybind <kbd>xo</kbd>, `mocplay` can be run with <kbd>xp</kbd> and so on... The key vs. plugin pairs are shown in the help and config screen.
+ With this, plugin `fzy-open` can be run with the keybind <kbd>xo</kbd>, `mocplay` can be run with <kbd>xp</kbd> and so on... The key vs. plugin pairs are shown in the help and config screen. Up to 10 plugins can have such keybinds.
+
+2. Use the _pick plugin_ shortcut to visit the plugin directory and execute a plugin. Repeating the same shortcut cancels the operation and puts you back in the original directory.
#### Contributing plugins
diff --git a/plugins/moclyrics b/plugins/moclyrics
index 36bf785..1bb0624 100755
--- a/plugins/moclyrics
+++ b/plugins/moclyrics
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
-# Description: Fetches the lyrics of the currently playing track in MOC
+# Description: Fetches the lyrics of the track currently playing in MOC
# Requires ddgr (https://github.com/jarun/ddgr)
#
# Shell: POSIX compliant