You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Television release 0.9.1 merged PR #260, to allow custom channels to override builtins. This behavior is not reproducible if Television is launched through the terminal or with shell integration.
[[cable_channel]]
name = "dirs"source_command = "fd -t d -H . $HOME"preview_command = "lsd -Al1 {}"
[[cable_channel]]
name = "files"source_command = "fd -t f -H . $HOME"preview_command = "bat -n --color=always {}"
Video reproducing the issue
First example: shows tv dirs being executed, then changing to the dirs channel through Remote Control. Notice how there's no builtin dirs channel listed, yet the preview changes from builtin to lsd.
Second example: nvim is completed using shell integration via zsh. The builtin files previewer is used, changing to bat when the files channel is selected via Remote Control.
Third example: the function nf, described below, is executed. It contains a pipe with tv files as stdin, which also reproduces the issue listed in the previous example.
2025-01-14.11-07-53.mp4
nf function as described in $ZDOTDIR/.zshrc
functionnf() {
tv files | xargs -ro nvim
}
Expected behavior
The custom channels with same name as a builtin should be used for all interactions.
Actual behavior
Builtin channels are used instead, only being replaced when the custom channel is loaded via Remote Control.
Environment
OS: Arch Linux, kernel 6.12.9-arch1-1
Rust version: N/A
Project version: Television 0.9.2, build 1.83.0 (2025-01-10)
The text was updated successfully, but these errors were encountered:
Description
Television release 0.9.1 merged PR #260, to allow custom channels to override builtins. This behavior is not reproducible if Television is launched through the terminal or with shell integration.
Minimal configuration file excerpts
$XDG_CONFIG_HOME/television/config.toml
$XDG_CONFIG_HOME/television/custom-channels.toml
Video reproducing the issue
tv dirs
being executed, then changing to thedirs
channel through Remote Control. Notice how there's no builtindirs
channel listed, yet the preview changes from builtin tolsd
.nvim
is completed using shell integration viazsh
. The builtin files previewer is used, changing tobat
when thefiles
channel is selected via Remote Control.nf
, described below, is executed. It contains a pipe withtv files
as stdin, which also reproduces the issue listed in the previous example.2025-01-14.11-07-53.mp4
nf
function as described in$ZDOTDIR/.zshrc
Expected behavior
The custom channels with same name as a builtin should be used for all interactions.
Actual behavior
Builtin channels are used instead, only being replaced when the custom channel is loaded via Remote Control.
Environment
The text was updated successfully, but these errors were encountered: