19

As a former Firefox user I miss a lot the more powerful address-bar history search provided by Firefox.

In Firefox you can type one or more words in the address bar and the browser will propose as possible matches in the drop down sites that contain all of the given words, for example:

The same in Orion does not work. If I enter "GitHub" it shows several possible matches, but if I add a space and a second word nothing will be proposed. I used this feature a lot in Firefox as it allowed me to rely on my history of browsing much more than on my bookmarks.

Do you think something like this could be added to Orion as well?

    This will help me reduce the number of repeated searches on Kagi since I frequently revisit pages every few days while researching some topic or searching for some solution.

      Could you make a more concrete suggestion? Something like this would certainly be great, but its hard to implement if you don't know exactly what you want.

      Do you mean for the suggestions to also match in the URL, as well as in the page title?

        Sure, I believe that when you enter multiple words in the address bar in Firefox it will propose first urls from history and bookmarks that contain all of the world in the URL or title or both meaning that one match could be found in URL and another in title. These proposals will be followed by those that contain less words. This works for one, two or more words entered in the address bar it looks like a score based sorting from a search engine that had indexed dpcuments containing by the URL and the title. Given the small number of entries in history I believe it's not really using a search engine but just iterating over them, giving a +1 to each entry containing a word in URL or title and then sorting by score

        • Vlad replied to this.

          Gamma Good idea.

          Can you list a few concrete examples?

            OK, I will try, but the best option would be if you could download Firefox and give it a try.

            History of 5 items

            1. URL: GitHub.com/borgbase/vorta Title: Desktop backup client for Borg backup
            2. URL: github.com/httpie/httpie. Title: whatever
            3. URL: tabby.sh. Title: A terminal for a more modern age
            4. URL: borgbackup.org Title: Deduplicating with compression and authenticated encryption
            5. URL: GitHub.com/grafana/k6. Title: A modern load testing tool

            URL Bar: GitHub
            Results: 1,2,5

            URL Bar: GitHub backup
            Results: 1

            URL Bar: borg
            Results: 1, 4

            URL Bar: modern
            Results: 3,5

            URL Bar: modern GitHub
            Results: 5

            Edit: I forgot to mention that I checked better in Firefox, and if you enter more than one word it performs an "AND" filter, returning only proposals that contain ALL of the words you typed (as substrings)

            Edit 2: with respect to sorting results, it's probably sorted by "last visit time" descending

              6 days later

              In Safari, if I type pulls into the search bar, the first result is from history: https://github.com/my-org/my-repo/pulls (URL edited for org and repo name anonymity)

              This is very handy!

              However, in Orion, typing pulls only offers search suggestions like "pulls and knobs".
              Typing github into the search bar does suggest GitHub URLs from my history, but I find this less convenient.

              Confirmed that Preferences > Search > Autocomplete suggestions has ✅ History checked.

              Bringing partial URL matching from browsing history to the search bar results would be much appreciated!

                Merged 2 posts from Search suggestions should include partial history matches.

                  Gamma You can use ""Flag" in the right menu to mark a post as duplicate to be merged like I did here.

                    4 months later

                    Currently, autocomplete appears to perform a prefix match on URLs for autocomplete (excluding certain prefixes such as 'www'). For instance, if I have the website https://ppopp23.hotcrp.com open or in history, I can type ppopp2 (or any prefix of the url) into the searchbar to get:

                    However, if I type in hotcr (or in fact any substring of hotcrp.org), nothing shows up:

                    This contrasts with the behavior of matching for titles, which appears to be substring; e.g. "2023" (or any substring of) will match the title "PPoPP 2023" properly:

                    This is pretty annoying when trying to match websites that make heavy use of subdomains, such as Substack, most university websites, and reddit (since typing reddit will not match urls at old.reddit.com).

                    Suggestion: URL matching should be changed from existing prefix matching on the entire URL to one of these options:

                    • full substring matching, as is done for website titles, or
                    • prefix matching on every single parent subdomain for a website, i.e. in regex form, match (^|\.)query instead of ^query. For example, for the website abc.def.ghi.com, search queries should be prefix-matched against abc.def.ghi.com, def.ghi.com, and ghi.com.
                    • some combination of the above (e.g. prefix matching as a higher priority than title title matching, which in turn is higher-priority than full substring matching)
                      Merged 2 posts from Perform substring matching for URL autocompletes.
                        5 months later

                        Now that Kagi is starting to count searches, I would like a slightly different search experience than before. For context, I currently usually start my morning by typing "nyt mini" in the address bar and pressing Enter (I'm sure there are some suggestions but I don't even look at them). The first search result from Kagi is "March 12, 2023 Daily Mini Crossword Puzzle" and while it's not March 12 any more, I click it and get today's NYT Mini Crossword. The other results are quite irrelevant for my task, so it is a shame to waste a Kagi token on the full search.

                        How I think this could work instead: when I press Enter and the search term is something I've used before, I first get an in-browser list of history results, with the most common history item on top. Somewhere on that page there would be a "Search on Kagi" button if I really wanted to rerun my search and not go to the same place as before.

                        I know there are bookmarks and whatnot, but I'm so conditioned to use text search that those are not on the top of my mind when I'm waiting for my morning coffee.

                          5 days later

                          We would love if someone would summarize/consolidite this ask into one simple, focused ask

                            2 months later

                            Here's an example string ranking algorithm: https://sourcegraph.com/github.com/quicksilver/Quicksilver@a239587a6e890056c83bf7c120967bfba63cc917/-/blob/Quicksilver/Code-QuickStepCore/QSense.m

                            Note that it's very sensitive to order, since it's usually used to search in filesystems, not in history entries:

                            You can try a derivate of it here: https://fwextensions.github.io/quick-score-demo/, and compare it to other popular string ranking libraries, or even the original Quicksilver algorithm.

                            Here's the json to try the examples @Gamma posted in Gamma:

                            [
                            {"title": "github.com/borgbase/vorta: Desktop backup client for Borg backup", "url": "github.com/borgbase/vorta"},
                            {"title": "github.com/httpie/httpie: whatever", "url": "github.com/httpie/httpie"},
                            {"title": "tabby.sh: A terminal for a more modern age", "url": "tabby.sh"},
                            {"title": "borgbackup.org: Deduplicating with compression and authenticated encryption", "url": "borgbackup.org"},
                            {"title": "github.com/grafana/k6: A modern load testing tool", "url": "github.com/grafana/k6"}
                            ]

                            Note I have concatenated the title to the URL to be able to match across both, but it doesn't work for modern GitHub as the search term because of the aforementioned order sensitivity. There might be string ranking algorithms that are much more suited to this, or even ranking algorithms that can rank across multiple fields (you'll notice the example pages ranks url and title separately, then order by max score of either, that doesn't work for search strings that match partly in the url and partly in the title).

                            This approach to ranking generally scales quite well as you can compute score for all candidates in parallel, and you can easily build the results up incrementally since new candidates do not modify the score of existing candidates, so are you find new hits you can easily insert them in the partial results that you're already displaying.

                            Again note that the Quicksilver scoring algorithm specifically might not work well in practice for bookmarks / history, but I wanted to describe the concept of score ranking in general and it's is a very popular one.

                              Gamma Can you describe the Orion behavior in this case curently? We did change the alogrithm several times.

                                I can't speak for the specifics of @Gamma's use case, but the example they gave in the OP is still relevant, repro steps:

                                1. Open https://orionfeedback.org/d/2224-better-search-in-history-from-address-bar
                                2. Type "orionfeedback history" in address bar

                                Expected: pages including orionfeedback and history in the url or title or combination of the two are suggested, including https://orionfeedback.org/d/2224-better-search-in-history-from-address-bar.
                                Actual: nothing is suggested.

                                  Hi all,

                                  I don't think there is much I can add. What Firefox does is:

                                  • search into browsing history and bookmarks using all words you type in the address bar as substrings
                                  • search both in URL and Title
                                  • propose only matches that contain all of the words (it's an "AND" search)
                                  • sort by last visited time, descending (not sure)

                                  Looks pretty simple to me to implement and would be a significant improvement over what Orion does. In Orion, the moment you add a space and a second word all proposals disappear.

                                  Orion with one word:

                                  With two words, using "origin" which appears in the second row above (both in URL and title), I get no proposals:

                                  To the contrary here is firefox, searching "register" in the addressbar prompts for several matches from The Register:

                                  Now adding "stutte" that is a substring of the second URL:

                                  Or adding a second word that is part of the title (notice how Firefox highlights occurrences both in title and URL):

                                  I think the logic is:

                                  List results
                                  for each site in (bookmarks, history)
                                          for each string in addressbar
                                                 if site.url.contains(string) or site.title.contains(string)
                                                         results.add(site)
                                  sortByLastVisitTimeDescending(results)
                                  return results