diff --git a/nav.go b/nav.go index 68e4a48..f369877 100644 --- a/nav.go +++ b/nav.go @@ -694,6 +694,13 @@ loop: echo.args[0] = fmt.Sprintf("[%d] %s", errCount, err) ui.exprChan <- echo } + + if errCount == 0 { + echosuccess := &callExpr{"echo", []string{""}, 1} + echosuccess.args[0] = "\033[0;32mCopied successfully\033[0m" + + ui.exprChan <- echosuccess + } } func (nav *nav) moveAsync(ui *ui, srcs []string, dstDir string) { @@ -790,6 +797,13 @@ func (nav *nav) moveAsync(ui *ui, srcs []string, dstDir string) { echo.args[0] = fmt.Sprintf("[%d] %s", errCount, err) ui.exprChan <- echo } + + if errCount == 0 { + echosuccess := &callExpr{"echo", []string{""}, 1} + echosuccess.args[0] = "\033[0;32mMoved successfully\033[0m" + + ui.exprChan <- echosuccess + } } func (nav *nav) paste(ui *ui) error {