Files
dotfiles/television/cable/dirs.toml
T

26 lines
538 B
TOML
Raw Normal View History

[metadata]
name = "dirs"
description = "A channel to select from directories"
requirements = ["fd"]
[source]
command = [
{ name = "Default", run = "fd -t d" },
{ name = "Hidden", run = "fd -t d --hidden" },
]
[preview]
command = "ls -la --color=always '{}'"
[keybindings]
shortcut = "f2"
[actions.cd]
description = "Open a shell in the selected directory"
command = "cd {} && $SHELL"
mode = "execute"
[actions.goto_parent_dir]
description = "Re-opens tv in the parent directory"
command = "tv dirs .. --inline"
mode = "execute"