feat: copy selected video URL
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user