mirror of
https://github.com/prdlk/television.git
synced 2026-11-02 13:12:51 +00:00
22 lines
540 B
TOML
22 lines
540 B
TOML
[metadata]
|
|||
|
|
name = "env"
|
||
|
|
description = "A channel to select from environment variables"
|
||
|
|
|
||
|
|
[source]
|
||
|
|
command = "printenv"
|
||
|
|
output = "{split:=:1..}" # output the value
|
||
|
|
|
||
|
|
[preview]
|
||
|
|
command = "echo '{split:=:1..}'"
|
||
|
|
|
||
|
|
[ui]
|
||
|
|
layout = "portrait"
|
||
|
|
preview_panel = { size = 20, header = "{split:=:0}", border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
|
||
|
|
|
||
|
|
[keybindings]
|
||
|
|
shortcut = "f3"
|
||
|
|
|
||
|
|
[actions.name]
|
||
|
|
description = "Output the variable name instead of the value"
|
||
|
|
command = "echo '{split:=:0}'"
|
||
|
|
mode = "execute"
|