Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases do not work when using brew search as browser quick search (site search) #1567

Open
ssbarnea opened this issue Nov 21, 2024 · 2 comments
Labels

Comments

@ssbarnea
Copy link

Most site search can be configured to be quick searches in browser, so you could directly go to the right page.

Example from Chrome (same for most other browsers):

  • Name: brew
  • Shortcut: brew
  • URL: https://formulae.brew.sh/formula/%s

How it works: when typing something like brew foo and press enter in browser search bar, intead of using the default search engine browser will open the URL https://formulae.brew.sh/formula/foo

Currently this work if your search is a perfect match for a brew recipe but it does not work with aliases.

Example, quick search using brew mc will open a 404 page because mc is an alias for midnight-commander.

This could be addressed by providing HTTP redirects for aliases or by implementing a different query that does the redirection.

@SMillerDev
Copy link
Member

The formula page isn't designed to be a search engine. There is a search implemented that does show aliasses.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants