Add clearmaps command (#1286)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-06-04 18:56:39 +03:00
1 parent c874a2c56f
commit 2c13e0d7d6
5 files changed
+27

No files matched your search

+7
View File
@@ -41,6 +41,7 @@ The following commands are provided by lf:
glob-select
glob-unselect
calcdirsize
clearmaps
copy (default 'y')
cut (default 'd')
paste (default 'p')
@@ -382,6 +383,12 @@ Calculate the total size for each of the selected directories.
Option 'info' should include 'size' and option 'dircounts' should be disabled to show this size.
If the total size of a directory is not calculated, it will be shown as '-'.
clearmaps
Remove all keybindings associated with the `map` command.
This command can be used in the config file to remove the default keybindings.
For safety purposes, `:` is left mapped to the `read` command, and `cmap` keybindings are retained so that it is still possible to exit `lf` using `:quit`.
copy (default 'y')
If there are no selections, save the path of the current file to the copy buffer, otherwise, copy the paths of selected files.