docs(context): Updated the Servarr context clues to say how to switch Servarr tabs via TAB and SHIFT+TAB
This commit is contained in:
@@ -14,8 +14,15 @@ pub fn build_context_clue_string(context_clues: &[(KeyBinding, &str)]) -> String
|
|||||||
.join(" | ")
|
.join(" | ")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub static SERVARR_CONTEXT_CLUES: [ContextClue; 2] = [
|
pub static SERVARR_CONTEXT_CLUES: [ContextClue; 3] = [
|
||||||
(DEFAULT_KEYBINDINGS.tab, "change servarr"),
|
(
|
||||||
|
DEFAULT_KEYBINDINGS.next_servarr,
|
||||||
|
DEFAULT_KEYBINDINGS.next_servarr.desc,
|
||||||
|
),
|
||||||
|
(
|
||||||
|
DEFAULT_KEYBINDINGS.previous_servarr,
|
||||||
|
DEFAULT_KEYBINDINGS.previous_servarr.desc,
|
||||||
|
),
|
||||||
(DEFAULT_KEYBINDINGS.quit, DEFAULT_KEYBINDINGS.quit.desc),
|
(DEFAULT_KEYBINDINGS.quit, DEFAULT_KEYBINDINGS.quit.desc),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,13 @@ mod test {
|
|||||||
|
|
||||||
let (key_binding, description) = servarr_context_clues_iter.next().unwrap();
|
let (key_binding, description) = servarr_context_clues_iter.next().unwrap();
|
||||||
|
|
||||||
assert_eq!(*key_binding, DEFAULT_KEYBINDINGS.tab);
|
assert_eq!(*key_binding, DEFAULT_KEYBINDINGS.next_servarr);
|
||||||
assert_str_eq!(*description, "change servarr");
|
assert_str_eq!(*description, DEFAULT_KEYBINDINGS.next_servarr.desc);
|
||||||
|
|
||||||
|
let (key_binding, description) = servarr_context_clues_iter.next().unwrap();
|
||||||
|
|
||||||
|
assert_eq!(*key_binding, DEFAULT_KEYBINDINGS.previous_servarr);
|
||||||
|
assert_str_eq!(*description, DEFAULT_KEYBINDINGS.previous_servarr.desc);
|
||||||
|
|
||||||
let (key_binding, description) = servarr_context_clues_iter.next().unwrap();
|
let (key_binding, description) = servarr_context_clues_iter.next().unwrap();
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ generate_keybindings! {
|
|||||||
events,
|
events,
|
||||||
home,
|
home,
|
||||||
end,
|
end,
|
||||||
tab,
|
|
||||||
delete,
|
delete,
|
||||||
submit,
|
submit,
|
||||||
confirm,
|
confirm,
|
||||||
@@ -139,10 +138,6 @@ pub const DEFAULT_KEYBINDINGS: KeyBindings = KeyBindings {
|
|||||||
key: Key::End,
|
key: Key::End,
|
||||||
desc: "end",
|
desc: "end",
|
||||||
},
|
},
|
||||||
tab: KeyBinding {
|
|
||||||
key: Key::Tab,
|
|
||||||
desc: "tab",
|
|
||||||
},
|
|
||||||
delete: KeyBinding {
|
delete: KeyBinding {
|
||||||
key: Key::Delete,
|
key: Key::Delete,
|
||||||
desc: "delete",
|
desc: "delete",
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ mod test {
|
|||||||
#[case(DEFAULT_KEYBINDINGS.update, Key::Char('u'), "update")]
|
#[case(DEFAULT_KEYBINDINGS.update, Key::Char('u'), "update")]
|
||||||
#[case(DEFAULT_KEYBINDINGS.home, Key::Home, "home")]
|
#[case(DEFAULT_KEYBINDINGS.home, Key::Home, "home")]
|
||||||
#[case(DEFAULT_KEYBINDINGS.end, Key::End, "end")]
|
#[case(DEFAULT_KEYBINDINGS.end, Key::End, "end")]
|
||||||
#[case(DEFAULT_KEYBINDINGS.tab, Key::Tab, "tab")]
|
|
||||||
#[case(DEFAULT_KEYBINDINGS.delete, Key::Delete, "delete")]
|
#[case(DEFAULT_KEYBINDINGS.delete, Key::Delete, "delete")]
|
||||||
#[case(DEFAULT_KEYBINDINGS.submit, Key::Enter, "submit")]
|
#[case(DEFAULT_KEYBINDINGS.submit, Key::Enter, "submit")]
|
||||||
#[case(DEFAULT_KEYBINDINGS.confirm, Key::Ctrl('s'), "submit")]
|
#[case(DEFAULT_KEYBINDINGS.confirm, Key::Ctrl('s'), "submit")]
|
||||||
|
|||||||
Reference in New Issue
Block a user