Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix(tui): clean up slash command suggestions and mode isolation

Samir Hossains67a49d462727
diff --git a/docs/controls.md b/docs/controls.md
index a95759e..1ea3b77 100644
--- a/docs/controls.md
+++ b/docs/controls.md
@@ -64,8 +64,8 @@ Type these commands directly into the search bar:
| `/history` | Streaming | View watch history with latest progress |
| `/list` | TV | View live TV channels |
| `/reload` | TV | Reload M3U playlists |
-| `/config` | TV / Addon | Manage custom IPTV playlists (in TV) or Addons (in Addon mode) |
-| `/addons` | Addon / All | Open Addon Manager modal |
+| `/config` | TV | Manage custom IPTV playlists |
+| `/addons` | Addon / Streaming | Open Addon Manager dialog |
| `/enable-addons` | All | Enable Addon Mode navigation |
| `/disable-addons` | All | Disable Addon Mode navigation |
| `/download-dir` | All | View, change, or reset the download directory |
diff --git a/src/tui/app/requests.rs b/src/tui/app/requests.rs
index 9407cfc..6673353 100644
--- a/src/tui/app/requests.rs
+++ b/src/tui/app/requests.rs
@@ -16,13 +16,16 @@ impl App {
let mut commands = Vec::new();
if self.state.is_tv_mode {
commands.push("/list");
+ commands.push("/reload");
commands.push("/config");
} else if self.state.is_addon_mode {
commands.push("/addons");
- commands.push("/config");
} else {
commands.push("/browse");
commands.push("/history");
+ if self.state.addons_enabled {
+ commands.push("/addons");
+ }
}
commands.push("/download-dir");
commands.push("/download-dir <path>");
@@ -41,7 +44,6 @@ impl App {
}
if self.state.addons_enabled {
commands.push("/disable-addons");
- commands.push("/addons");
} else {
commands.push("/enable-addons");
}
diff --git a/src/tui/screens/home.rs b/src/tui/screens/home.rs
index eb0b827..02ad548 100644
--- a/src/tui/screens/home.rs
+++ b/src/tui/screens/home.rs
@@ -64,8 +64,12 @@ pub(crate) fn slash_command_description(cmd: &str) -> Option<&'static str> {
"download-dir reset" => Some("Reset download directory to default"),
"history" => Some("Watch history"),
"theme" => Some("Theme picker"),
- "list" => Some("IPTV channels"),
+ "list" => Some("Show all TV channels"),
+ "reload" => Some("Reload IPTV playlists"),
"config" => Some("Configure IPTV playlists"),
+ "addons" => Some("Open Addons Manager"),
+ "enable-addons" => Some("Enable Addon mode navigation"),
+ "disable-addons" => Some("Disable Addon mode navigation"),
"update" => Some("Check for newer release"),
"toggle-update" => Some("Toggle automatic update checks"),
"clear-cache" => Some("Clear cached data"),