diff --git a/README.md b/README.md index 0c53850..810dc42 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Default keybindings are as follows: These keybindings are all configurable (see [Configuration](#configuration)). -## Built-in Channels +## 📺 Built-in Channels The following built-in channels are currently available: - `Files`: search through files in a directory tree. - `Text`: search through textual content in a directory tree. @@ -134,8 +134,9 @@ The following built-in channels are currently available: - `Alias`: search through shell aliases and their values. - `Stdin`: search through lines of text from stdin. -## Cable channels -Tired of broadcast television? Want to watch your favorite shows on demand? `television` has you covered with cable channels. Cable channels are channels that are not built-in to `television` but are instead provided by the community. +## 🍿 Cable channels +*Tired of broadcast television? Want to watch your favorite shows on demand? `television` has you covered with cable channels. Cable channels are channels that are not built-in to `television` but are instead provided by the community.* + You can find a list of available cable channels [on the wiki](https://github.com/alexpasmantier/television/wiki/Cable-channels) and even contribute your own! ### Installing cable channels diff --git a/assets/cable_channels.png b/assets/cable_channels.png index 19cddb9..cdfe2f0 100644 Binary files a/assets/cable_channels.png and b/assets/cable_channels.png differ diff --git a/crates/television-channels/src/channels/remote_control.rs b/crates/television-channels/src/channels/remote_control.rs index 6d6464a..e5e2b6c 100644 --- a/crates/television-channels/src/channels/remote_control.rs +++ b/crates/television-channels/src/channels/remote_control.rs @@ -113,6 +113,11 @@ const TV_ICON: FileIcon = FileIcon { color: "#000000", }; +const CABLE_ICON: FileIcon = FileIcon { + icon: '🍿', + color: "#000000", +}; + impl OnAir for RemoteControl { fn find(&mut self, pattern: &str) { self.matcher.find(pattern); @@ -127,7 +132,10 @@ impl OnAir for RemoteControl { let path = item.matched_string; Entry::new(path, PreviewType::Basic) .with_name_match_ranges(item.match_indices) - .with_icon(TV_ICON) + .with_icon(match item.inner { + RCButton::Channel(_) => TV_ICON, + RCButton::CableChannel(_) => CABLE_ICON, + }) }) .collect() }