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
-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ List File Stream contents from Google Drive
4
4
5
5
<ahref='https://alfred.app/workflows/alfredapp/google-drive'>⤓ Install on the Alfred Gallery</a>
6
6
7
-
> On Alfred 4 use <ahref='https://github.com/alfredapp/google-drive-workflow/releases/download/2022.12/Google.Drive.alfredworkflow'>alternative link</a>
8
-
9
7
## Usage
10
8
11
9
Search the contents of your Google Drive via the Search Keyword (default: `gd`) or Folder Search Keyword (default: `gdf`). [Fallback Searches](https://www.alfredapp.com/help/features/default-results/fallback-searches/) are included.
puts({items: [{title: 'Cache is being built…',subtitle: 'Please be patient. Depending on how many files you have, it can take a while.','valid': false}]}.to_json)
21
+
puts({items: [{
22
+
title: 'Cache is being built…',
23
+
subtitle: 'Please be patient. Depending on how many files you have, it can take a while.',
24
+
'valid': false
25
+
}]}.to_json)
26
+
20
27
exit0
21
28
end
22
29
23
-
puts({items: [{title: 'Build cache',subtitle: 'It will take a few minutes to finish, depending on how many files you have.','arg': 'build_cache'}]}.to_json)
30
+
puts({items: [{
31
+
variables: {build_cache: true},
32
+
title: 'Build cache',
33
+
subtitle: 'It will take a few minutes to finish, depending on how many files you have.',
34
+
'arg': 'build_cache'
35
+
}]}.to_json)
36
+
24
37
exit0
25
38
end
26
39
27
40
# Filter paths
28
41
db=SQLite3::Database.new(Cache_file)
29
42
Results=db.execute("SELECT fullpath FROM main WHERE #{Dir_only}#{Array.new(Query.length,'basename LIKE ?').join(' AND ')} ORDER BY accesstime DESC LIMIT ?;",Query,Limit).flatten
0 commit comments