feat: copy selected video URL

This commit is contained in:
2026-10-22 15:38:59 +02:00
parent 01275e20b8
commit b12bba9125
9 changed files with 80 additions and 14 deletions
+6
View File
@@ -1212,6 +1212,11 @@ impl Browser {
Some(Action::VideoPlay) => self.open(),
Some(Action::VideoToggle) => self.screen_mut().toggle_checked(),
Some(Action::VideoClear) => self.screen_mut().checked.clear(),
Some(Action::VideoCopyUrl) if self.screen().playable() => {
if let Some(id) = self.screen().selected_key() {
self.status = ui::copy_video_url(id);
}
}
Some(
action @ (Action::VideoNext
| Action::VideoPrevious
@@ -1372,6 +1377,7 @@ impl Browser {
bindings.extend([
(Action::VideoToggle, "Toggle checked episode"),
(Action::VideoClear, "Clear checked episodes"),
(Action::VideoCopyUrl, "Copy selected episode URL"),
(Action::WatchLaterSave, "Save episode to watch later"),
(Action::SavedVideoSave, "Save episode"),
(Action::WatchStatusWatching, "Mark episode as watching"),