Television
is a fast and versatile fuzzy finder TUI.
It lets you quickly search through any kind of data source (files, git repositories, environment variables, docker images, you name it) using a fuzzy matching algorithm and is designed to be easily extensible.
It is inspired by the neovim telescope plugin and leverages tokio and the nucleo matcher used by the helix editor to ensure optimal performance.
-
β‘οΈ High Speed: asynchronous I/O and multithreading to ensure a smooth and responsive UI.
-
π§ Fuzzy Matching: cutting-edge fuzzy matching library for efficiently filtering through lists of entries.
-
π Batteries Included: comes with a set of builtin channels and previewers that you can start using out of the box.
-
π Shell Integration: benefit from smart completion anywhere using
television
's shell integration. -
πΊ Channels: designed around the concept of channels, which are a set of builtin data sources that you can search through (e.g. files, git repositories, environment variables, etc).
-
π‘ Cable Channels: users may add their own custom channels to tv using a simple and centralized configuration file.
-
π Previewers: allows you to preview the contents of an entry in a separate pane.
-
πΌοΈ Builtin Syntax Highlighting: comes with builtin asynchronous syntax highlighting for a wide variety of file types.
-
ποΈ Keybindings: includes a set of intuitive default keybindings inspired by vim and other popular terminal shortcuts.
-
π Themes: either use one of the 10 builtin themes or create your own easily.
-
π¦ Cross-platform: works on Linux, MacOS and Windows.
-
β Terminal Emulator Compatibility: television works flawlessly on all major terminal emulators.
See the installation docs.
tv [channel] #[default: files] [possible values: env, files, git-repos, text, alias]
# e.g. to search through environment variables
tv env
# piping into tv (e.g. logs)
my_program | tv
# piping into tv with a custom preview command
fd -t f . | tv --preview 'bat -n --color=always {0}'
For more information on the different channels, see the channels documentation.
Television can also integrate with your shell to provide autocompletion based on the commands you start typing. See Shell Autocompletion.
tv-shell.mp4
For information about available keybindings, check the associated page of the wiki
For information about tv's configuration file, check the associated page of the wiki
Builtin themes are available in the themes directory. Feel free to experiment and maybe even contribute your own!
catppuccin | gruvbox-dark |
---|---|
solarized-dark | nord |
You may create your own custom themes by adding them to the themes
directory in your configuration folder and then referring to them by file name (without the extension) in the configuration file.
config_location/
βββ themes/
β βββ my_theme.toml
βββ config.toml
For information on how to use search patterns with tv, refer to the associated page of the wiki
Contributions, issues and pull requests are welcome.
See CONTRIBUTING.md and good first issues for more information.
This project was inspired by the awesome work done by the telescope neovim plugin.
It also leverages the great helix editor's nucleo fuzzy matching library, the tokio async runtime as well as the formidable ratatui library.