Command to resolve a path to its matches #6
rossipedia
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Credit to
xHomu
on Discord for the idea:I imagine this being integrated with the VSCode command palette. You'd have a "Match Remix Path" command or similar, which would then present an input box for the path.
The command palette would show the matched route files for any path that was typed / pasted in.
For example, say you had the following routes defined:
And you typed in
/users/rossipedia/settings/privacy
.The results list would basically just be the results of a regular Cmd+P (file search), but filtered to only the matches for that path sorted by leaf->root
I think this would be incredibly helpful not only in navigating larger-sized remix projects, but also to help new users understand how the routing convention works.
Ideally this would just use the matching algorithm already present in Remix, and would take into account any custom
routes
handling inremix.config.js
, but I'm not sure whether that's feasible or not.Beta Was this translation helpful? Give feedback.
All reactions