tdierks / doc-history Goto Github PK
View Code? Open in Web Editor NEWChrome extension to maintain a quick search bar of your most recent documents
Chrome extension to maintain a quick search bar of your most recent documents
The background page for doc-history is unloadable, so each load (which happens silently as the tab is activated/deactivated) will rescan all tabs, possibly create storage writes, and may affect history; also, not sure what activation latency is or whether sync storage can load before we have to start handling keyboard events. Look into making page persistent (RAM/performance tradeoff).
Look into whether we can/should provide a default when no query (populate with most-recently-used docs, maybe filtered to ones not already open?)
To reproduce:
If I have two documents with titles "my doc" and "my fancy doc", where I have accessed "my fancy doc" more recently, and I invoke docs history with [dh my doc], then I will see suggestions with "my fancy doc" ranked higher than "my doc". Then, selecting (by clicking or arrow-key navigation) the entry for "my doc" will result in "my fancy doc" being chosen (as choosing an entry just means completing the search with the title as entry, and "my fancy doc" is a better result then "my doc" for the query [my doc] due to freshness.
Two possible fixes:
If there's a way to identify the suggested entry chosen, use that to override ranking.
Add an exact-match ranking signal that overrides freshness, so an exact search for [my doc] will match "my doc" over "my fancy doc". Questions:
The query terms split into "a", "(b/c)": first, not sure if this is right; then, the problem is that after being converted to a regexp with a leading "\b", /\b(b/c)/" doesn't match because \b won't match before "(" in "a (" (the space-parentheses boundary is not a word boundary).
If you use doc-history to navigate to a doc which is already open in another tab, we should activate that tab instead of opening another one. Consider identifying such docs on the completion menu as well.
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.