television/cable/unix/text.toml
alexandre pasmantier 6a11627546 fix: text channel colon splitting
Fixes #651
2025-07-18 01:09:42 +02:00

18 lines
409 B
TOML

[metadata]
name = "text"
description = "A channel to find and select text from files"
requirements = ["rg", "bat"]
[source]
command = "rg . --no-heading --line-number"
display = "[{split:\\::..2}]\t{split:\\::2..}"
output = "{split:\\::..2}"
[preview]
command = "bat -n --color=always '{split:\\::0}'"
env = { BAT_THEME = "ansi" }
offset = '{split:\::1}'
[ui]
preview_panel = { header = '{split:\::..2}' }