project-switch v0.15.3
Enter opens the item you actually highlighted
Fixed an annoying bug in the launcher: arrowing down to an item and pressing Enter would open the first item in the list instead of the one I’d highlighted. The GUI was handing the raw input text to resolve_item rather than looking at the selected entry, so navigation effectively didn’t count once you committed.
The fix is a new selected_action_input on WindowState that resolves the action string from the currently selected entry. If the first word of my input matches the item’s key exactly, it keeps the full input so typed args survive (e.g. g some text still searches for “some text”); otherwise it falls back to the item’s key, so a partial filter like ji correctly launches jira. It returns None for empty or out-of-bounds selections and for non-Item entries like expressions and paths, which the caller already handles separately. The Enter handler in render_launcher now routes through it. I backfilled a batch of regression tests covering navigation, preserved args, partial filters, recents, and the empty-list case.