Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Immelancholy/Zarumet
/ functions
Functions
359 in github.com/Immelancholy/Zarumet
⨍
Functions
359
◇
Types & classes
43
↓ 1 callers
Method
contains
Check if a path is cached (without updating LRU or stats)
src/app/ui/cache/cover_cache.rs:68
↓ 1 callers
Method
could_start_sequence
Check if a key could start a sequential binding
src/app/binds_handler.rs:241
↓ 1 callers
Method
empty
Get the empty portion of the volume bar
src/app/ui/cache/render_cache.rs:241
↓ 1 callers
Method
ensure_albums_by_genre_built
(&mut self)
src/app/song/library.rs:153
↓ 1 callers
Method
ensure_albums_by_year_built
(&mut self)
src/app/song/library.rs:146
↓ 1 callers
Method
ensure_albums_sorted
Ensure all_albums is sorted before access. This is a lazy sort: only sorts when needed.
src/app/song/library.rs:287
↓ 1 callers
Function
ensure_log_directory
Ensure log directory exists
src/app/logging.rs:108
↓ 1 callers
Method
execute
Execute the action on the MPD client Uses the cached status when available to avoid extra MPD round-trips.
src/app/mpd/mpd_handler.rs:154
↓ 1 callers
Method
execute_inner
( &self, client: &mpd_client::Client, app: &mut crate::App, )
src/app/mpd/mpd_handler.rs:174
↓ 1 callers
Method
filled
Get the filled portion of the volume bar
src/app/ui/cache/render_cache.rs:233
↓ 1 callers
Function
get_allowed_rates_from_api
Read allowed-rates from PipeWire API (fallback method)
src/app/audio/pipewire.rs:271
↓ 1 callers
Function
get_allowed_rates_from_pw_metadata
Read allowed-rates from pw-metadata command output
src/app/audio/pipewire.rs:236
↓ 1 callers
Method
get_current_sequence
Get current key sequence for UI display
src/app/binds_handler.rs:248
↓ 1 callers
Function
get_key_sequence_text
Get the current key sequence as displayable text
src/app/ui/rendering/renderer.rs:66
↓ 1 callers
Method
get_or_compute
Get cached display list or compute and cache it Returns references to the cached data
src/app/ui/rendering/utils.rs:133
↓ 1 callers
Function
get_prefetch_targets
Determine which queue items should be prefetched based on current position
src/app/ui/cache/cover_cache.rs:155
↓ 1 callers
Function
get_status_message_text
(msg: &crate::app::StatusMessage)
src/app/ui/rendering/renderer.rs:47
↓ 1 callers
Function
get_supported_rates_inner
()
src/app/audio/pipewire.rs:212
↓ 1 callers
Method
get_uppercase
Get the uppercase version of a file extension
src/app/ui/cache/render_cache.rs:141
↓ 1 callers
Method
handle_add_album_in_album_view
Handle adding an entire album to queue in Albums mode (A/Enter key in albums pane)
src/app/navigation/albums_nav.rs:38
↓ 1 callers
Method
handle_add_to_queue_context_aware
Handle adding to queue in Artists mode - context-aware based on what's selected If on a song, add the song; if on an album, add the album
src/app/navigation/expand_nav.rs:168
↓ 1 callers
Method
handle_add_to_queue_genres_context_aware
Handle adding to queue in Genres mode - context-aware based on panel focus and selection If on GenreAlbums panel and on a song, add the song; if on Ge
src/app/navigation/expand_nav.rs:291
↓ 1 callers
Method
handle_add_to_queue_years_context_aware
Handle adding to queue in Years mode - context-aware based on panel focus and selection If on YearAlbums panel and on a song, add the song; if on Year
src/app/navigation/expand_nav.rs:227
↓ 1 callers
Method
handle_album_toggle
Handle album expansion toggle for Artists mode
src/app/navigation/expand_nav.rs:63
↓ 1 callers
Method
handle_genre_album_toggle
(&mut self, client: &Client)
src/app/navigation/expand_nav.rs:132
↓ 1 callers
Method
handle_go_to_edge
Handle jumping to the top or bottom of the current list
src/app/navigation/scrolling.rs:453
↓ 1 callers
Method
handle_panel_navigation
Handle panel-specific navigation
src/app/navigation/panel_nav.rs:14
↓ 1 callers
Method
handle_scroll
Handle scrolling by 15 items at a time
src/app/navigation/scrolling.rs:14
↓ 1 callers
Method
handle_sequential_input
Handle input when in the middle of a sequential key sequence
src/app/binds_handler.rs:187
↓ 1 callers
Method
handle_year_album_toggle
Handle album expansion toggle for Years mode
src/app/navigation/expand_nav.rs:98
↓ 1 callers
Function
init_logger
Initialize the logger for the application
src/app/logging.rs:7
↓ 1 callers
Function
init_terminal
Initialize the terminal for the application
src/app/terminal.rs:8
↓ 1 callers
Function
initialize_supported_rates
Initialize the supported rates cache. Should be called once when the program starts.
src/app/audio/pipewire.rs:190
↓ 1 callers
Method
is_mpd_command
Returns true if this action sends commands to MPD
src/app/mpd/mpd_handler.rs:130
↓ 1 callers
Method
is_stale
(&self, ttl: Duration)
src/app/ui/cache/width_cache.rs:48
↓ 1 callers
Function
levenshtein_distance
Calculate Levenshtein distance between two strings
src/app/config/format.rs:24
↓ 1 callers
Function
load_bit_perfect_state
Load bit-perfect state from state file
src/app/constructor.rs:30
↓ 1 callers
Function
log_config_loading
Log configuration loading
src/app/logging.rs:166
↓ 1 callers
Function
log_shutdown_info
Log application shutdown information
src/app/logging.rs:127
↓ 1 callers
Function
log_startup_info
Log application startup information
src/app/logging.rs:118
↓ 1 callers
Function
log_user_interaction
Log user interactions for debugging
src/app/logging.rs:158
↓ 1 callers
Method
mark_cover_art
(&self)
src/app/ui/cache/dirty.rs:105
↓ 1 callers
Method
mark_current_song
(&self)
src/app/ui/cache/dirty.rs:87
↓ 1 callers
Method
mark_full_redraw
(&self)
src/app/ui/cache/dirty.rs:129
↓ 1 callers
Method
maybe_cleanup
Perform cleanup if conditions are met (time elapsed or too many entries)
src/app/ui/cache/width_cache.rs:191
↓ 1 callers
Method
mode_color
(&self)
src/app/config/colors.rs:218
↓ 1 callers
Function
new_shared_cache
Create a new shared cover cache
src/app/ui/cache/cover_cache.rs:150
↓ 1 callers
Method
on_key_event
Handles the key events and updates the state of [`App`].
src/app/event_handlers.rs:33
↓ 1 callers
Method
parse_binding_string
Parse a binding string that may contain space-separated sequential keys Returns a vector of parsed key tuples
src/app/config/binds.rs:311
↓ 1 callers
Method
parse_keybinding
( &self, key_str: &str, )
src/app/config/binds.rs:232
↓ 1 callers
Method
peek_width
Peek at cached width without updating access time or triggering cache miss Returns None if the string is not in cache
src/app/ui/cache/width_cache.rs:123
↓ 1 callers
Method
percent
Get the percentage string
src/app/ui/cache/render_cache.rs:250
↓ 1 callers
Method
preload_all_albums
Preload all albums for the Albums view. Uses a fast bulk approach: fetches all songs at once instead of per-artist.
src/app/song/library.rs:316
↓ 1 callers
Method
progress_empty_color
(&self)
src/app/config/colors.rs:122
↓ 1 callers
Method
progress_filled_color
(&self)
src/app/config/colors.rs:116
↓ 1 callers
Method
queue_album_color
(&self)
src/app/config/colors.rs:152
↓ 1 callers
Method
queue_artist_color
(&self)
src/app/config/colors.rs:158
↓ 1 callers
Method
queue_duration_color
(&self)
src/app/config/colors.rs:194
↓ 1 callers
Method
queue_position_color
(&self)
src/app/config/colors.rs:188
↓ 1 callers
Method
queue_song_playing_color
(&self)
src/app/config/colors.rs:170
↓ 1 callers
Method
queue_song_title_color
(&self)
src/app/config/colors.rs:164
↓ 1 callers
Function
render
( frame: &mut Frame<'_>, protocol: &mut Protocol, current_song: &Option<SongInfo>, queue: &[So
src/app/ui/rendering/renderer.rs:254
↓ 1 callers
Function
render_albums_mode
( frame: &mut Frame<'_>, protocol: &mut crate::app::ui::Protocol, area: Rect, format: &Option<
src/app/ui/views/albums.rs:19
↓ 1 callers
Function
render_artists_mode
( frame: &mut Frame<'_>, protocol: &mut Protocol, area: Rect, format: &Option<String>, cur
src/app/ui/views/artists.rs:24
↓ 1 callers
Function
render_config_warnings_popup
Render config warnings popup centered on screen
src/app/ui/rendering/renderer.rs:160
↓ 1 callers
Function
render_genres_mode
( frame: &mut Frame<'_>, protocol: &mut Protocol, area: Rect, format: &Option<String>, cur
src/app/ui/views/genres.rs:24
↓ 1 callers
Function
render_queue_mode
( frame: &mut Frame<'_>, protocol: &mut Protocol, area: Rect, format: &Option<String>, cur
src/app/ui/views/queue.rs:19
↓ 1 callers
Function
render_top_right_status
Render status 0n top-right corner (key sequence or status message) Returns true if something was rendered (so loading indicator can skip)
src/app/ui/rendering/renderer.rs:23
↓ 1 callers
Function
render_years_mode
( frame: &mut Frame<'_>, protocol: &mut Protocol, area: Rect, format: &Option<String>, cur
src/app/ui/views/years.rs:24
↓ 1 callers
Function
restore_terminal
Restore the terminal to its original state
src/app/terminal.rs:20
↓ 1 callers
Method
run
Run the application's main loop.
src/app/main_loop/mloop.rs:49
↓ 1 callers
Method
run_optimized_updates
Run optimized updates - only fetch what we need
src/app/mpd/mpd_updates.rs:31
↓ 1 callers
Method
run_updates
Run update functions concurrently with optimized result processing
src/app/mpd/mpd_updates.rs:25
↓ 1 callers
Function
save_bit_perfect_state
Save bit-perfect state to state file
src/app/constructor.rs:55
↓ 1 callers
Function
set_sample_rate_inner
(rate: u32)
src/app/audio/pipewire.rs:78
↓ 1 callers
Method
time_duration
(&self)
src/app/config/colors.rs:80
↓ 1 callers
Method
time_elapsed
(&self)
src/app/config/colors.rs:74
↓ 1 callers
Method
time_separator
(&self)
src/app/config/colors.rs:86
↓ 1 callers
Method
to_artist
Convert to a regular Artist (returns empty albums if not loaded)
src/app/song/artist.rs:46
↓ 1 callers
Method
total_accesses
Get total number of cache accesses
src/app/ui/cache/width_cache.rs:155
↓ 1 callers
Method
touch
(&mut self)
src/app/ui/cache/width_cache.rs:43
↓ 1 callers
Method
update
Update method to handle timeouts (call this regularly)
src/app/binds_handler.rs:261
↓ 1 callers
Method
update_playback_info
(&mut self, play_state: Option<PlayState>, progress: Option<f64>)
src/app/song/song_info.rs:128
↓ 1 callers
Method
update_queue_selection
Update queue selection to stay within bounds
src/app/mpd/mpd_updates.rs:109
↓ 1 callers
Method
update_time_info
( &mut self, elapsed: Option<std::time::Duration>, duration: Option<std::time::Duratio
src/app/song/song_info.rs:133
↓ 1 callers
Method
volume_color
(&self)
src/app/config/colors.rs:206
↓ 1 callers
Method
volume_empty_color
(&self)
src/app/config/colors.rs:212
Function
bench_truncation_performance
Performance benchmarks are non-deterministic; run with --ignored
src/app/ui/cache/width_cache.rs:366
Function
bench_uncached_vs_cached
Performance benchmarks are non-deterministic; run with --ignored
src/app/ui/cache/width_cache.rs:306
Function
check_song_change
Check if the song changed and trigger cover art loading if needed
src/app/main_loop/state.rs:20
Method
check_unknown_fields
Check for unknown fields in the config file and return warnings
src/app/config/format.rs:156
Method
clear
(&mut self)
src/app/ui/cache/width_cache.rs:184
Method
clear
(&mut self)
src/app/ui/cache/cover_cache.rs:133
Method
clear_progress
(&self)
src/app/ui/cache/dirty.rs:257
Method
compute_album_genre
(tracks: &[SongInfo])
src/app/song/album.rs:34
Method
compute_album_year
(tracks: &[SongInfo])
src/app/song/album.rs:30
Method
compute_total_duration
Compute total duration from tracks (used during construction)
src/app/song/album.rs:46
Function
create_now_playing_widget
( current_song: &'a Option<SongInfo>, config: &'a Config, )
src/app/ui/widgets/song.rs:11
Function
create_progress_bar
( play_state: &Option<mpd_client::responses::PlayState>, progress: Option<f64>, elapsed: Option<st
src/app/ui/widgets/progress.rs:10
Function
create_queue_widget
( queue: &[SongInfo], queue_list_state: &ListState, current_song: &Option<SongInfo>, config: &
src/app/ui/widgets/queue.rs:12
← previous
next →
101–200 of 359, ranked by callers