login

<     >

2015-08-05 20:08:40 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

Add optional alert to inform that a batch operation has finished.

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. */