mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
27 lines
538 B
TOML
27 lines
538 B
TOML
[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"
|