diff --git a/complete.go b/complete.go index 599323e..5bd6dab 100644 --- a/complete.go +++ b/complete.go @@ -60,7 +60,7 @@ var ( "echomsg", "echoerr", "cd", - "get-dirsize", + "calcdirsize", "select", "glob-select", "glob-unselect", diff --git a/doc.go b/doc.go index f041ba3..fc9e25c 100644 --- a/doc.go +++ b/doc.go @@ -31,7 +31,7 @@ The following commands are provided by lf: unselect (default 'u') glob-select glob-unselect - get-dirsize + calcdirsize copy (default 'y') cut (default 'd') paste (default 'p') @@ -277,7 +277,7 @@ Select files that match the given glob. Unselect files that match the given glob. - get-dirsize + calcdirsize Get the total size for each of the selected directories. diff --git a/docstring.go b/docstring.go index eafd161..3999f62 100644 --- a/docstring.go +++ b/docstring.go @@ -35,7 +35,7 @@ The following commands are provided by lf: unselect (default 'u') glob-select glob-unselect - get-dirsize + calcdirsize copy (default 'y') cut (default 'd') paste (default 'p') @@ -289,7 +289,7 @@ Select files that match the given glob. Unselect files that match the given glob. - get-dirsize + calcdirsize Get the total size for each of the selected directories. diff --git a/eval.go b/eval.go index b9e754f..0ad2595 100644 --- a/eval.go +++ b/eval.go @@ -919,10 +919,10 @@ func (e *callExpr) eval(app *app, args []string) { app.nav.invert() case "unselect": app.nav.unselect() - case "get-dirsize": + case "calcdirsize": err := app.nav.getDirSize() if err != nil { - app.ui.echoerrf("get-dirsize: %s", err) + app.ui.echoerrf("calcdirsize: %s", err) return } app.ui.loadFileInfo(app.nav) diff --git a/lf.1 b/lf.1 index dbe9311..773090f 100644 --- a/lf.1 +++ b/lf.1 @@ -47,7 +47,7 @@ The following commands are provided by lf: unselect (default 'u') glob-select glob-unselect - get-dirsize + calcdirsize copy (default 'y') cut (default 'd') paste (default 'p') @@ -324,7 +324,7 @@ Select files that match the given glob. Unselect files that match the given glob. .PP .EX - get-dirsize + calcdirsize .EE .PP Get the total size for each of the selected directories.