JuliaComputing / JuliaHub-Feedback

Public repo for filing JuliaHub issues
6 stars 1 forks source link

do whatever it is that lets firefox use package search as a search type #128

Open ExpandingMan opened 3 years ago

ExpandingMan commented 3 years ago

For most websites with a search, when you right click on the URL in firefox it gives you an "add [whatever this is]" option which allows you to add it as a search engine. This allows you to search with a keyword, for example "w supergravity" searches wikipedia for "supergravity".

I have no idea what tells firefox it can do this (frankly it's a lousy feature on firefox part because it doesn't let you just enter in an arbitrary URL like some browsers), but it would be really great to have a keyword search for packages on juliahub.com.

pfitzseb commented 3 years ago

You can right click the JuliaHub search field and use Add a Keyword for this Search...: image

Ok, turns out this doesn't usually work; you need to make sure to set https://juliahub.com/ui/Search?q=%s as the bookmark URL.

I think that's functionally equivalent to the way you suggest doing this, but we definitely should figure out how to enable that as well.

ExpandingMan commented 3 years ago

As far as I can tell this functionality in firefox is borked... when you select the option you highlighted, firefox brings you to a menu for creating a bookmark that lets you bind a bookmark key, but it doesn't actually let you bind a search prefix for it...

It's really more of a firefox problem, other browsers have straightforward ways of doing this. As sad as it makes me this is likely the sort of reason firefox is fading into oblivion...

pfitzseb commented 3 years ago

Hm, works fine for me: image

ExpandingMan commented 3 years ago

That's so weird, I get a different dialog box when I click on the same thing... firefox 90.0.2 2021-08-07-202416_491x389_scrot

pfitzseb commented 3 years ago

Oh, right. You need to edit it afterwards. Forgot to mention that...

ExpandingMan commented 3 years ago

Ugh... ok, so the issue is more complicated than I thought, but I think it's fair to say it's all on firefox.

The reason I did not think it was working was because for some reason it works a bit differently than the searches that are added with the other method and for some reason the bookmark search is not picked up by tridactyl (vim-like interface for firefox). I blame firefox rather than tridactyl because I don't see why these two methods should work so differently (also they appear in completely different lists in config).

Alright, it would still be nice to have the other button, but this is far from firefox's proudest moment. There's not necessarily any action for JuliaHub here. Feel free to close as resolved if you deem appropriate.

Thanks!