Repository navigation
feat: fall back to selector when no target matches - #62
Merged
liangmiQwQ merged 2 commits intoOct 1, 2026
Merged
Conversation
liangmiQwQ
force-pushed
the
liang/claude/selector-fallback-rfc
branch
2 times, most recently
from
October 1, 2026 00:37
ba418a6 to
f4157df
Compare
liangmiQwQ
force-pushed
the
liang/claude/selector-fallback-rfc
branch
from
October 1, 2026 00:47
f4157df to
f8b1a52
Compare
liangmiQwQ
marked this pull request as ready for review
October 1, 2026 01:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #61.
When
mo cd,mo edit, ormo opengets a target with no match, it printsNo matching directory foundand exits.This PR makes these commands open the selector with a prefilled search instead.
<owner>/<repo>. The footer then shows the existing Ctrl+R / Ctrl+E hotkeys, so a missing repo can be forked or cloned in one keypress.The fallback only happens when stdin and stdout are a TTY. Scripts and agent sessions keep the current error, so they never hang.
.never falls back.The selector component gets an optional
initialQueryprop, and the selector mounting code is extracted so the no-target and fallback paths share it. The RFCs (cd.md,edit.md,open.md,SELECTOR.md) describe the new behavior, and the brokenselector.mdlink incd.mdis fixed.🤖 Generated with Claude Code