mirror of
https://github.com/prdlk/television.git
synced 2026-11-02 13:12:51 +00:00
Import from root chezmoi source
This commit is contained in:
commit
c8c8c9a000
77 files changed
+2443
No files matched your search
@@ -0,0 +1,31 @@
|
||||
[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"
|
||||
Reference in new issue
Block a user