Skip to content
Bruno Bigras edited this page Jan 10, 2025 · 8 revisions

This section is meant as a community-driven list of user workflows and ways to use television in different contexts to inspire others.

Zed Editor File Finder

This is a drop-in file editor setup for the zed editor leveraging television, a task, and keybinding.

tv-zed-editor-compressed

  1. Install television
  2. Add a task for a file finder (zed: open tasks command)

tasks.json

{
  "label": "File Finder",
  "command": "zeditor \"$(tv files)\"",
  "hide": "always",
  "allow_concurrent_runs": true,
  "use_new_terminal": true
},
  1. Add keybinding to open file finder in center terminal (zed: open keymap command)

keymap.json

[
  {
    "bindings": {
      // replace file_finder::Toggle
      "cmd-p": [
        "task::Spawn",
        { "task_name": "File Finder", "reveal_target": "center" }
      ]
    }
  }
]

This should result in an interaction similar to the GIF above.

Vim/Neovim plugin

credit: https://github.com/prabirshrestha/tv.vim

tv.vim

Clone this wiki locally