forked from Furumi/furumi-tui
Episodes stream from the publisher through the prototype's bounded HTTP Range reader (ported, URL queries redacted from errors). The audio URL and resume position come from the store at play time; a 4xx on the audio URL refreshes the feed once and retries with the address it now lists, and a stream that cannot seek refuses to start at a saved position instead of playing from the wrong place. Prepared sources reach the audio thread with the player's source generation, so a slow stream never replaces a newer start or stop, and with their start offset for position reporting. Progress follows the FRID contract through one ordered writer thread: start_session or restart on start, checkpoints every 20 s and on pause, explicit seeks, complete_session near the end or at end of stream, and a final save with the last seen position on stop, track change, handoff and exit. A superseded session stops checkpointing until the next explicit action; listening sessions are recorded at pause, completion and end. Enter on an episode plays it after the current item, b starts it over, a/A queue it, and mark played goes through the same writer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
322 lines
5.8 KiB
TOML
322 lines
5.8 KiB
TOML
# Default keybindings for furumi.
|
|
#
|
|
# To customize, copy entries into keymap.toml in the platform config dir
|
|
# (~/.config/furumi/keymap.toml on Linux,
|
|
# ~/Library/Application Support/furumi/keymap.toml on macOS). A user binding
|
|
# replaces the default binding with the same key sequence and context.
|
|
#
|
|
# version: keymap format version; put `version = 2` at the top of your file,
|
|
# before the first [[keymaps]] entry (after one, TOML attaches it to that
|
|
# entry and the file is rejected). Version 2 numbers tabs in this order:
|
|
# GoToTab = 0 Library, 1 Playlists, 2 Queue, 3 Podcasts, 4 Settings, 5 Logs.
|
|
# A file without `version` is treated as the older layout and its GoToTab
|
|
# indices are adapted in memory (3 -> 4 Settings, 4 -> 5 Logs, and 5 -> 3
|
|
# Podcasts from the prototype podcast build); the file itself is never
|
|
# rewritten. With `version = 2` indices are used exactly as written.
|
|
#
|
|
# key_sequence: space-separated chords, e.g. "g g" or "ctrl-a x".
|
|
# Modifiers: ctrl-, alt-, shift-, cmd-. Uppercase letters: "shift-g".
|
|
# command: an Action name, optionally with parameters:
|
|
# command = { SeekForward = { seconds = 30 } }
|
|
# context: optional view filter — global (default), library, search,
|
|
# playlists, queue, podcasts, settings, logs.
|
|
|
|
version = 2
|
|
|
|
[[keymaps]]
|
|
key_sequence = "q"
|
|
command = "Quit"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "ctrl-c"
|
|
command = "Quit"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "?"
|
|
command = "ToggleHelp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "tab"
|
|
command = "NextTab"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "backtab"
|
|
command = "PrevTab"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "1"
|
|
command = { GoToTab = 0 }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "2"
|
|
command = { GoToTab = 1 }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "3"
|
|
command = { GoToTab = 2 }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "4"
|
|
command = { GoToTab = 3 }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "5"
|
|
command = { GoToTab = 4 }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "6"
|
|
command = { GoToTab = 5 }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "y"
|
|
command = "DownloadSelected"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "a"
|
|
command = "QueueAddNext"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-a"
|
|
command = "QueueAddLast"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "alt-k"
|
|
command = "MoveQueueUp"
|
|
context = "queue"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "alt-j"
|
|
command = "MoveQueueDown"
|
|
context = "queue"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-c"
|
|
command = "OpenConnectedDevices"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "d"
|
|
command = "RemoveFromQueue"
|
|
context = "queue"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "delete"
|
|
command = "RemoveFromQueue"
|
|
context = "queue"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-j"
|
|
command = "GoToRelease"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-p"
|
|
command = "AddToPlaylist"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "j"
|
|
command = "MoveDown"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "down"
|
|
command = "MoveDown"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "k"
|
|
command = "MoveUp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "up"
|
|
command = "MoveUp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "h"
|
|
command = "MoveLeft"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "left"
|
|
command = "MoveLeft"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "l"
|
|
command = "MoveRight"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "right"
|
|
command = "MoveRight"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "pageup"
|
|
command = "PageUp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "pagedown"
|
|
command = "PageDown"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "ctrl-u"
|
|
command = "PageUp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "ctrl-d"
|
|
command = "PageDown"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "g g"
|
|
command = "SelectFirst"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-g"
|
|
command = "SelectLast"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "enter"
|
|
command = "Select"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "esc"
|
|
command = "Back"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "backspace"
|
|
command = "Back"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "space"
|
|
command = "PlayPause"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "n"
|
|
command = "NextTrack"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "p"
|
|
command = "PrevTrack"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "."
|
|
command = { SeekForward = { seconds = 10 } }
|
|
|
|
[[keymaps]]
|
|
key_sequence = ","
|
|
command = { SeekBackward = { seconds = 10 } }
|
|
|
|
[[keymaps]]
|
|
key_sequence = "+"
|
|
command = "VolumeUp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "="
|
|
command = "VolumeUp"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "-"
|
|
command = "VolumeDown"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "s"
|
|
command = "ToggleShuffle"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "r"
|
|
command = "CycleRepeat"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-l"
|
|
command = "ToggleVisualizer"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-h"
|
|
command = "OpenListenHistory"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "x"
|
|
command = "ToggleLike"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-v"
|
|
command = "ToggleTrackSelection"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "i"
|
|
command = "OpenTrackInfo"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-i"
|
|
command = "OpenCurrentTrackInfo"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "e"
|
|
command = "EditSelected"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-d"
|
|
command = "DeleteSelected"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "v"
|
|
command = "ToggleViewMode"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "m"
|
|
command = "CycleSourceMode"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "f"
|
|
command = "OpenLibraryFilters"
|
|
context = "library"
|
|
|
|
[[keymaps]]
|
|
key_sequence = ":"
|
|
command = "OpenCommandLine"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "/"
|
|
command = "OpenSearch"
|
|
|
|
# Podcasts tab. Enter opens a podcast, its seasons and episodes, and plays
|
|
# an episode (continuing where you stopped); Esc goes back. a / shift-a queue
|
|
# the episode; Shift-D also unsubscribes here.
|
|
[[keymaps]]
|
|
key_sequence = "o"
|
|
command = "AddPodcast"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "/"
|
|
command = "SearchEpisodes"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-r"
|
|
command = "RefreshPodcast"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "ctrl-r"
|
|
command = "RefreshAllPodcasts"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-s"
|
|
command = "CycleEpisodeSort"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "f"
|
|
command = "CycleEpisodeFilter"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "m"
|
|
command = "ToggleEpisodePlayed"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "shift-u"
|
|
command = "UnsubscribePodcast"
|
|
context = "podcasts"
|
|
|
|
[[keymaps]]
|
|
key_sequence = "b"
|
|
command = "RestartEpisode"
|
|
context = "podcasts"
|