aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-11 17:52:38 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-11 17:52:38 +0530
commitf527dd1c6a6f2065ce9cdfb4337399021265631f (patch)
treeaeba9045479232bb6e240b8bd4a2c7cf7834601c /plugins
parent29fe67b7995d0db5e96df6f949acc06c94a54e82 (diff)
downloadnnn-f527dd1c6a6f2065ce9cdfb4337399021265631f.tar.gz
Integrate batch renamer plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/README.md2
-rwxr-xr-xplugins/batchrename9
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/README.md b/plugins/README.md
index 0728fbf..dc6ec64 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -27,7 +27,7 @@ Plugins are installed to `${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins`.
| Plugin (a-z) | Description | Lang | Deps |
| --- | --- | --- | --- |
| autojump | Navigate to dir/path (**autojump stores navigation patterns**) | sh | autojump |
-| batchrename | Batch file renamer | sh | mktemp |
+| batchrename | Batch rename selection or dir entries | sh | mktemp |
| boom | Play random music from dir | sh | [moc](http://moc.daper.net/) |
| dups | List non-empty duplicate files in current dir | sh | find, md5sum,<br>sort uniq xargs |
| chksum | Create and verify checksums | sh | md5sum,<br>sha256sum |
diff --git a/plugins/batchrename b/plugins/batchrename
index b22b9ae..b9b9a84 100755
--- a/plugins/batchrename
+++ b/plugins/batchrename
@@ -2,6 +2,15 @@
# Description: An almost fully POSIX compliant batch file renamer
#
+# Note: nnn auto-detects and invokes this plugin if available
+#
+# Capabilities:
+# 1. Basic file rename
+# 2. Detects order change
+# 3. Can move files
+# 4. Can remove files
+# 5. Switch number pairs to swap filenames
+#
# Shell: POSIX compliant
# Author: KlzXS