television/cable/unix/files.toml

20 lines
386 B
TOML

[metadata]
name = "files"
description = "A channel to select files and directories"
requirements = ["fd", "bat"]
[source]
command = ["fd -t f", "fd -t f -H"]
[preview]
command = "bat -n --color=always '{}'"
env = { BAT_THEME = "ansi" }
[keybindings]
shortcut = "f1"
ctrl-f12 = "actions:edit"
[actions.edit]
description = "Opens the selected entries with Neovim"
command = "nvim {}"