mpco / alfredworkflow-devonthink-search Goto Github PK
View Code? Open in Web Editor NEWPowerful Tool for Searching in DEVONthink.
License: MIT License
Powerful Tool for Searching in DEVONthink.
License: MIT License
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?
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.
买了dv 两三年了,一直对这个搜索问题头痛,终于找到个解决方案。感谢
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!
第一次运行该 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)
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.
抱歉我不是程序员,对程序也不咋懂。海涵~ 谢谢。
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?
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.
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!
Awesome workflow, especially now in combination with the new Devonthink!
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 |
#te
, in-line list appears tesla/team/text/..
, select to autocomplete tag"manuals and reference material.dtDb"
--> 1
or ref
dnt repair #tesla in:ref
in:
main database1............. main
manuals and ref............ ref
archived................... arch
main database1............. 1
manuals and ref............ 2
archived................... 3
Dear developer,
Vitorgalvao has built an alfred-workflows namely OneUpdater(https://github.com/vitorgalvao/alfred-workflows/tree/master/OneUpdater). Is it possible to integrate it into your workflow? This can be upgraded automatically.
Thank you for your awesome work!
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.
新版增强了中文分词,但是这样一来就完全把分词以后的中文当成英文来处理了,比如一篇文档包含“加强了中文支持”,搜索“加强了支持”也能搜到,搜索“文”则搜不到。可是中文跟英文不一样,中文的每个字基本都是有含义的,不像英文字母无意义。以前还可以用~实现理想的匹配效果,就是简单的字符串匹配,现在新版~也失效了。请问有什么技巧能够实现以前~的匹配效果吗?
不好意思我不是这个脚本的用户,也不是alfred用户,但是因为觉得这里可能有希望获得相关信息,就来这里提问一下,希望作者不要介意。
Devonthink 3 released just few days ago. Though this workflow works modifying a few parts in your code, I wish your workflow supports Devonthink 3 officially.
已经进行了授权,但是输入dnt 关键词
搜索的时候,没有任何下拉结果出现,但是输入dnd
会出现数据库选择,这样应该代表了授权成功了吧?
但是为什么不能正常搜索呢?
谢谢大大~
How can I install this workflow? Missing .alfredworkflow file.
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!
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
Can this be simplified, making it to use "enter" to open any group in search result?
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?
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
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!
For example, a workspace named Français
, while appearing without problems in the Alfred search box, cannot be activated by the workflow.
input: any: name:A B {tags:A;B}
actual query: any: name:A B {tags:A
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!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.