Show HN: 자신만의 Windows 프로그램 실행 프로그램(예: dmenu)을 만드는 라이브러리
hackernews
|
|
🏗️ 프레임워크
#뉴스
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
이 라이브러리는 데스크톱, 시작 메뉴, Microsoft Store 폴더 등 다양한 소스를 탐색하여 실행 가능한 Windows 파일 항목을 검색하고 순위를 매깁니다. 사용자가 직접 소스를 지정할 수 있으며, 대상 경로와 쉘 아이콘, 파일 버전 정보 등 구체적인 메타데이터를 포함한 결과를 제공합니다. 또한 쿼리 시점에 관련성 점수를 산출하여 dmenu와 같은 Windows 프로그램 런처를 직접 제작할 수 있도록 돕습니다.
본문
Library to discover, rank and inspect launchable Windows file entries. Walks multiple sources, such as Desktop , Start Menu , and the Microsoft Store WindowsApps folder — or any source you provide — yielding typed entries with resolved target paths, shell icons, full file-version information metadata, and query-time relevance scoring. crates.io · docs.rs Example launcher — Spotlight-style search bar built on the public API ( cargo run --example launcher ) Wintheon APIs used: Gatherer with all three built-in sources at distinct priorities · WeightedEntryIteratorExt::sorted_by_score re-ranking every keystroke (per-entry MatchIndex cache) · FileEntry::icon + FileIcon::extract_icon_at for 64×64 RGBA · FileEntry::version_info for company / version / copyright badges · FileEntry::link_path for shell-correct launch targets. Layered on top: Global Shift+Alt+Space hotkey via global-hotkey Frameless, always-on-top viewport Compact ↔ expanded resize on first keystroke (top edge stays put) Spotlight positioning anchored 120 px below screen top, horizontally centered ↑ / ↓ / Enter / Escape navigation, auto-focused search Color-coded origin chips, theme-aware card backgrounds On-disk RGBA cache under %TEMP% with mtime-header self-invalidation, mmap-backed reads ( mmap-io ) Background prewarm thread fills the cache at startup Lazy, visibility-gated texture upload at render time
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유