-
-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Labels
frontFrontend, DesignFrontend, DesignideaSuggestion or idea, not yet vetted/decidedSuggestion or idea, not yet vetted/decided
Description
Currently, even when users want to visit the specific package via keyword search, users need to type package name and click the top result.
The "I'm feeling lucky" mode would work like this:
- Add
feeling-lucky=1param to the search URL (example: https://npmx.dev/search?feeling-lucky=1&q=nuxt) - When there is the
exactmatch result, instead of showing the package list, directly navigate users to that package page (example: https://npmx.dev/package/nuxt) - If no
exactmatch result, show the search result as is.
Users may add two search keywords if they prefer, for example:
npmx <keyword>->https://npmx.dev/search?q=%snpmx! <keyword>->https://npmx.dev/search?feeling-lucky=1&q=%s
Users could add npmx! <keyword> -> https://npmx.dev/package/%s but this mode can provide a bit more flexible fallback.
inspired by this shared post: https://bskye.app/profile/vale.rocks/post/3me3elmhxo22j (via https://discord.com/channels/1464542801676206113/1466869459590451448/1468855092894498877)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
frontFrontend, DesignFrontend, DesignideaSuggestion or idea, not yet vetted/decidedSuggestion or idea, not yet vetted/decided