From 617334025364b31e0e61b901131e3f8c456aea51 Mon Sep 17 00:00:00 2001 From: Marcel Rodrigues Date: Wed, 5 Aug 2015 20:08:40 -0300 Subject: [PATCH] Add optional alert to inform that a batch operation has finished. --- config.h | 3 +++ rover.c | 1 + 2 files changed, 4 insertions(+) diff --git a/config.h b/config.h index 044dd33..b5228cb 100644 --- a/config.h +++ b/config.h @@ -57,3 +57,6 @@ #define RVP_RENAME RV_PROMPT("rename") #define RV_JUMP 10 + +/* Optional macro to be executed when a batch operation finishes. */ +#define RV_ALERT() beep() diff --git a/rover.c b/rover.c index a95eee4..98a5510 100644 --- a/rover.c +++ b/rover.c @@ -663,6 +663,7 @@ process_marked(PROCESS pre, PROCESS proc, PROCESS pos, message(GREEN, "%s all marked entries.", msg_done); else message(RED, "Some errors occured while %s.", msg_doing); + RV_ALERT(); } /* Wrappers for file operations. */ -- 2.11.4.GIT