pacmax beta

Alfred Pac by mpco on GitHub

AlfredWorkflow DEVONthink Search

Powerful Tool for Searching in DEVONthink.

From their README

DEVONthink Search

Powerful tool for seaching in DEVONthink 3

    ![](https://img.shields.io/github/stars/mpco/AlfredWorkflow-DEVONthink-Search)

    ![](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fmpco%2FAlfredWorkflow-Recent-Documents)



中文说明 •
Download •
How To Use •
Configuration

NB: For DEVONthink 2.x, you should use the versions of this workflow before V7.0. Switch to Branch DEVONthink 2.x to access the README document and source code.

Sorry, no more updates as I no longer use a Mac computer and the installation of macOS virtual machine failed.

How to Use

  • Type dnt + keywords to search in all opened databases in Alfred. Search results are sorted by relevance score, consistent with DEVONthink.
  • Type dnts + keywords to search in DEVONthink window.
    • Press Enter to search in existing window.
    • Press ⌘Command + Enter to search in a new window.
  • Type dnd to choose which datebase to search
    • Press Enter, then type in keywords to search in the chosen database.
    • Press ⌘Command + Enter to list all tags in the database, then choose a tag and press Enter to list all documents which have the tag.
    • Press ⌥Option + Enter to list smart groups in the chosen database.
  • Type dnm + tag1, tag2, ... to list all documents which have these tags in all database. Tags inputed must be exact. For example, Tag aBcD can't be inputed as aBc or abcd
  • Actions for Workspace:
    • Type dnw to list all workspaces, press Enter to load the selected workspace.
    • Type dnwa + WorkspaceName to save current workspace named WorkspaceName.
  • Type dnf to list favorites.
  • Type dnsg to list all smart groups in all opened databases.

After documents were listed,

  • Press Enter to open the selected file with external editor.
  • Press ⌘Command + Enter to open with DEVONthink.
  • Press ⌥Option + Enter to reveal result in DEVONthink.
  • Press ⇧Shift + Enter to copy item's markdown link.
  • Press →, fn, etc. to show file actions of Alfred. The keys are set in Features → File Search → Actions of Alfred Preferences.
  • Press Shift or ⌘Command + Y to QuickLook the selected file.
  • Press ⌘Command + C to copy DEVONthink link (x-devonthink-item://xxxx) of the selected file.
  • Drag & Drop file in the result list to wherever you want.

Enter

Configuration

ignoredDbUuidList: ignore databases

dnt and dnm search in all opened databases. You can ignore some databases by setting ignoredDbUuidList environment variable in Alfred workflow.

  1. Copy database link in DEVONthink, which is similar to x-devonthink-item://1FC1A542-D8CA-4807-B806-8617966870B5.
  2. The part 1FC1A542-D8CA-4807-B806-8617966870B5 is the database's UUID.
  3. Fill in workflow configuration with UUIDs. You should separate multiple UUIDs with comma(,).

filterOutGroup: filter out group and tag in searching result

You can set environment variable filterOutGroup to yes if you want to filter out group and tag.

Automation permission in macOS Mojave

Alfred will ask for Automation permission to control DEVONthink when you run the workflow for the first time. You should check up permission of Alfred controlling DEVONthink in System Preferences → Security & Privacy → Privacy → Automation if the workflow doesn't work.

Known issues

Latest release

  • 7.64 years ago, 64 KBDownload

    Update for macOS 12.3, Python3

12 earlier releases
  • 7.55 years ago, 63 KBDownload
  • 7.47 years ago, 63 KBDownload
    • Change dnts behavior
      • Press Enter to search in existing window.
      • Press ⌘Command + Enter to search in a new window.
    • fix bug of dnts
    • Compatible with Alfred 3.x
  • 6.37 years ago, 121 KBDownload

    v6.2: dnf to list favorites.


    v6.3:

    • dnts to search in Search Window of DNt.
      • Press Enter to search in existing window.
      • Press ⌘Command + Enter to search in new window.
    • Compatible with Alfred 3.x

    This may be the last version that supports DEVONthink 2.x

    这可能是支持 DEVONthink 2.x 的最后一个版本。

  • 7.37 years ago, 63 KBDownload
    1. Keyword dnts
      • Press Enter to search in a new DEVONthink window.
      • Press ⌘Command + Enter to search in a existing window.
    2. Keyword dnf to list favorites.
    3. Keyword dnsg to list smart groups in all opened databases.
      • Type dnd to list databases, then press ⌥Option + Enter to list smart groups in the chosen database.
  • 7.07 years ago, 60 KBDownload

    Starting with this release, only DEVONthink 3.x is supported.


    从该版本开始,仅支持 DEVONthink 3.x

  • 6.07 years ago, 121 KBDownload

    New feature:

    1. dnts abc 你好: Search abc ~你好 in search window of Dntp.
    2. dnw : Open workspace.
    3. dnwa abc: Save workspace named abc.

    新特性:

    1. dnts abc 你好: 在 Dntp 的搜索窗口中搜索abc ~你好,自动为中文字符添加~前缀。
    2. dnw : 打开 workspace。
    3. dnwa abc: 以名称 abc 保存 workspace。
  • 5.07 years ago, 120 KBDownload

    This version exchanged the actions of ⌘Command + Enter and Enter. It added some new amazing features.

    • Press Enter to open the selected file with external editor.
    • Press ⌘Command + Enter to open with DEVONthink.
    • Press ⌥Option + Enter to reveal result in DEVONthink.
    • Press →, fn, etc. to show file actions of Alfred. The keys are set in Features → File Search → Actions of Alfred Preferences.
    • Press Shift or ⌘Command + Y to QuickLook the selected file.
    • Press ⌘Command + C to copy DEVONthink link (x-devonthink-item://xxxx) of the selected file.
    • Drag & Drop file in the result list to wherever you want.

    这个版本交换了 ⌘Command + Enter 和 Enter 两个动作。并增加了几个很棒的特性。

    • 按下 回车 用外部程序(系统默认)打开所选文件。
    • 按下 ⌘Command + 回车 用 DEVONthink 打开所选文件。
    • 按下 ⌥Option + 回车 在 DEVONthink 窗口中显示所选文件。
    • 按下 → 或 fn 等,显示 Alfred 文件动作。可以在 Alfred 设置里 Features → File Search → Actions 中查看或修改按键。
    • 按下 Shift 或 ⌘Command + Y 可以预览(QuickLook)当前选中的文件。
    • 按下 ⌘Command + C 复制当前选中的文件在 DEVONthink 中的链接(x-devonthink-item://xxxx)。
    • 直接拖拽列表中的文件,复制到你需要的地方。
  • 4.37 years ago, 119 KBDownload

    Changed Run Behaviour of Script Filter to improve performance when searching in large databases


    更改 Script Filter 的 Run Behaviour,以改善在大数据库中搜索时的性能问题。

  • 4.27 years ago, 119 KBDownload

    Change regex of matching Chinese characters for compatibility.


    更换匹配中文字符的正则表达式,以解决在部分版本的系统上无法运行的问题

  • 4.18 years ago, 119 KBDownload

    Add configurationfilterOutGroup of filtering out group and tag in searching result.


    增加了一个配置项 filterOutGroup,可以控制是否滤除搜索结果中的文件夹和标签了

  • 4.08 years ago, 119 KBDownload

    Amazing Update!

    Now, you can search by Tags


    喜大普奔的更新!

    现在可以按照 标签 搜索了

  • 3.08 years ago, 116 KBDownload

    Two editions:

    • DEVONthink Pro Search, for DEVONthink Pro/Pro Office
    • DEVONthink Search, for DEVONthink Personal