mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
32 lines
723 B
TOML
32 lines
723 B
TOML
[metadata]
|
|
name = "downloads"
|
|
description = "Browse recent files in Downloads folder"
|
|
requirements = ["fd", "bat"]
|
|
|
|
[source]
|
|
command = "fd -t f . ~/Downloads 2>/dev/null | head -200"
|
|
|
|
[preview]
|
|
command = "bat -n --color=always '{}' 2>/dev/null || file '{}'"
|
|
env = { BAT_THEME = "ansi" }
|
|
|
|
[keybindings]
|
|
enter = "actions:open"
|
|
ctrl-d = "actions:delete"
|
|
ctrl-m = "actions:move"
|
|
|
|
[actions.open]
|
|
description = "Open the selected file with default application"
|
|
command = "xdg-open {} 2>/dev/null || open {}"
|
|
mode = "fork"
|
|
|
|
[actions.delete]
|
|
description = "Delete the selected file"
|
|
command = "rm -i {}"
|
|
mode = "execute"
|
|
|
|
[actions.move]
|
|
description = "Move the selected file to current directory"
|
|
command = "mv {} ."
|
|
mode = "fork"
|