You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Font ID Filtering**: Query parameter can match either font family names (e.g., "Roboto") or Font IDs (e.g., "google.roboto")
143
-
-**Performance Optimizations**: Early type filtering (filters by extension before metadata extraction) and cached lowercased strings for faster filtering
143
+
-**Performance Optimizations**:
144
+
- Early type filtering (filters by extension before metadata extraction)
145
+
- Concurrent metadata extraction for faster scans on large font directories
146
+
- Precomputed case-insensitive sort keys to avoid repeated `strings.ToLower()` in sort comparators
147
+
- Avoids holding the spinner open for fast operations (no artificial 2.5s delay when spinner clears the line)
148
+
- Disables spinner when `--debug` is enabled to prevent carriage-return UI rendering from mangling debug output
144
149
145
150
**Key Functions**:
146
151
-`listCmd.RunE`: Main listing execution
@@ -580,13 +585,19 @@ This document provides a comprehensive overview of the FontGet codebase, explain
580
585
-`font_matches.go`: Font matching logic for installed fonts to repository entries
581
586
-`metadata.go`: Font metadata handling
582
587
-`archive.go`: Archive operations
588
+
-`download_headers.go`: HTTP response header parsing/inference helpers for downloads (e.g., detecting ZIP archives served behind `.ttf` URLs)
583
589
-`types.go`: Type definitions
584
590
585
591
**Key Features**:
586
592
-**Font Matching**: Optimized index-based matching of installed fonts to repository entries
587
593
-**Font ID Resolution**: Resolves Font IDs (e.g., "google.roboto") to font names
588
594
-**Source Priority**: Handles multiple repository matches using predefined source priority order
589
595
-**Nerd Fonts Support**: Special handling for Nerd Fonts naming conventions and variants
0 commit comments