Coder Social home page Coder Social logo

alfredworkflow-devonthink-search's People

Contributors

mpco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfredworkflow-devonthink-search's Issues

Suggestion: Reusing exist window

When using dnts start a new search, there will always l be a new DEVONThink window opened. It's annoying too much windows opened.
If It is possible to reuse an existing window to start the search?

Add `Go->To Document...` function

I know the intelligent searching of DT3 is powerful. But sometimes we just want to search by filename. And DT3 has this function
Go ->To Document...
I was wondering if we can add this function to this workflow.

dnd & dnt not working 

When I run your workflow using 'dnts' it works fine but 'dnd' doesn't appear in the list of options and 'dnt' just results in fallback searches as soon as I type a space. I wonder if this is because there is some kind of permissions issues that is not allowing it to run scripts? I know that Alfred 4 handles permissions differently. I unchecked and rechecked Alfred in Privacy preferences (Accessibility) and also added Devonthink, but no dice. Any ideas?

I'm using Alfred 3 on Mac OS 10.13.6 (because of some dependency issues).

Thanks you for this workflow!

Alfred

你好,刚刚上手devonthink,里面的中文搜索让我忍无可忍,幸好发现你做的workflow。但是下载最新版以后,发现无法搜索,如下图。
screenshot_2019-02-18 15 00 25_bae7tq
我自己做了一个较为简单可以搜索的(电脑小白,纯粹照猫画虎),如下图
screenshot_2019-02-18 15 00 59_qur374
screenshot_2019-02-18 15 00 46_elfl7q
这样做虽然可以搜索,但无法建立用默认程序打开等动作,只能在devonthink中显示搜索项。不知道是什么问题,希望你可以帮我解决。谢谢!

macOS Catalina 上的权限问题

第一次运行该 Workflow 时没有弹出授权。系统偏好设置的自动化中,Alfred 只拥有控制 Finder 和 Music 的权限,没有控制 DEVONthink 的权限,另外 dnd 直接触发不了。我该怎么办呢?
Alfred 版本是 4.1.1[1172]
DEVONthink 版本 3.5.2

一个小问题

search.js 中,

