]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove plugin notes, update docs to run cmd as plugin
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 2 Jan 2020 18:34:31 +0000 (00:04 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 2 Jan 2020 18:34:31 +0000 (00:04 +0530)
plugins/README.md
plugins/notes [deleted file]

index ecc0478997faa614fb76c53b08c2ac096373125f..3f8fc4b4c17d2dfaabbd8e427f10e9013d09bcd8 100644 (file)
@@ -38,7 +38,6 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina
 | moclyrics | Show lyrics of the track playing in moc | sh | [ddgr](https://github.com/jarun/ddgr), [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 |
-| notes | Open a quick notes file/dir in `$EDITOR` | sh | - |
 | nuke | 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 |
@@ -98,9 +97,9 @@ Now <kbd>;x</kbd> can be used to make a file executable, <kbd>;g</kbd> can be us
 
 `nnn` waits for user confirmation (the prompt `Press Enter to continue`) after it executes a command as plugin (unlike plugins which can add a `read` to wait). To skip this, add a `*` after the command. For example:
 
-    export NNN_PLUG='s:_smplayer $nnn*'
+    export NNN_PLUG='s:_smplayer $nnn*;n:-_vim /home/vaio/Dropbox/Public/synced_note*'
 
-Now there will be no prompt after <kbd>;s</kbd>.
+Now there will be no prompt after <kbd>;s</kbd> and <kbd>;n</kbd>.
 
 Notes:
 
diff --git a/plugins/notes b/plugins/notes
deleted file mode 100755 (executable)
index 02b9a0f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Open a quick notes file or directory in $EDITOR
-#
-# Details: Set the variable NOTE to the path to your quick notes file
-#
-# Shell: POSIX compliant
-# Author: Arun Prakash Jana
-
-NOTE=
-# NOTE=~/Dropbox/Notes/synced_note
-
-if [ ! -z "$NOTE" ]; then
-   $EDITOR "$NOTE"
-fi