1. 42

  2. 29

    Did you know that you can search all open tabs (even across synced devices) if you prefix your search term in the urlbar with a percent sign (%)?

    There are also other modifiers to restrict results to bookmarks, history etc. See https://support.mozilla.org/en-US/kb/awesome-bar-search-firefox-bookmarks-history-tabs#w_changing-results-on-the-fly

    (N.B. We actually call it the “awesome bar” instead of address or search bar, because of all these extra features:))

    1. 6

      Oh wow, I had no idea! The fact that it works across synced devices too is incredible. I’ll be using all of those extensively from now on; thank you!

      1. 3

        Wow, thanks! This is like half of the reason why I use the Vimium plugin and, nowadays, qutebrowser! God, I wish “advanced user” features were more well documented. Just a list of productivity tips in a concise format. At this point, I’ll have to write it myself.

        1. 2

          Start a draft and I’m happy to proof read (and maybe even contribute a few tips). Would be a great guide to have.

          1. 1

            God, I wish “advanced user” features were more well documented.

            Firefox 66, released 9 days ago, documented that % feature. Specifically, that version added a Search Tabs menu item to the ‘⌵’ tab overflow menu. When activated, that menu item just moves focus to the Awesome Bar and prepends “% ” for you.

            I found that an elegant way to teach me the shortcut syntax without having to display help text anywhere. But now that I think about it, the interface could be even better if the Awesome Bar results popover displayed “searching in tabs” somewhere whenever the text contained %. And I didn’t realize until reading that linked help article that the % could be anywhere in the text, not just at the start.

        2. 9

          Wow, thanks for the article. I didn’t know about the feature and I’m loving it.

          1. 9

            When I switched from duckduckgo bangs to firefox keywords search I found %S by coincidence for search terms without url escaping. I couldn’t find this in any documentation. This allows me to just add !archive in front of the url to get redirected to the web archive:

            1. 1

              That’s really really useful! Thank you!

            2. 6

              “For example, if you typed “w hedgehog”, you could go to the Wikipedia page for the little critters, or “img hedgehog” could show you a cute image search. This is similar to search engine DuckDuckGo’s “bang commands”, except you can define your own new ones and pick whatever keyword you like, instead of being limited to pre-defined ones.”

              I’ve been using and telling people about bangs in DDG. Had no idea Firefox could do better. Thanks for the tip, Felix!

              1. 4

                Also, if you use Firefox Sync to sync bookmarks, you keyword searches will work in all you devices. Add them from the Desktop and then use them from Mobile, thats something I use a lot.

              2. 5

                It is probably one of my most used features as well. That and “send tab to device” :-)

                1. 3

                  Opera was the first browser I know of that did this, back in 2005. It’s where Firefox and Chrome got the idea (along with tabs and a bunch of other stuff).

                  It’s too bad what happened to Opera, before it was sold off and became a Chromium clone it was by far the best browser.

                  Except for searches on the local network, I always just use DDG now, though. An extra “!” takes no time to type and I don’t have to setup search engines on a dozen computers.

                  1. 2

                    This doesn’t seem to be possible to setup from Firefox mobile… Am I missing something?

                    1. 3

                      No, I think you’re right; I haven’t found a way to set up new ones on mobile.

                      However any that you set up on your desktop and sync to your phone will work there. That’s how I use them on my phone.

                    2. 1

                      If you use this feature for searching through developer documentation, consider using the website devdocs.io or Dash for macOS instead.

                      Those tools are able to provide a better experience by being specialized for developer documentation. For example, they can store documentation and let you search through it while offline. Dash even has similar keyword feature – for example, type js:test to find the JavaScript method RegExp.prototype.test().

                      1. 1

                        If you want to create an mdn shortcut for searching MDN, I recommend using the open-source mdn.io service to perform the search. Just give your bookmark the URL https://mdn.io/%s and the keyword mdn, and then searching mdn test will bring you directly to RegExp.prototype.test() instead of an MDN search results page.

                        The service works by redirecting you to a Google “I’m Feeling Lucky” search restricted to the MDN site. The downside is that Google or the mdn.io operators could theoretically track your searches.

                        1. 1

                          I use this a lot — specifically for GitHub, Stackage and npm.

                          1. 1

                            If you like keyboard accessibility, give qutebrowser a try.

                            It is WebKit-based, but doesn’t have any extra crap included, and is keyboard-first.

                            1. 1

                              Sadly doesn’t have a sandbox 🙁, something I’d consider a basic browser security requirement in 2019.

                            2. 0

                              It’s so useful, I’m using it daily for docs.io, rust std docs and crates.io