Edit-- I read your above comment, to do this in as few keystrokes as possible could very well be a job for auto-hot-key. Press ctrl+k then you type in what you want to search, then create an autohotkey script to down arrow(x Number of times) and press enter. If you want an arbitrary search term to also be added you can have AHK send site:"custom.url", down arrow, enter, upon a bound key press. (It is perfectly acceptable to have the site:sampleurl.com after the search query in the cases I tried)
The functionality isn't in the location/url bar though. It is one box to the right of that. To search a common site the routine is easier. (These are customizable in about:preferences#search or with the magnifying glass, for example I just added superuser to the options so that I'll be able to now search superuser instead of typing site:superuser.com). Just type the query and press the bound keystroke so that the autohotkey script will:
- send down arrow the appropriate number of times and
- enter.
https://www.autohotkey.com/docs/commands/Send.htm should get you on the right path and sailing smoothly in no time.
Repeat this with a different number of down arrows and now you have auto searches based on an engine with customizable keystrokes.
You can make that with AutoHotKey and comparable products.
– minopret – 2014-11-09T11:27:40.6731@minopret Your comment is not really helpful, as you don't explain how this should be doable using such a product. I don't think it is, because it is not a simply keybinding issue. Also, this software seems to be Windows-specific and I use Linux. – Reinstate Monica - dirkk – 2014-11-09T11:52:49.967
1
Site-specific search? Do you mean OpenSearch? (As described in Chromium's Tab to Search?)
– None – 2013-10-15T14:46:10.073@manatwork Yes. Sorry, I didn't know the term up to now. – Reinstate Monica - dirkk – 2013-10-15T16:03:30.817
No problem. Actually the OpenSearch extension only provides the base functionality and you are asking for a specific way to access it. (So not sure if your edit was really needed.) Firefox supports OpenSearch, but personally I never met such thing like changing the search provider according to current URL. – None – 2013-10-15T16:15:28.997
The extension "Add to Search Bar" gives you a step in that direction. – minopret – 2013-11-10T01:10:08.067
Firefox has a similar functionality though as of now adding is not automatic.
– vWil – 2013-11-19T16:03:15.243Regarding OpenSearch in Firefox please see this. The search engine can be added via the Search bar, or via a Javascript link on the site.
– vWil – 2013-11-20T13:53:41.4971Unfortunately, all of this is not really solving my issue. My point is that I'd like to press tab to search the specific site. For example when using Chrome i simply type in i+<tab> to search imdb. Even when adding imdb to FF I have to type "imdb <search term>". Right now, I am using DuckDuckGo as my default search engine and by using the provided bang syntax search site-specific (most keywords are rather short, e.g. !w for wikipedia) – Reinstate Monica - dirkk – 2013-11-20T14:43:17.890