Giter Site home page Giter Site logo

.scripts's People

Contributors

hoboneer avatar

Stargazers

 avatar

Watchers

 avatar

.scripts's Issues

dmenu_surfraw: implement query completions from the network

This requires API query completions to be implemented in mkelvis and co. See Hoboneer/surfraw-tools#20.

As for how the available completions gets put to dmenu, maybe the script could check if a specific word is contained in the returned query, say, %%. I need to find a good one that:

  1. is fast (and easy) to type; and
  2. is an uncommon term that is very unlikely to conflict with an actual search term.

Maybe it could be configurable? DMENU_SURFRAW_COMPLETION_WORD? That's really long.

It should limit completion requests to once per 10 seconds--maybe 5. I'll have to look around for common timeouts (https://www.nzsl.nz seems to have one of 10 seconds; see https://github.com/ODNZSL/nzsl-online/blob/1a12f4db3c7ee2fb02860c51e9acf20384248570/app/services/autocomplete_search_service.rb#L5).

dmenu_surfraw: Add elvis-specific history for queries

I don't think the options should be retained as well. The history file for each elvis should also be weighted by frequency of use. Should elvi unused for X time also have their history files removed? It should be determined by looking at it's mtime.

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.