Crates.io | conceal |
lib.rs | conceal |
version | 0.5.4 |
source | src |
created_at | 2022-08-26 21:40:35.374404 |
updated_at | 2024-09-01 13:23:30.802104 |
description | Command line recycle bin |
homepage | |
repository | https://github.com/TD-Sky/conceal |
max_upload_size | |
id | 653067 |
size | 36,304 |
conceal is a command line tool based on trash-rs which implements The FreeDesktop.org Trash specification.
You can use conceal to:
Throw the files in the trash bin;
List all the discarded files;
Delete all the discarded files permanently;
Restore files discarded under the current directory.
conceal restore
use skim and fzf (default) as finder.
You can choose either one with the --finder
option whose value is also controlled by environment variable CONCEAL_FINDER
.
Value priority:
--finder
>CONCEAL_FINDER
Refer to conceal restore -h
for more information.
conceal
predefines some options of finder command to make an ergonomic interface:
--multi --ansi --reverse --cycle --bind='ctrl-a:select-all,ctrl-r:toggle-all'
.
You can add more options you like via environment variable FZF_DEFAULT_COMMAND
.
fzf options reference:
man 1 fzf
Key bindings:
Key | Action |
---|---|
ctrl-a |
Select all items |
ctrl-r |
Inverse selection of all items |
You need to install finder skim or fzf before using conceal.
$ cargo install conceal
$ paru -S conceal
or binary package:
$ paru -S conceal-bin
There are two binaries: cnc
and conceal
.
cnc
is to put files into recycle bin; conceal
is to operate the recycle bin.
Tab
is the multi-selection and multi-cancel key.