From e1c91e1aefc1a20e738fc1b4d5b2a612ff959ffd Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 2 Jan 2020 05:11:00 +0530 Subject: Plugin rename --- plugins/README.md | 2 +- plugins/chmodx | 14 ++++++++++++++ plugins/exetoggle | 14 -------------- 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100755 plugins/chmodx delete mode 100755 plugins/exetoggle (limited to 'plugins') diff --git a/plugins/README.md b/plugins/README.md index 6c8f0ee..25c5b57 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -18,9 +18,9 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina | boom | Play random music from dir | sh | [moc](http://moc.daper.net/) | | dups | List non-empty duplicate files in current dir | sh | find, md5sum,
sort uniq xargs | | chksum | Create and verify checksums | sh | md5sum,
sha256sum | +| chmodx | Toggle executable status of hovered file | sh | chmod | | diffs | Diff for selection (limited to 2 for directories) | sh | vimdiff | | dragdrop | Drag/drop files from/into nnn | sh | [dragon](https://github.com/mwh/dragon) | -| exetoggle | Toggle executable status of hovered file | sh | chmod | | fzcd | Change to the directory of a fuzzy-selected file/dir | sh | fzf/fzy
fd/fdfind/find | | fzhist | Fuzzy-select a cmd from history, edit in `$EDITOR` and run | sh | fzf/fzy | | fzopen | Fuzzy find a file in dir subtree and edit or open | sh | fzf/fzy, xdg-open | diff --git a/plugins/chmodx b/plugins/chmodx new file mode 100755 index 0000000..1ad8467 --- /dev/null +++ b/plugins/chmodx @@ -0,0 +1,14 @@ +#!/usr/bin/env sh + +# Description: Toggle executable status of hovered file +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +if ! [ -z "$1" ]; then + if [ -x "$1" ]; then + chmod -x "$1" + else + chmod +x "$1" + fi +fi diff --git a/plugins/exetoggle b/plugins/exetoggle deleted file mode 100755 index 1ad8467..0000000 --- a/plugins/exetoggle +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env sh - -# Description: Toggle executable status of hovered file -# -# Shell: POSIX compliant -# Author: Arun Prakash Jana - -if ! [ -z "$1" ]; then - if [ -x "$1" ]; then - chmod -x "$1" - else - chmod +x "$1" - fi -fi -- cgit v1.2.3-70-g09d2