feat: remove individual watch-later videos
This commit is contained in:
+7
-2
@@ -109,6 +109,7 @@ actions! {
|
||||
WatchLaterBrowse, "view.watch_later.browse", "Browse this category's watch later, or the combined collection elsewhere", &[Context::Normal], ["W"];
|
||||
WatchLaterFilter, "view.watch_later.filter", "Cycle watch-later filter: all, unwatched, watched", &[Context::Normal], ["f"];
|
||||
WatchLaterRemove, "view.watch_later.remove", "Confirm removal of the current filtered watch-later subset", &[Context::Normal], ["D"];
|
||||
WatchLaterRemoveSelected, "video.watch_later.remove", "Remove only the selected watch-later video (also in previews)", VIEW, ["X"];
|
||||
SavedVideoSave, "video.saved.save", "Save the selected video (also in previews)", VIEW, ["v"];
|
||||
SavedVideoBrowse, "view.saved.browse", "Browse this category's saved videos, or the combined collection elsewhere", &[Context::Normal], ["V"];
|
||||
SavedVideoRemove, "video.saved.remove", "Remove the selected saved video (also in previews)", VIEW, ["x"];
|
||||
@@ -474,6 +475,10 @@ impl Bindings {
|
||||
"Browse category watch later; combined elsewhere",
|
||||
),
|
||||
(&[WatchLaterFilter], "Cycle all / unwatched / watched"),
|
||||
(
|
||||
&[WatchLaterRemoveSelected],
|
||||
"Remove the selected video (also in previews)",
|
||||
),
|
||||
(
|
||||
&[WatchLaterRemove],
|
||||
"Confirm removal of filtered subset (combined: all matches)",
|
||||
@@ -1023,7 +1028,7 @@ mod tests {
|
||||
Some(Action::InfoDescription),
|
||||
);
|
||||
let bindings = configured(
|
||||
"[keys.video.watch_later]\nsave = 'alt+w'\n[keys.view.watch_later]\nbrowse = 'shift+x'\nfilter = 'ctrl+f'\nremove = []\n",
|
||||
"[keys.video.watch_later]\nsave = 'alt+w'\nremove = []\n[keys.view.watch_later]\nbrowse = 'shift+x'\nfilter = 'ctrl+f'\nremove = []\n",
|
||||
)
|
||||
.unwrap();
|
||||
for context in ALL {
|
||||
@@ -1083,7 +1088,7 @@ mod tests {
|
||||
}
|
||||
}
|
||||
let bindings = configured(
|
||||
"[keys.video.saved]\nsave = 'alt+v'\nremove = []\n[keys.view.saved]\nbrowse = 'shift+x'\n",
|
||||
"[keys.video.watch_later]\nremove = []\n[keys.video.saved]\nsave = 'alt+v'\nremove = []\n[keys.view.saved]\nbrowse = 'shift+x'\n",
|
||||
)
|
||||
.unwrap();
|
||||
for context in ALL {
|
||||
|
||||
Reference in New Issue
Block a user