diff --git a/doc.go b/doc.go index 447d29d..e7b51e1 100644 --- a/doc.go +++ b/doc.go @@ -317,6 +317,11 @@ followed by "put". These traditional names (e.g. "yank", "delete", and "put") are picked instead of the other common convention (e.g. copy and cut) to resemble the default keybinds for these operations. +By default, lf does not provide an actual file deletion command to protect new +users. You can define such a command and optionally assign a key if you like. +An example command to move selected files to a trash folder and remove files +completely are provided in the example configuration file. + Opening Files You can use "open-file" command to open a file. This is a special command diff --git a/docstring.go b/docstring.go index f01b531..e1d2d2c 100644 --- a/docstring.go +++ b/docstring.go @@ -331,6 +331,11 @@ followed by "put". These traditional names (e.g. "yank", "delete", and "put") are picked instead of the other common convention (e.g. copy and cut) to resemble the default keybinds for these operations. +By default, lf does not provide an actual file deletion command to protect +new users. You can define such a command and optionally assign a key if you +like. An example command to move selected files to a trash folder and remove +files completely are provided in the example configuration file. + Opening Files diff --git a/etc/lfrc.example b/etc/lfrc.example index cc99b95..45a98f2 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -88,6 +88,14 @@ $mkdir -p $HOME/.trash # (see 'man mv' or 'mv --help' for backup options) cmd trash $IFS=':'; mv --backup=numbered $fx $HOME/.trash +# remove current file or selected files (prompting) +#cmd remove ${{ +# echo "$fx" | tr ':' '\n' +# echo -n 'remove?[y/n]' +# read ans +# [ $ans = 'y' ] && (IFS=':'; rm -rf $fx) +#}} + # extract the current file with the right command # (xkcd link: https://xkcd.com/1168/) cmd extract ${{