rmpc: Display albums only by name

While at it, also format to match alignment for our OCD
requirements.
This commit is contained in:
Sanchayan Maity 2024-12-25 13:45:23 +05:30
parent 2f37f49b65
commit 9d7dd34877
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -2,66 +2,68 @@
#![enable(unwrap_newtypes)] #![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)] #![enable(unwrap_variant_newtypes)]
( (
address: "127.0.0.1:6600", theme : None,
password: None, cache_dir : None,
theme: None, on_song_change : None,
cache_dir: None, volume_step : 5,
on_song_change: None, scrolloff : 0,
volume_step: 5, wrap_navigation : false,
scrolloff: 0, enable_mouse : false,
wrap_navigation: false, status_update_interval_ms : 5000,
enable_mouse: false, select_current_song_on_change : false,
status_update_interval_ms: 5000,
select_current_song_on_change: false,
album_art: ( album_art: (
method: None, method: None,
), ),
artists: (
album_display_mode : NameOnly,
album_sort_by : Date,
),
keybinds: ( keybinds: (
global: { global: {
":": CommandMode, ":" : CommandMode,
"s": Stop, "s" : Stop,
"<Tab>": NextTab, "<Tab>" : NextTab,
"1": SwitchToTab("Queue"), "1" : SwitchToTab("Queue"),
"2": SwitchToTab("Artists"), "2" : SwitchToTab("Artists"),
"q": Quit, "q" : Quit,
">": NextTrack, ">" : NextTrack,
"p": TogglePause, "p" : TogglePause,
"<": PreviousTrack, "<" : PreviousTrack,
"~": ShowHelp, "~" : ShowHelp,
"I": ShowCurrentSongInfo, "I" : ShowCurrentSongInfo,
}, },
navigation: { navigation: {
"<Up>": Up, "<Up>" : Up,
"<Down>": Down, "<Down>" : Down,
"<Left>": Left, "<Left>" : Left,
"<Right>": Right, "<Right>" : Right,
"<C-k>": PaneUp, "<C-k>" : PaneUp,
"<C-j>": PaneDown, "<C-j>" : PaneDown,
"<C-h>": PaneLeft, "<C-h>" : PaneLeft,
"<C-l>": PaneRight, "<C-l>" : PaneRight,
"<C-u>": UpHalf, "<C-u>" : UpHalf,
"N": PreviousResult, "N" : PreviousResult,
"a": Add, "a" : Add,
"A": AddAll, "A" : AddAll,
"n": NextResult, "n" : NextResult,
"g": Top, "g" : Top,
"<Space>": Select, "<Space>" : Select,
"<C-Space>": InvertSelection, "<C-Space>" : InvertSelection,
"G": Bottom, "G" : Bottom,
"<CR>": Confirm, "<CR>" : Confirm,
"i": FocusInput, "i" : FocusInput,
"J": MoveDown, "J" : MoveDown,
"<C-d>": DownHalf, "<C-d>" : DownHalf,
"/": EnterSearch, "/" : EnterSearch,
"<C-c>": Close, "<C-c>" : Close,
"<Esc>": Close, "<Esc>" : Close,
"K": MoveUp, "K" : MoveUp,
}, },
queue: { queue: {
"D": DeleteAll, "D" : DeleteAll,
"<CR>": Play, "<CR>" : Play,
"i": ShowInfo, "i" : ShowInfo,
"C": JumpToCurrent, "C" : JumpToCurrent,
}, },
), ),
search: ( search: (
@ -77,14 +79,14 @@
), ),
tabs: [ tabs: [
( (
name: "Queue", name : "Queue",
border_type: None, border_type : None,
pane: Pane(Queue), pane : Pane(Queue),
), ),
( (
name: "Artists", name : "Artists",
border_type: None, border_type : None,
pane: Pane(Artists), pane : Pane(Artists),
), ),
], ],
) )