-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharvis-workflow.json
80 lines (80 loc) · 2.8 KB
/
arvis-workflow.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"$schema": "https://raw.githubusercontent.com/jopemachine/arvis-extension-validator/master/workflow-schema.json",
"creator": "Renan Cakirerk",
"description": "A workflow that allows you to fuzzy search all open tabs, jump to any tab, close duplicate tabs, close tabs by keyword or url",
"name": "arvis-chrome-control",
"readme": "A workflow that allows you to fuzzy search all open tabs, jump to any tab, close duplicate tabs, close tabs by keyword or url.\n\nAlfred Chrome Control Commands:\n\n`tabs`: Lists all tabs\n\n`close url <keywords>`: Close tabs with URLs matching these keywords\n\n`close title <keywords>`: Close tabs with titles matching these keywords\n\n`dedup`: Close duplicate tabs\n\nYou can find the source code of this workflow here [1]\n\nAlso see my \"How I Navigate Hundreds of Tabs on Chrome with JXA and Alfred\" article [2] if you're interested in learning how I created the workflow.\n\n[1] https://github.com/bit2pixel/chrome-control\n\n[2] https://medium.com/@bit2pixel/how-i-navigate-hundreds-of-tabs-on-chrome-with-jxa-and-alfred-9bbf971af02b",
"version": "0.0.4",
"defaultIcon": "icon.png",
"webAddress": "https://medium.com/@bit2pixel/how-i-navigate-hundreds-of-tabs-on-chrome-with-jxa-and-alfred-9bbf971af02b",
"enabled": true,
"platform": [
"darwin"
],
"commands": [
{
"type": "keyword",
"command": "close url",
"title": "Close tab by URL",
"subtitle": "",
"argType": "required",
"actions": [
{
"modifiers": "normal",
"type": "script",
"script": "./chrome.js close --url $@ --ui"
}
]
},
{
"type": "keyword",
"command": "close title",
"title": "Close tab by title",
"subtitle": "",
"argType": "required",
"actions": [
{
"modifiers": "normal",
"type": "script",
"script": "./chrome.js close --title $@ --ui"
}
]
},
{
"type": "keyword",
"command": "dedup",
"title": "Dedup tabs",
"subtitle": "",
"argType": "no",
"actions": [
{
"modifiers": "normal",
"type": "script",
"script": "./chrome.js dedup --ui"
}
]
},
{
"type": "scriptFilter",
"command": "tabs",
"title": "List All Tabs",
"subtitle": "Press enter to focus, hold alt to close the tab",
"scriptFilter": "./chrome.js list",
"runningSubtext": "Loading tabs...",
"withspace": true,
"argType": "optional",
"actions": [
{
"modifiers": "normal",
"type": "script",
"script": "./chrome.js focus {query}"
},
{
"modifiers": "opt",
"type": "script",
"script": "./chrome.js close {query} --ui --yes"
}
]
}
]
}