Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.television.enable

Whether to enable television.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.television.enableBashIntegration

Whether to enable Bash integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.television.enableFishIntegration

Whether to enable Fish integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.television.enableNushellIntegration

Whether to enable Nushell integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.television.enableZshIntegration

Whether to enable Zsh integration.

Type: boolean

Default:

Example:

false

Declared by:

programs.television.package

The television package to use.

Type: null or package

Default:

pkgs.television

Declared by:

programs.television.channels

Each set of channels are written to $XDG_CONFIG_HOME/television/cable/NAME.toml

See https://alexpasmantier.github.io/television/docs/Users/channels for options

Type: attribute set of (TOML value)

Default:

{ }

Example:

{
  git-diff = {
    metadata = {
      description = "A channel to select files from git diff commands";
      name = "git-diff";
      requirements = [
        "git"
      ];
    };
    preview = {
      command = "git diff HEAD --color=always -- '{}'";
    };
    source = {
      command = "git diff --name-only HEAD";
    };
  };
  git-log = {
    metadata = {
      description = "A channel to select from git log entries";
      name = "git-log";
      requirements = [
        "git"
      ];
    };
    preview = {
      command = "git show -p --stat --pretty=fuller --color=always '{0}'";
    };
    source = {
      command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" \"$@\"";
      output = "{split: :0}";
    };
  };
}

Declared by:

programs.television.settings

Configuration written to $XDG_CONFIG_HOME/television/config.toml. See https://github.com/alexpasmantier/television/blob/main/.config/config.toml for the full list of options.

Type: TOML value

Default:

{ }

Example:

{
  keybindings = {
    quit = [
      "esc"
      "ctrl-c"
    ];
  };
  tick_rate = 50;
  ui = {
    show_preview_panel = false;
    ui_scale = 120;
    use_nerd_font_icons = true;
  };
}

Declared by:

programs.television.themes

Each theme is written to $XDG_CONFIG_HOME/television/themes/NAME.toml.

See https://alexpasmantier.github.io/television/user-guide/themes for more information.

Type: attribute set of (TOML value or strings concatenated with ā€œ\nā€ or absolute path)

Default:

{ }

Example:

{
  default = {
    action_picker_mode_bg = "magenta";
    action_picker_mode_fg = "black";
    border_fg = "bright-black";
    channel_mode_bg = "green";
    channel_mode_fg = "black";
    dimmed_text_fg = "white";
    input_text_fg = "bright-red";
    match_fg = "bright-red";
    preview_title_fg = "bright-magenta";
    remote_control_mode_bg = "yellow";
    remote_control_mode_fg = "black";
    result_count_fg = "bright-red";
    result_line_number_fg = "bright-yellow";
    result_name_fg = "bright-blue";
    result_value_fg = "white";
    selection_bg = "bright-black";
    selection_fg = "bright-green";
    send_to_channel_mode_fg = "cyan";
    text_fg = "bright-blue";
  };
}

Declared by: