Hacker News new | ask | show | jobs
by warbiscuit 2429 days ago
Followup - I'd actually been using chrome a bit more heavily; and was wanting to use FF more, just to support open standards. One of the main things I was missing was being able to type in google docs domain, tab, and type a document. I was planning to research how to make something similar work in FF, and now I know how, and that they're removing it :(
1 comments

There is ancient feature of regular bookmarks to serve as "search keywords" [1]: just give it a some keyword and use `%s` in place of URL you want to substitute with value encoded as URI fragment (IIRC, or `%S` to be used more verbatim). In Firefox it is directly in "New bookmark" form; in Chrome it is dug somewhere in "Search engines" corner of settings.

For example setting keyword `t` for uri `data:text/plain,%S` and entering `t foo` into location bar will navigate you to `data:text/plain,foo`, i.e. "make document". If Google Docs have GET endpoint for creating documents, it should work. For searching you can apparenly use `https://docs.google.com/document/?q=%s`.

[1] https://www-archive.mozilla.org/docs/end-user/keywords

The parent comment was referring to how Chrome automatically adds search engines. You only have to "dig into" the settings menu if you want to change the keyword or add a custom search.

Even if you're adding it manually, I think the list of search engines is a more intuitive place to put such a feature than "bookmark keywords".

Compared to similar features in Chrome or DDG's bangs, Firefox's bookmark keywords seem less discoverable to me.

While less discoverable, bookmarks with %s allow "searching", or rather URL macro-expansion, for pages that lack search features.
The exact same trick works with custom search engines in Chrome as well.

They're equally powerful. Automatically adding search engines means users don't have to do so by hand, but you can still manually create a "search engine" too (e.g. "https://xkcd.com/%s/" with the keyword "xkcd").

In Firefox I keep a folder with bookmarks that have keywords, but I would prefer the UI in Firefox's search engine settings (the bookmark manager doesn't have a keywords column).

The problem is few will discover Firefox's bookmark keywords unless they're told about the feature, and manually create such bookmarks, while Chrome automatically creates keywords for search engines and prompts users to try them out.

I completely agree that it's a pity such nice feature isn't known better among wide audience and yes, Firefox bookmarks management ("Library") UI leaves much to be desired. [2]

Just one reminder: in Firefox there is "Add a Keyword for this search..." command on any (form) input field that triggers keyword bookmark creation wizard [1], so what Chrome does automagically by visiting page with form (or using the form once?) you can do quite easily in Firefox as well, but you must find the input field, shift+f10 or click few times and pick keyword.

Also, using same keyword for different URL will (at this moment) silently "transfer" the keyword to new URL, with no warning about

[1] yet again, this wizard obscures resulting bookmarked URL with relevant `%s` part, so regular user cannot find out how this thing works. (I'm sad how hard recent browsers tend to hide whole concept of URL from users, in general. I understand it, but it's sad.)

[2] I had to `select moz_keywords.keyword, moz_places.url, moz_places.title from moz_keywords inner join moz_places on moz_places.id == moz_keywords.place_id order by keyword;` last time I wanted to see all my keywords. (And I'm trying to keep them in a single folder as well.)

> I completely agree that it's a pity such nice feature isn't known better among wide audience and yes, Firefox bookmarks management ("Library") UI leaves much to be desired. [2]

My main worry is that I mainly use tags to sort my bookmarks before using folders, and even after many years they (tags) aren't showing up on mobile. I'm afraid they'll eventually pull tags support out and become way less useful.

Tags are IMO a better sorting system than folders.

I have noticed that menu entry for years, and tried using it, but I had no idea how (and I guess it wasn't big enough of an issue for me to look it up). Thank you for explaining.