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
↓ 119 callers
Method
get
Get cached cover art for a file path
src/app/ui/cache/cover_cache.rs:54
↓ 106 callers
Method
len
(&self)
src/app/ui/cache/width_cache.rs:141
↓ 79 callers
Method
is_empty
(&self)
src/app/ui/cache/width_cache.rs:135
↓ 55 callers
Method
add_enhanced_binding_for_action
Helper method to add bindings that may be sequential
src/app/config/binds.rs:559
↓ 22 callers
Method
contains
(&self, s: &str)
src/app/ui/cache/width_cache.rs:129
↓ 17 callers
Method
mark_panel_focus
(&self)
src/app/ui/cache/dirty.rs:123
↓ 15 callers
Method
get_width
Get the cached width of a string, calculating and caching if not present
src/app/ui/cache/width_cache.rs:103
↓ 15 callers
Method
queue_selected_highlight_color
(&self)
src/app/config/colors.rs:182
↓ 14 callers
Method
queue_selected_text_color
(&self)
src/app/config/colors.rs:176
↓ 13 callers
Method
border_color
(&self)
src/app/config/colors.rs:134
↓ 13 callers
Method
border_title_color
(&self)
src/app/config/colors.rs:128
↓ 13 callers
Function
create_empty_box
(title: &'a str, config: &Config)
src/app/ui/widgets/generic.rs:9
↓ 13 callers
Function
truncate_by_width_cached
Cached version of truncate_by_width using WidthCache
src/app/ui/rendering/utils.rs:31
↓ 11 callers
Method
insert
Insert cover art into the cache
src/app/ui/cache/cover_cache.rs:73
↓ 9 callers
Method
is_available
Check if bit-perfect mode is available (enabled and on Linux)
src/app/config/pipewire.rs:16
↓ 8 callers
Method
border_selected_color
(&self)
src/app/config/colors.rs:230
↓ 8 callers
Method
get_artist
Get an Artist struct for the given index (for rendering). Returns None if index is out of bounds. If the artist's albums haven't been loaded, returns
src/app/song/library.rs:281
↓ 8 callers
Method
preload_albums_for_view
Preload all albums for Albums view and initialize selection
src/app/navigation/helpers.rs:6
↓ 7 callers
Method
clear_all
(&self)
src/app/ui/cache/dirty.rs:239
↓ 7 callers
Function
compute_album_display_list
Compute the display list for albums panel considering expanded albums Returns (display_items, mapping_from_display_to_album_index)
src/app/ui/rendering/utils.rs:184
↓ 7 callers
Function
compute_albums_display_list_genres
Compute the display list for albums panel considering expanded albums in Genres mode Returns (display_items, mapping_from_display_to_album_index)
src/app/ui/rendering/utils.rs:217
↓ 7 callers
Function
compute_albums_display_list_years
Compute the display list for albums panel considering expanded albums in Years mode Returns (display_items, mapping_from_display_to_album_index)
src/app/ui/rendering/utils.rs:252
↓ 7 callers
Method
mark_menu_mode
(&self)
src/app/ui/cache/dirty.rs:117
↓ 7 callers
Method
song_title_color
(&self)
src/app/config/colors.rs:146
↓ 6 callers
Function
find_similar
Find the most similar string from a list of candidates
src/app/config/format.rs:58
↓ 6 callers
Function
format_unknown_warning
Format an unknown config warning with optional "did you mean" suggestion
src/app/config/format.rs:86
↓ 6 callers
Method
mark_library
(&self)
src/app/ui/cache/dirty.rs:111
↓ 5 callers
Function
create_format_widget
( format: &'a Option<String>, current_song: &'a Option<SongInfo>, config: &'a Config, )
src/app/ui/widgets/song.rs:53
↓ 5 callers
Function
create_top_box
( config: &Config, mpd_status: Option<&mpd_client::responses::Status>, menu_mode: &MenuMode, b
src/app/ui/widgets/top_box.rs:11
↓ 5 callers
Method
is_awaiting_input
Check if currently awaiting input for a sequence
src/app/binds_handler.rs:256
↓ 5 callers
Method
load_artist
Load albums and songs for a specific artist by index. MPD command: find "(AlbumArtist == 'artist_name')" sort Album
src/app/song/library.rs:165
↓ 5 callers
Method
mark_queue
(&self)
src/app/ui/cache/dirty.rs:75
↓ 5 callers
Function
render_image_widget
( frame: &mut ratatui::Frame<'_>, protocol: &mut crate::app::ui::Protocol, image_area: Rect, s
src/app/ui/widgets/image.rs:10
↓ 5 callers
Method
spaces
(&self, n: usize)
src/app/ui/cache/render_cache.rs:48
↓ 4 callers
Method
check_terminal_size
(&self, width: u16, height: u16)
src/app/ui/cache/dirty.rs:147
↓ 4 callers
Method
format_short
Get short format duration (M:SS or MM:SS) Used for song durations in queue, track lists, etc.
src/app/ui/cache/render_cache.rs:168
↓ 4 callers
Function
left_align_cached
Cached version of left_align using WidthCache
src/app/ui/rendering/utils.rs:71
↓ 4 callers
Method
len
(&self)
src/app/ui/cache/render_cache.rs:204
↓ 4 callers
Method
mark_queue_selection
(&self)
src/app/ui/cache/dirty.rs:81
↓ 4 callers
Function
set_sample_rate
Forces PipeWire to use a specific sample rate via the settings metadata. This function connects to PipeWire, finds the "settings" metadata object, an
src/app/audio/pipewire.rs:51
↓ 4 callers
Method
top_accent_color
(&self)
src/app/config/colors.rs:200
↓ 4 callers
Method
track_duration_color
(&self)
src/app/config/colors.rs:224
↓ 3 callers
Method
dashes
(&self, n: usize)
src/app/ui/cache/render_cache.rs:59
↓ 3 callers
Method
format_long
Get long format duration (H:MM:SS or M:SS) Used for album total durations
src/app/ui/cache/render_cache.rs:178
↓ 3 callers
Function
get_log_directory
Get the platform-specific log directory
src/app/logging.rs:58
↓ 3 callers
Function
get_supported_rates
Gets the list of supported sample rates from the cache. This function only returns cached rates and never queries PipeWire. Must call initialize_supp
src/app/audio/pipewire.rs:208
↓ 3 callers
Method
is_loaded
Check if this artist's albums have been loaded
src/app/song/artist.rs:36
↓ 3 callers
Method
mark_pending
Mark a path as currently being fetched
src/app/ui/cache/cover_cache.rs:101
↓ 3 callers
Method
mark_status_message
(&self)
src/app/ui/cache/dirty.rs:141
↓ 3 callers
Method
quit
Set running to false to quit the application.
src/app/event_handlers.rs:156
↓ 3 callers
Function
reset_sample_rate_async
Async wrapper for reset_sample_rate that runs the blocking PipeWire call on a separate thread to avoid blocking the tokio runtime.
src/app/audio/pipewire.rs:400
↓ 3 callers
Function
resolve_bit_perfect_rate
Get the best sample rate to use based on the song's sample rate and the supported rates from PipeWire. Logic: 1. If the song rate is directly support
src/app/config/pipewire.rs:37
↓ 3 callers
Method
sample_rate
Extract sample rate from the MPD format string. MPD returns format as "samplerate:bits:channels" (e.g., "44100:16:2"). Returns None if format is not
src/app/song/song_info.rs:146
↓ 3 callers
Function
set_sample_rate_async
Async wrapper for set_sample_rate that runs the blocking PipeWire call on a separate thread to avoid blocking the tokio runtime.
src/app/audio/pipewire.rs:392
↓ 3 callers
Method
stopped
(&self)
src/app/config/colors.rs:104
↓ 3 callers
Function
toggle_album_expansion_generic
Generic album expansion toggle that works for any mode with expandable albums
src/app/navigation/expand_nav.rs:15
↓ 3 callers
Method
total_duration
Get the total duration of all tracks in the album (cached)
src/app/song/album.rs:65
↓ 3 callers
Function
truncate_by_width
Truncate a string to fit within the given display width, handling Unicode properly
src/app/ui/rendering/utils.rs:8
↓ 2 callers
Method
build_albums_by
Build a grouped index of albums by a specified key (e.g., year or genre).
src/app/song/library.rs:110
↓ 2 callers
Function
center_area
Helper function to center a rect within another rect
src/app/ui/rendering/utils.rs:82
↓ 2 callers
Function
find_current_index
Find the current song's index in the queue
src/app/ui/cache/cover_cache.rs:181
↓ 2 callers
Function
get_state_path
Get the path to the state file - Linux: ~/.local/state/zarumet/state.toml (XDG_STATE_HOME) - macOS: ~/Library/Application Support/zarumet/state.toml -
src/app/constructor.rs:23
↓ 2 callers
Method
handle_add_song_in_album_view
Handle adding a specific song to queue in Albums mode (L key in songs pane)
src/app/navigation/albums_nav.rs:7
↓ 2 callers
Method
handle_key
Handle key events and return corresponding MPD commands with sequential support
src/app/binds_handler.rs:58
↓ 2 callers
Method
handle_navigation_action
Handle navigation and UI-related actions
src/app/navigation/main_nav.rs:20
↓ 2 callers
Method
hit_rate
Get the cache hit rate (0.0 to 1.0)
src/app/ui/cache/width_cache.rs:146
↓ 2 callers
Method
is_loading
Check if this artist's albums are currently being loaded
src/app/song/artist.rs:41
↓ 2 callers
Method
is_pending
Check if a path is pending fetch
src/app/ui/cache/cover_cache.rs:106
↓ 2 callers
Function
log_mpd_command
Log MPD command execution
src/app/logging.rs:145
↓ 2 callers
Function
log_mpd_connection
Log MPD connection attempts
src/app/logging.rs:132
↓ 2 callers
Function
log_pipewire_operation
Log PipeWire operations
src/app/logging.rs:175
↓ 2 callers
Method
log_stats
Log cache statistics for debugging
src/app/ui/cache/width_cache.rs:172
↓ 2 callers
Method
mark_key_sequence
(&self)
src/app/ui/cache/dirty.rs:135
↓ 2 callers
Method
mark_progress
(&self)
src/app/ui/cache/dirty.rs:99
↓ 2 callers
Method
mark_status
(&self)
src/app/ui/cache/dirty.rs:93
↓ 2 callers
Function
parse_allowed_rates
Parse allowed-rates from PipeWire's JSON-like format Examples: "[ 44100, 48000 ]" or "[ 44100 48000 ]"
src/app/audio/pipewire.rs:364
↓ 2 callers
Method
paused
(&self)
src/app/config/colors.rs:92
↓ 2 callers
Method
playing
(&self)
src/app/config/colors.rs:98
↓ 2 callers
Method
progress_chars
(&self, n: usize)
src/app/ui/cache/render_cache.rs:69
↓ 2 callers
Function
render_right_aligned_text
Render right-aligned text within given area
src/app/ui/rendering/renderer.rs:116
↓ 2 callers
Function
reset_sample_rate
()
src/app/audio/pipewire.rs:184
↓ 2 callers
Method
set_status_message
(&mut self, message: StatusMessage)
src/app/main.rs:107
↓ 2 callers
Function
spawn_cover_art_loader
Spawn a background task to load cover art with cache support
src/app/main_loop/cover_load.rs:16
↓ 2 callers
Function
spawn_prefetch_loaders
Spawn background tasks to prefetch cover art for adjacent queue items
src/app/main_loop/cover_load.rs:77
↓ 2 callers
Method
update_from_status
Update app state from MPD status
src/app/mpd/mpd_updates.rs:131
↓ 1 callers
Method
add_enhanced_albums_bindings
( &self, single_map: &mut HashMap< (crossterm::event::KeyModifiers, crossterm::eve
src/app/config/binds.rs:730
↓ 1 callers
Method
add_enhanced_artists_bindings
( &self, single_map: &mut HashMap< (crossterm::event::KeyModifiers, crossterm::eve
src/app/config/binds.rs:656
↓ 1 callers
Method
add_enhanced_global_bindings
( &self, single_map: &mut HashMap< (crossterm::event::KeyModifiers, crossterm::eve
src/app/config/binds.rs:397
↓ 1 callers
Method
add_enhanced_queue_bindings
( &self, single_map: &mut HashMap< (crossterm::event::KeyModifiers, crossterm::eve
src/app/config/binds.rs:585
↓ 1 callers
Method
album_color
(&self)
src/app/config/colors.rs:110
↓ 1 callers
Method
any_dirty
(&self)
src/app/ui/cache/dirty.rs:213
↓ 1 callers
Method
artist_color
(&self)
src/app/config/colors.rs:140
↓ 1 callers
Method
build_enhanced_key_maps
( &self, )
src/app/config/binds.rs:323
↓ 1 callers
Method
build_enhanced_key_maps_internal
( &self, )
src/app/config/binds.rs:349
↓ 1 callers
Function
center_image
(image_dimensions: Rect, available_area: Rect)
src/app/ui/rendering/utils.rs:90
↓ 1 callers
Method
check_animation_updates
(&mut self)
src/app/main.rs:126
↓ 1 callers
Method
check_status_message_expiry
(&mut self)
src/app/main.rs:117
↓ 1 callers
Method
cleanup
Force cleanup of stale entries
src/app/ui/cache/width_cache.rs:204
↓ 1 callers
Method
clear_status_message
(&mut self)
src/app/main.rs:112
↓ 1 callers
Function
connect_to_mpd
Connect to MPD via Unix socket or TCP based on address format
src/app/main_loop/connection.rs:8
next →
1–100 of 359, ranked by callers