Bladeren bron

Various plugin fixes

1. getplugs should work even if nnn is not run
2. Remove redundant ./ prefix
3. Update plugin docs
master
Arun Prakash Jana 5 jaren geleden
bovenliggende
commit
5b7448bac9
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: A75979F35C080412
3 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. +1
    -1
      plugins/README.md
  2. +3
    -0
      plugins/fzcd
  3. +1
    -0
      plugins/getplugs

+ 1
- 1
plugins/README.md Bestand weergeven

@@ -47,7 +47,7 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina
| ringtone | sh | date, ffmpeg | Create a variable bitrate mp3 ringtone from file |
| splitjoin | sh | split, cat | Split file or join selection |
| suedit | sh | sudoedit/sudo/doas | Edit file using superuser permissions |
| sxiv | sh | sxiv | Browse images in dir, set wallpaper, copy path ([config](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts)), [rename](https://github.com/jarun/nnn/wiki/Basic-use-cases#browse-rename-images)|
| sxiv | sh | sxiv | Browse images, set wallpaper, copy path ([config](https://wiki.archlinux.org/index.php/Sxiv#Assigning_keyboard_shortcuts)), [rename](https://github.com/jarun/nnn/wiki/Basic-use-cases#browse-rename-images)|
| thumb | sh | [lsix](https://github.com/hackerb9/lsix) | View thumbnail of an image or dir of images |
| transfer | sh | curl | Upload file to transfer.sh |
| treeview | sh | tree | Informative tree output in `$EDITOR` |


+ 3
- 0
plugins/fzcd Bestand weergeven

@@ -28,5 +28,8 @@ if [ "$?" -eq "0" ]; then
*directory*) ;;
*) sel=$(dirname "$sel") ;;
esac

# Remove "./" prefix
sel="$(echo "$sel" | cut -c 3-)"
nnn_cd "$PWD/$sel"
fi

+ 1
- 0
plugins/getplugs Bestand weergeven

@@ -44,6 +44,7 @@ if [ -d $PLUGIN_DIR ]; then
tar -C $CONFIG_DIR -czf $CONFIG_DIR"plugins-$(date '+%Y%m%d%H%M').tar.gz" plugins/
fi

mkdir -p $PLUGIN_DIR
cd $CONFIG_DIR
curl -Ls -O https://github.com/jarun/nnn/archive/master.tar.gz
tar -zxf master.tar.gz


Laden…
Annuleren
Opslaan