Operation completion notification

This commit is contained in:
Arun Prakash Jana 2019-12-11 22:53:03 +05:30
parent 7eec6cedab
commit b64df85d23
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 6 additions and 1 deletions

View file

@ -56,6 +56,7 @@ Add to that an awesome [Wiki](https://github.com/jarun/nnn/wiki)!
- Detailed file information
- Media information (using plugin)
- Convenience
- Notification on cp, mv, rm completion (needs ntfy)
- Run plugins and commands with custom keybinds
- FreeDesktop compliant trash (needs trash-cli)
- Cross-dir file/all/range selection
@ -100,6 +101,7 @@ A curses library with wide char support (e.g. ncursesw), libreadline (`make O_NO
| archivemount, fusermount(3) | optional | mount, unmount archives |
| sshfs, [rclone](https://rclone.org/), fusermount(3) | optional | mount, unmount remotes |
| trash-cli | optional | trash files (default action: rm) |
| [ntfy](https://github.com/dschep/ntfy) | optional | operation completion notification |
| vlock (Linux), bashlock (macOS), lock(1) (BSD) | optional | terminal locker (fallback: [cmatrix](https://github.com/abishekvashok/cmatrix)) |
| advcpmv (Linux) ([integration](https://github.com/jarun/nnn/wiki/Advanced-use-cases#show-cp-mv-progress)) | optional | copy, move progress |
| `$VISUAL` (else `$EDITOR`), `$PAGER`, `$SHELL` | optional | fallback vi, less, sh |

View file

@ -138,7 +138,7 @@
#define CTX_MAX 4
#define DOT_FILTER_LEN 7
#define ASCII_MAX 128
#define EXEC_ARGS_MAX 8
#define EXEC_ARGS_MAX 10
#define SCROLLOFF 3
#define MIN_DISPLAY_COLS 10
#define LONG_SIZE sizeof(ulong)
@ -4972,6 +4972,9 @@ nochange:
if (!cpmvrm_selection(sel, path, &presel))
goto nochange;
spawn("ntfy -l CRITICAL -t nnn send Done!",
NULL, NULL, NULL, F_NOWAIT | F_NOTRACE | F_MULTI);
if (ndents)
copycurname();
goto begin;