[metadata] name = "dirs" description = "A channel to select from directories" requirements = ["fdfind"] [source] command = ["printenv | grep -e '^m' | sort | cut -d= -f2-", "fdfind -t d", "fdfind -t d --hidden"] [preview] command = "ls -la --color=always '{}'" [keybindings] shortcut = "f2" ctrl-o = "actions:cd" ctrl-up = "actions:goto_parent_dir" [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 .." mode = "execute"