if (itemLocation.length > 1) {
	itemLocation = itemLocation.slice(0, -1).replace(/\//g, " > ")
} else {
	itemLocation = ""
}

这段代码替换了 /,但是之后的代码

if (itemLocation == "/Tags/") {
	item["title"] = "[Tag] " + itemName
}

使用了替换了 / 的路径来判定 record 是否为 tag 。

这里可以改为 if (record.location() == "/Tags/")

或者使用 record 的 tagType 属性来判断 record 是否为 tag。

function isTag(record) {
	return (record.type() == "group") && (record.tagType() !== "no tag")
}

https://discourse.devontechnologies.com/t/determining-whether-a-group-is-a-user-tag-or-not/9253/2

V2.0.3 will add a “tag type” property returning either no tag (no group or excluded from tagging), group tag (outside of Tags group) or ordinary tag (inside of Tags group)

dnf not listing favorites

This is a fabulous Alfred workflow! However, dnf does not list favorites for me. I'm using DT3 (3.5.2) on macOS 10.15.6.

How am I supposed to install this?

I don't have a clue what to do with all the files, and there is nothing in the readme to tell me what to do. Could there be a .alfredworkflow download?

‘dnf' isn’t working for me

All of the other filter commands are working but ‘dnf' does not. After typing ‘dn' I see “List Favorites" as the top choice in the Alfred window. If I hit return, or follow through with the final ‘f', then I fall out of your workflow to a Google search for ‘dnf'. I am running version 7.4 of your workflow and DT3 3.0.4.

Feature Request - Open DEVONthink Workspaces

Great workflow! I'm working heavily with the workspaces feature in DEVONthink Pro and I was wondering if it might be possible to be able to open a particular workspace from Alfred. Perhaps a dnw command that lets you select a particular workspace? Just a thought!

Suggestion: unified search

Thank you for creating this.

Awesome workflow, especially now in combination with the new Devonthink!

Suggestions:

  • Unified / advanced search
  • Tab-completion on #tag and in:db
  • Friendly names for databases

dnt search_terms [#tag] [y:year] [in:db]

-->

term description  example
search_terms one or more fulltext search terms  car repair manual
#tag  tag  #tesla #manual
`  tag  #tesla
y: year or range  y:2018
  y:2018..2019
  y:18
  y:18...19
  y:18-19
in: search in database  in:ref
  in:ref in:main
  in:2
  in:2,3

Tab completion

  • Start typing #te, in-line list appears tesla/team/text/.., select to autocomplete tag

Assign Friendly Names

  • Assign short Friendly Names to databases, or even simple numbering
  • "manuals and reference material.dtDb" --> 1 or ref
  • Example: dnt repair #tesla in:ref

Tab completion for databases

  • Start typing in:
    • list appears
      • main database1............. main
      • manuals and ref............ ref
      • archived................... arch
    • select to autocomplete database name
    • (or numbered)
      • main database1............. 1
      • manuals and ref............ 2
      • archived................... 3

DNTS search result in new window not working

Hi,
I want to report the following issue:
When I use dnts and then press CMD+RETURN to open the search result in a new window, a new DevonThink window does open but no search is taking place.

devonthink 3据说加强了中文支持,但我感觉反而不如以前啊,有什么技巧吗?

新版增强了中文分词,但是这样一来就完全把分词以后的中文当成英文来处理了,比如一篇文档包含“加强了中文支持”,搜索“加强了支持”也能搜到,搜索“文”则搜不到。可是中文跟英文不一样,中文的每个字基本都是有含义的,不像英文字母无意义。以前还可以用~实现理想的匹配效果,就是简单的字符串匹配,现在新版~也失效了。请问有什么技巧能够实现以前~的匹配效果吗?
不好意思我不是这个脚本的用户,也不是alfred用户,但是因为觉得这里可能有希望获得相关信息,就来这里提问一下,希望作者不要介意。

搜索没有结果显示

已经进行了授权,但是输入dnt 关键词 搜索的时候,没有任何下拉结果出现,但是输入dnd会出现数据库选择,这样应该代表了授权成功了吧?

但是为什么不能正常搜索呢?

谢谢大大~

dnts not working properly

Hi,

I just wanted to let you know that "dnts" is not working correctly for searches. For example, I want to search "being NEAR Heidegger" and Alfred closes but Devonthink is not focused, nor does a search take place.

Would love a fix for this! Thanks!

License

Hello,

I want to reuse parts of this workflow for a LaunchBar6 Action and ask myself under under which license the code of this workflow is published? Can it be reused with a reference to the original code?

br

Access custom meta data?

New to javascript with AppleScript. Just wonder how to read custom meta data of the record.

Would be great if you could give an easy example?

Won't take input after semicolon ";"

Hi, It seems that the script is not taking in anything after a semicolon ;, it'd be great if there's a way to fix that. Huge thanks!!
For example↓
input: any: name:A B {tags:A;B}
actual query: any: name:A B {tags:A

List tags command in version 7.0 seems to be broken

Thanks for updating your alfred-devonthink integration so quickly.

The keyboard combination ⌘Command + Enter to list all tags in the database (after having chosen several different databases) doesn't seem to work for me.

Pressing the ⌘Command key changes the subtitle of the database name to "Open with Devonthink", but there is no taglist.

Am I missing something?

TIA!

Opening Results - How to Change?

Thanks for sharing this Alfred workflow for DEVONthink. It's fantastic!

One quick question: Is it possible to switch the default search results action to open the file in DEVONthink (i.e., instead of an external editor)?

I tried merely adapting the configured connection between workflow actions, so that the "Open With External Editor" requires users to hold command and the "Open with DEVONthink" doesn't require anything, but it doesn't seem to work. From what I can tell, the script filter is passing the file path to the "Open with DEVONthink" action instead of the UUID? Is there a minor change that can be done to the script filter or the search.js file to accomplish this?

Thanks for your help! And, thanks again for sharing this workflow!!

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.