Asynchronous delete (#238)

* Asynchronous deletion, similar to moving

* Reversed some sloppy new lines from previous commit

* Move delete operations to delete.go

* Simplify to use RemoveAll before

* Send errors directly to ui.exprChan directly
This commit is contained in:
Juris Arturs Majors authored and gokcehan committed 2019-12-02 14:27:58 +03:00
1 parent 8327505398
commit f76bf30f65
3 files changed
+24 -5

No files matched your search

+5
View File
@@ -179,6 +179,11 @@ func (app *app) loop() {
continue
}
if app.nav.deleting {
app.ui.echoerr("quit: delete operation in progress")
continue
}
log.Print("bye!")
if err := app.writeHistory(); err != nil {