Giter Site home page Giter Site logo

maverick261 / alfredworkflow-devonthink-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mpco/alfredworkflow-devonthink-search

0.0 0.0 0.0 243 KB

Powerful Tool for Searching in DEVONthink.

License: MIT License

JavaScript 45.04% Python 54.96%

alfredworkflow-devonthink-search's Introduction

DEVONthink Search

Powerful tool for seaching in DEVONthink, for DEVONthink 3.x.

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

Download 中文说明

Usage

  • Type dnt + keywords to search in all opened databases in Alfred.
  • Type dnts + keywords to search in DEVONthink 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.
  • 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.

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 , 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(,).

Configuration

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

CJK (Chinese, Japanese, and Korean) characters should be added ~ in the front when seaching in DEVONthink. For example, searching keywords 你abc我他 should be converted to ~你abc~我他. It's added automatically in DEVONthink Search by using regular expression /([\u4e00-\u9fff]+)/g to matching Chinese characters.

The regular expression can't match Japanese or Korean characters. You can research more perfect regular expressions which match CJK and tell me.

alfredworkflow-devonthink-search's People

Contributors

mpco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.