wip
This commit is contained in:
25
.config/television/cable/dirs.toml
Normal file
25
.config/television/cable/dirs.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
[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"
|
||||
Reference in New Issue
Block a user