Fuzzy Search Firefox Bookmarks from the Command-Line
Tools you’ll need:
- Powershell v7+
- Sqlite
- FZF
- Cut & Xargs: How to use in Powershell
I’ll demonstrate adding a Powershell alias below, but due to using cross-platform tools, the final command used should be fairly similar when used in a Bash / ZSH alias.
Open your Powershell profile in your editor:
Next, add the following function and alias:
Run . $PROFILE
(remember the dot) to reload your profile.
Now simply type ffb
(for “FireFox Bookmarks) to do a fuzzy search on your bookmarks by folder, title, and url from the command-line, and have it open in FF.
Examples
Note: Any bookmarks with a |
in their name will use ::
in the search to avoid conflicting with the SQL output format. This will not edit your bookmarks.
More info: Profiles - Where Firefox stores your bookmarks, passwords and other user data