You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-12Lines changed: 42 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,17 @@ The tool aims to let you search and navigate through DEVONthink effectively. It
6
6
Just enter the keyword and it will do a live and prefix search then nicely present the results for you.
7
7

8
8
9
+
## Create shortcuts for DEVONthink items!
10
+
It is a pitty that we cannot create direct entries for DEVONthink items in LaunchBar. We have to first open this action then search then select one... What if we can create a shortcut for the item and make it accessible directly from LaunchBar without using this tool.
11
+
12
+
Well, you can! Just press `⌘ + ⌥ + ↵` on that item.
13
+
14
+

15
+
16
+
Next time that item will be searchable directly from LaunchBar by its name.
17
+
18
+

19
+
9
20
## Requirements
10
21
This tool requires Python3 to be installed at the path `/usr/bin/python3`.
11
22
If you are using macOS Catalina or higher version, you can run this command in terminal
@@ -21,15 +32,15 @@ If you use homebrew or other ways to install Python3, make sure it is accessible
21
32
22
33
### Modifier keys
23
34
If it is not a group:
24
-
-`⌘ + Enter` to reveal that item in DEVONthink
25
-
-`⇧ + Enter` to reveal that item in Finder
26
-
-`⌥ + Enter` to open that item externally
35
+
-`⌘ + ↵` to reveal that item in DEVONthink
36
+
-`⇧ + ↵` to reveal that item in Finder
37
+
-`⌥ + ↵` to open that item externally
27
38
28
39
If it is a group:
29
-
-`⌘ + Enter` to reveal that item in DEVONthink
30
-
-`⌥ + Enter` to navigate through that group in Launchbar
40
+
-`⌘ + ↵` to reveal that item in DEVONthink
41
+
-`⌥ + ↵` to navigate through that group in Launchbar
31
42
32
-
Note that if you are already in "navigation mode", just press enter and you can navigate that group, press `⌥ + Enter` to open that group in DEVONthink.
43
+
Note that if you are already in "navigation mode", just press ↵ and you can navigate that group, press `⌥ + ↵` to open that group in DEVONthink.
33
44
34
45
### Excluded tag
35
46
If you tag a file/group `exclude-from-launchbar`, it will not be shown in the result.
@@ -40,19 +51,38 @@ You can adjust all those values in the config file `config.py`.
40
51
41
52

42
53
43
-
Defualt values:
54
+
`config.py` file:
44
55
45
56
```python
46
-
a =0.8
47
-
b =0.5
48
-
frequency_weight =2
49
-
excluded_tag ='exclude-from-launchbar'
50
-
max_result_num =80
57
+
# Do not change this class
58
+
classDefaultConfig:
59
+
a =0.8
60
+
b =0.5
61
+
frequency_weight =2
62
+
excluded_tag ='exclude-from-launchbar'
63
+
max_result_num =80# Set to None to cancel the limit. Note that this may cause performance issue!
64
+
shortcut_path ='~/Documents/Devonthink'# Set to None to disable shortcut creation
65
+
66
+
67
+
# change this one
68
+
classUserConfig(DefaultConfig):
69
+
a =0.8
70
+
b =0.5
71
+
frequency_weight =2
72
+
excluded_tag ='exclude-from-launchbar'
73
+
max_result_num =80
74
+
shortcut_path ='~/Documents/Devonthink'
75
+
76
+
51
77
```
78
+
Do not change the `DefaultConfig` class. Instead change the properties of `UserConfig`.
52
79
53
80
The `max_result_num` option can be set to `None` so that all the results will be presented in LaunchBar. Note that too many results may cause performance issue!
54
81
55
82
## More details
83
+
### The "shorcuts"
84
+
As you may notice, the so-called shortcut is just a `inetloc` file created in your filesystem with the name and item link of the corresponding DEVONthink item. The default creation path is set to be `~/Documents/Devonthink`. You can change it to any other locations that you have write permission to. Set it to `None` will prevent the creation of any "shortcuts".
85
+
56
86
### Frequency score
57
87
Except for the search score given by DEVONthink, the tool will adjust that score based on the frequency you open items.
0 commit comments