tupton / alfred-chrome-history Goto Github PK
View Code? Open in Web Editor NEWSearch your Google Chrome history in Alfred
Search your Google Chrome history in Alfred
thanks. i think this script will be helpful.
Chrome stores a favicon_id
with history items which is a foreign key on a separate favicon db. Figure out how to use sqlite's ATTACH
via the python bindings and use the favicon in the Alfred listing.
Bookmarks are stored in a similar sqlite db; search both of these and integrate, like the Chrome omnibar.
This probably should include some sort of intelligent sorting; since we use last_accessed_time
for history items, we need to figure out where to insert bookmark results.
Instead of using LIKE
, use some sort of better fuzzy search like sqlite's full text or fzf.
I have a feeling it has to do with the ATTACH
and complex query.
This manifests as a ~1s delay in results, but not on my system.
At minimum, the band-aid is to make favicon optional. It'd be nice to know what the actual slowness is – copying the favicon db? ATTACH? the query itself? – and fix that instead.
Only show 9 search results, and not down to see more. Any suggestion how to fix?
Alfred version is v3.2
I clicked the released workflow 'alfred-chrome-history-v0.4.0.alfredworkflow' to install this workflow.
The installation was successful. But is didn't work.
However, if I installed it with symlinking the cloned directory to /Alfred.alfredpreferences/workflows/alfred-chrome-history, it worked well.
By the way, it seems that installing python-alfred globally is necessary, also docopt!
After updating chrome and alfred, the workflow no longer works.
I think there is some more friendly way to show the results as some of the history may point to the same page with a little different, e.g. different head(#1
, #2
).
But I have not got a good idea how to deal with it.
Add installation instructions, usage, etc.
Also add help for contributing, "building" from source, developing, etc.
SyntaxError: invalid syntax
[2018-03-14 10:04:27][ERROR: input.scriptfilter] Code 1: File "chrome.py", line 138
except IOError, e:
Does this have anything to do with python version?
[11:22:22.216] Google Chrome History[Script Filter] Queuing argument 'ar'
[11:22:22.245] Google Chrome History[Script Filter] Script with argv '(null)' finished
[11:22:22.247] ERROR: Google Chrome History[Script Filter] Code 1: Traceback (most recent call last):
File "chrome.py", line 137, in <module>
db = history_db(profile, favicons=favicons)
File "chrome.py", line 87, in history_db
history = copy_db(HISTORY_DB, profile)
File "chrome.py", line 74, in copy_db
cache = os.path.join(alfred.work(True), name)
File "/Users/xxxxxxxxxxxxxxxxxx/alfred/preferences/Alfred.alfredpreferences/workflows/user.workflow.C918F46E-3F2A-46AE-994F-3E9CA9F7A8FE/alfred.py", line 80, in work
return _create(path)
File "/Users/xxxxxxxxxxxxxxxxxx/alfred/preferences/Alfred.alfredpreferences/workflows/user.workflow.C918F46E-3F2A-46AE-994F-3E9CA9F7A8FE/alfred.py", line 93, in _create
os.mkdir(path)
OSError: [Errno 2] No such file or directory: '/Users/xxxxx/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.thomasupton.chrome-history'
Even though only 9 results are visible in Alfred, you can scroll or arrow down for more if more are available. Is it worth making more (15? 20? 50?) available, or would more results be less relevant and clutter things?
It seems that entering a query that has the space character in it in v.0.4.0 causes the fallback search engines to display. The previous version did not have this issue.
I couldn't find any errors in the debugger's log.
I'm on Alfred 2 v2.8.1 (425) on Mac OS X 10.10.5 (14F1509).
In my case I want to ignore mail.google.com, as I'm rarely trying to get to an email directly via URL. When searching for a confluence page titled "foo" I don't want to see emails about changes to that page, I want to see the page itself.
Perhaps this is solved by #6
This means we need to come up with some sort of "frecency" algorithm that takes into account most-visited and recently-visited urls.
Or we could simply order by visit count and disregard recent visits, but that seems wrong, too.
Is it possible to some how show it as results by default to Alfred search without having to enter the ch keyword before?
Awesome workflow! Would love to see the last 10 or so default chrome history entries displayed after ch
is typed. Would be really handy in some situations.
What does it mean?
[14:50:26.343] Google Chrome History[Script Filter] Queuing argument 't' [14:50:26.425] Google Chrome History[Script Filter] Queuing argument 'te' [14:50:26.520] Google Chrome History[Script Filter] Script with argv '(null)' finished [14:50:26.523] ERROR: Google Chrome History[Script Filter] Code 255: <items><item autocomplete="Unable to copy Google Chrome history database from /Users/mattbook/Library/Application Support/Google/Chrome/Default/History" valid="NO"><title>Unable to copy Google Chrome history database from /Users/mattbook/Library/Application Support/Google/Chrome/Default/History</title><subtitle>Check the workflow log for more information.</subtitle></item></items>
I just use my new macbook, and when I run the workflow, there are some problems.
`
Starting debug for 'Google Chrome History'
[2018-05-28 09:42:39][input.scriptfilter] Queuing argument ' '
[2018-05-28 09:42:39][input.scriptfilter] Script with argument '(null)' finished
[2018-05-28 09:42:39][ERROR: input.scriptfilter] Code 255: <title>Unable to copy Google Chrome history database from /Users/tzungtzu/Library/Application Support/Google/Chrome/Default/History</title>Check the workflow log for more information.
[2018-05-28 09:42:40][input.scriptfilter] Queuing argument ' d'
[2018-05-28 09:42:40][input.scriptfilter] Script with argument '(null)' finished
[2018-05-28 09:42:40][ERROR: input.scriptfilter] Code 255: <title>Unable to copy Google Chrome history database from /Users/tzungtzu/Library/Application Support/Google/Chrome/Default/History</title>Check the workflow log for more information.
`
and seems there is no folder Default/History in /Users/tzungtzu/Library/Application\ Support/Google/Chrome
anyone could help me?
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.