---
title: Zen search for SearchLink
date: 2026-10-04 08:27
slug: zen-search-for-searchlink
categories:
- Blog
- Code
tags:
- searchlink
- search
- history
- linking
- linkding
- markdown
- service
- shortcuts
---

[SearchLink](https://srchl.ink) can now look through [Zen](https://zen-browser.app/) bookmarks and history the same way it already did with Firefox (and Chrome and Safari). Zen keeps its history and bookmarks in a Mozilla `places.sqlite` database, so `!h` grew a `z`.

If it's been too long and you've forgotten what [SearchLink](https://srchl.ink) is, it's one of my favorite projects I've ever created. It lets you select any text and search for a link via a ton of sources, inserting Markdown links for everything without opening a browser. If you write in Markdown (or do a lot of show notes), you should check it out.

### The shortcuts

`!hz` searches both Zen history and Zen bookmarks. Add `h` or `b` when you only want one of them.

```markdown
[jekyll](!hzb)
[searchlink privacy](!hzh)
[something I know I opened in Zen](!hz)
```

You can still stack browsers. `!hzhfb` is Zen history plus Firefox bookmarks. A bare `!h` searches whatever you have turned on in the config, which now includes Zen if you enable it.

A search term that starts with a single quote is an exact phrase. Every other word has to show up in the URL or the title.

### Updating

Select the word `update` (or `upgrade`) and run the SearchLink service. On macOS that downloads the latest release and replaces the services in `~/Library/Services`. If you installed the cask, `brew upgrade --cask searchlink` does the same job. The CLI build tracks the repo, so pull and you are current.

You can also always download the latest release [from GitHub](https://github.com/ttscoff/searchlink/releases/latest) or below.

**[Download SearchLink v2.3.96](https://github.com/ttscoff/searchlink/releases/latest/download/SearchLink.zip)**

Generate Markdown links from web searches without leaving your editor.

[More info](https://brettterpstra.com/projects/searchlink/)

### Configuring `!h`

Explicit shortcuts like `!hzh` always search Zen. The plain `!h` shortcut only searches the types listed in `~/.config/searchlink/config.yaml` (or `~/.searchlink` if you still have the old file).

SearchLink will not edit an existing `history_types` list for you. Add the Zen lines yourself, and comment out anything you do not want `!h` to touch:

```yaml
history_types:
  - safari_history
  - safari_bookmarks
  - zen_history
  - zen_bookmarks
  # - firefox_history
  # - firefox_bookmarks
```

### A few limits

This is macOS only. SearchLink reads `~/Library/Application Support/zen/profiles.ini` and uses that profile's `places.sqlite`. If you have more than one Zen install, it prefers the install default, then the profile marked default, and if several installs are listed it picks the database that was modified most recently. Other profiles are ignored.

It also needs the `sqlite3` command. macOS includes that. The database is copied (including the write-ahead log) so a running Zen does not lock the query, and visits from the current session are included. What you get back is the newest matching visit or bookmark, not a ranked "best title" result. Search-result URLs are skipped, including Google, DuckDuckGo, Kagi, Bing, and other result pages, so a history hit should be the page you actually opened.

The same profile lookup is what Firefox uses now, too. Firefox used to grab the first `*default-release` folder it saw, which was the wrong profile often enough to be annoying.

### Linkding

I also tightened up `!ld` (and `!ding`). It used to download the whole bookmark library and search a local cache. It now asks your Linkding server, with the same query syntax as the Linkding UI: words, `"quoted phrases"`, `#tags`, and `and` / `or` / `not`. Archived bookmarks are included, and the link text you wrote stays put.

```yaml
linkding_server: https://links.example.com
linkding_api_key: your-token
```

The token is under **Settings, Integrations** on the server. A very broad query only looks at the first thousand matches in active bookmarks and the first thousand in the archive, then picks the best of those. An exact title or tag match wins.

Enjoy!

## SearchLink

Project: [SearchLink](https://brettterpstra.com/projects/searchlink.md)

- [Zen search for SearchLink](https://brettterpstra.com/2026/10/04/zen-search-for-searchlink.md): 2026-10-04
- [SearchLink with URL Previews!](https://brettterpstra.com/2025/04/02/searchlink-with-url-previews.md): 2025-04-02
- [Brett's Favorites 2024: Behind The Scenes](https://brettterpstra.com/2025/01/02/bretts-favorites-2024-behind-the-scenes.md): 2025-01-02
- [Brett's Favorites 2024: Personal Projects](https://brettterpstra.com/2024/12/31/bretts-favorites-2024-personal-projects.md): 2024-12-31
- [linkding for SearchLink](https://brettterpstra.com/2024/11/01/linkding-for-searchlink.md): 2024-11-01
- [Add SearchLink plugins using any programming language](https://brettterpstra.com/2024/08/10/add-searchlink-plugins-using-any-programming-language.md): 2024-08-10
- [SearchLink with improved bookmark and history searching](https://brettterpstra.com/2024/08/09/searchlink-with-improved-bookmark-and-history-searching.md): 2024-08-09
- [JavaScript Lyric embed for SearchLink](https://brettterpstra.com/2023/12/29/javascript-lyric-embed-for-searchlink.md): 2023-12-29
- [Updated Bitlyize Service](https://brettterpstra.com/2023/12/26/updated-bitlyize-service.md): 2023-12-26
- [Weather forecasts for SearchLink](https://brettterpstra.com/2023/12/25/weather-forecasts-for-searchlink.md): 2023-12-25
- [Multi-keystroke keybindings](https://brettterpstra.com/2023/12/22/multi-keystroke-keybindings.md): 2023-12-22
- [Brett's Favorites 2023](https://brettterpstra.com/2023/12/08/bretts-favorites-2023.md): 2023-12-08
- [SearchLink gets Google Search back](https://brettterpstra.com/2023/11/05/searchlink-gets-google-search-back.md): 2023-11-05
- [Searchlink, not just for searching](https://brettterpstra.com/2023/11/01/searchlink-not-just-for-searching.md): 2023-11-01
- [SearchLink Fixes](https://brettterpstra.com/2023/10/30/searchlink-fixes.md): 2023-10-30
- [PopClip extensions update](https://brettterpstra.com/2023/01/24/popclip-extensions-update.md): 2023-01-24
- [I completely refactored SearchLink and now I should probably stop](https://brettterpstra.com/2023/01/22/searchlink-refactored.md): 2023-01-22
- [SearchLink -- better searches, better results](https://brettterpstra.com/2023/01/16/searchlink-better-searches-better-results.md): 2023-01-16
- [SearchLink -- browser history, bookmarks, and Pinboard](https://brettterpstra.com/2023/01/16/searchlink-browser-history-pinboard-and-accurate-searching.md): 2023-01-16
- [SearchLink 2.3 -- improved inline search for Markdown writers](https://brettterpstra.com/2023/01/16/searchlink-2-dot-3-improved-inline-search-for-markdown-writers.md): 2023-01-16
- [SearchLink goes to the movies (and other updates)](https://brettterpstra.com/2023/01/13/searchlink-goes-to-the-movies.md): 2023-01-13
- [Brett's Favorites 2022 - Personal Projects](https://brettterpstra.com/2022/11/30/bretts-favorites-2022-personal-projects.md): 2022-11-30
- [Hook and SearchLink](https://brettterpstra.com/2022/08/23/hook-and-searchlink.md): 2022-08-23
- [Just a SearchLink fix](https://brettterpstra.com/2021/05/15/just-a-searchlink-fix.md): 2021-05-15
- [SearchLink gets a bit more social](https://brettterpstra.com/2021/03/31/searchlink-gets-a-bit-more-social.md): 2021-03-31
- [A quick SearchLink update](https://brettterpstra.com/2020/07/08/a-quick-searchlink-update.md): 2020-07-08
- [SearchLink: Checking your work](https://brettterpstra.com/2020/01/08/searchlink-checking-your-work.md): 2020-01-08
- [SearchLink: Next Steps](https://brettterpstra.com/2019/12/23/searchlink-next-steps.md): 2019-12-23
- [SearchLink Basics](https://brettterpstra.com/2019/12/16/searchlink-basics.md): 2019-12-16
- [Stuff I've made (and actually use)](https://brettterpstra.com/2019/01/15/stuff-ive-made-and-actually-use.md): 2019-01-15
- [SearchLink 2.2.8](https://brettterpstra.com/2018/02/09/searchlink-2-dot-2-8.md): 2018-02-09
- [macOS KeyBindings for SearchLink](https://brettterpstra.com/2017/11/08/macos-keybindings-for-searchlink.md): 2017-11-08
- [SearchLink and Markdown Service Tools updates](https://brettterpstra.com/2017/04/03/searchlink-and-markdown-service-tools-updates.md): 2017-04-03
- [SearchLink 2.2.3 with Apple Music searches](https://brettterpstra.com/2016/09/28/searchlink-2-dot-2-3-with-apple-music-searches.md): 2016-09-28
- [SearchLink 2.2.2](https://brettterpstra.com/2015/09/08/searchlink-2-dot-2-2.md): 2015-09-08
- [SearchLink 2.2.0. Awesome.](https://brettterpstra.com/2014/11/10/searchlink-2-dot-2-0-awesome.md): 2014-11-10
- [Install SearchLink without the Terminal hassle](https://brettterpstra.com/2014/05/08/install-searchlink-without-the-terminal-hassle.md): 2014-05-08
- [SearchLink fixes (2.1.2)](https://brettterpstra.com/2014/04/16/searchlink-fixes-2-dot-1-2.md): 2014-04-16
- [SearchLink 2.1.1: blogger friendlier](https://brettterpstra.com/2014/04/13/searchlink-2-dot-1-1-blogger-friendlier.md): 2014-04-13
- [SearchLink 2.1](https://brettterpstra.com/2014/02/18/searchlink-2-dot-1.md): 2014-02-18
- [SearchLink 2.0](https://brettterpstra.com/2014/01/08/searchlink-2-0.md): 2014-01-08
- [SearchLink 1.8 is the new Auto-Link Service](https://brettterpstra.com/2014/01/04/searchlink-1-8-new-auto-link-service.md): 2014-01-04
- [A better SearchLink fix](https://brettterpstra.com/2013/10/14/a-better-searchlink-fix.md): 2013-10-14
- [A SearchLink MAS stopgap](https://brettterpstra.com/2013/10/13/a-searchlink-mas-stopgap.md): 2013-10-13
- [Searchlink 1.6 update](https://brettterpstra.com/2013/08/09/searchlink-1-dot-6-update.md): 2013-08-09
- [SearchLink 1.5 with Amazon search and affiliate linking](https://brettterpstra.com/2013/03/28/searchlink-1-dot-5-with-amazon-search-and-affiliate-linking.md): 2013-03-28
- [SearchLink gets a little smarter](https://brettterpstra.com/2013/03/27/searchlink-gets-a-little-smarter.md): 2013-03-27
- [SearchLink: automated Markdown linking improved](https://brettterpstra.com/2012/10/16/searchlink-automated-markdown-linking-improved.md): 2012-10-16
- [Automated search and link text Service](https://brettterpstra.com/2010/09/14/automated-search-and-link-text-service.md): 2010-09-14

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
