diff options
| author | 2019-03-20 21:50:56 +0530 | |
|---|---|---|
| committer | 2019-03-20 21:53:03 +0530 | |
| commit | 20321695ccef71e5727dc5908e31e136cc86bf38 (patch) | |
| tree | f893ec0614298611d41bf972d54e344ba08f6bb2 /user-scripts | |
| parent | 10c8344fbd91fe24063d1a700f7a4b2a2d35426e (diff) | |
| download | nnn-20321695ccef71e5727dc5908e31e136cc86bf38.tar.gz | |
Diff viewer script using vimdiff
Diffstat (limited to 'user-scripts')
| -rw-r--r-- | user-scripts/README.md | 3 | ||||
| -rwxr-xr-x | user-scripts/ndiff | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/user-scripts/README.md b/user-scripts/README.md index 9c2fd83..f4589e9 100644 --- a/user-scripts/README.md +++ b/user-scripts/README.md @@ -7,7 +7,8 @@ | fzy | Fuzzy find a file in directory subtree with fzy and open using xdg-open | | imgur | Upload an image file to imgur | | kdeconnect | Send selected files to Android device using kdeconnect-cli | -| nlaunch | drop-down app launcher (needs fzy), drop in `$PATH`; fallback regular prompt | +| ndiff | File and directory diff for selection using vimdiff | +| nlaunch | Drop-down app launcher (needs fzy), drop in `$PATH`; fallback regular prompt | | picker | Pick files and pipe the newline-separated list to another utility | | sxiv | Open images in current directory in sxiv | | upgrade | Check and update to latest version of nnn manually on Debian 9 Stretch | diff --git a/user-scripts/ndiff b/user-scripts/ndiff new file mode 100755 index 0000000..10af0b3 --- /dev/null +++ b/user-scripts/ndiff @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +# Description: File and directory diff using vimdiff +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +vimdiff $(cat ~/.nnncp | tr '\0' '\n') |