aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-09-26 19:56:43 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-09-26 19:56:43 +0530
commitd7ce06b10b4c90ff07120ff5ad8f2291971c94fd (patch)
tree5e8ab331e1fdd6725ca2c16619f9745a69387f47 /plugins
parentce8e6a8791710f3327ffc2d1091c08903cb9a619 (diff)
downloadnnn-d7ce06b10b4c90ff07120ff5ad8f2291971c94fd.tar.gz
Add plugin to take quick notes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/README.md1
-rwxr-xr-xplugins/notes15
2 files changed, 16 insertions, 0 deletions
diff --git a/plugins/README.md b/plugins/README.md
index 3ddbcf8..ace5375 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -19,6 +19,7 @@ The currently available plugins are listed below.
| 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 |
+| notes | sh | - | Open a quick notes file/dir in `$EDITOR` |
| nwal | sh | nitrogen | Set image as wallpaper using nitrogen |
| oldbigfile | sh | find, sort | List large files by access time |
| organize | sh | file | Auto-organize files in directories by file type |
diff --git a/plugins/notes b/plugins/notes
new file mode 100755
index 0000000..02b9a0f
--- /dev/null
+++ b/plugins/notes
@@ -0,0 +1,15 @@
+#!/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