trash.toml
1 [metadata] 2 name = "trash" 3 description = "Browse and manage files in trash" 4 requirements = ["fd"] 5 6 [source] 7 command = "fd -d 1 . $HOME/.Trash" 8 9 [preview] 10 command = "ls -la '{}' 2>/dev/null || file '{}'" 11 12 [keybindings] 13 enter = "actions:reveal" 14 ctrl-d = "actions:delete" 15 16 [actions.reveal] 17 description = "Reveal the selected file in Finder" 18 command = "open -R '{}'" 19 mode = "fork" 20 21 [actions.delete] 22 description = "Permanently delete the selected file" 23 command = "rm -rf '{}'" 24 mode = "fork"