mirror of
https://github.com/prdlk/television.git
synced 2026-11-02 21:22:53 +00:00
21 lines
564 B
TOML
21 lines
564 B
TOML
[metadata]
|
|||
|
|
name = "images"
|
||
|
|
description = "Browse image files with preview"
|
||
|
|
requirements = ["fd", "chafa"]
|
||
|
|
|
||
|
|
[source]
|
||
|
|
command = [
|
||
|
|
{ name = "Default", run = "fd -t f -e png -e jpg -e jpeg -e gif -e webp -e bmp -e svg ." },
|
||
|
|
{ name = "Hidden", run = "fd -t f -e png -e jpg -e jpeg -e gif -e webp -e bmp -e svg -H ." },
|
||
|
|
]
|
||
|
|
|
||
|
|
[preview]
|
||
|
|
command = "chafa -s 80x40 '{}' 2>/dev/null || file '{}'"
|
||
|
|
|
||
|
|
[keybindings]
|
||
|
|
enter = "actions:open"
|
||
|
|
|
||
|
|
[actions.open]
|
||
|
|
description = "Open the selected image with default viewer"
|
||
|
|
command = "xdg-open {} 2>/dev/null || open {}"
|
||
|
|
mode = "fork"
|