GithubHelp home page GithubHelp logo

doc-history's Issues

Investigate load/unload behavior

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).

Can't select doc with subset name

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:

  1. If there's a way to identify the suggested entry chosen, use that to override ranking.

  2. 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:

    • Do this for suggested results, or only for completions? Could be confusing if you enter [my doc] and it chooses a lower suggestion due to exact match.
    • Do it only for exact match, including punctuation and case? This would make list-selection work correctly without changing the search experience much.

Can't match query "a (b/c)" to doc with title "a (b/c)"

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).

No default response

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?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.