Git Product home page Git Product logo

bounce's People

Contributors

jaymon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

bounce's Issues

ls [SEARCH-STRING]

if you pass in SEARCH-STRING, then bounce will only list the keywords that prefix match your SEARCH-STRING

better py stuff

default catch-all

right now you can assign one of the commands as default and that will be run when no keywords match, but it would be cool if you could define a default callback that would be able to look at the input and decide what to do, I have a couple of commands that basically do something with a url and it would be cool if I didn't need the keyword before them, they just did the right thing when I pasted in the url and hit enter.

This might be possible already, just define a default key to a callback and have it do this, I just need to test that out and make sure it works

Re-keying commands

Right now, commands are broken apart by space, so if you did foo bar then you would have a foo command and a bar command pointing to the same action, and when you iterate through the commands those actions are used to recombine the separate foo and bar keys back into foo bar, it would probably be better to keep an index counter that is incremented when each call to commands.add is done, so foo would get an index=1 and bar would get likewise so they could be re-keyed using their index instead of their action value.

escaping questions

as of 2-8-2019, by default, when you add a command the question will be escaped with a plus sign, so:

foo bar

would become:

foo+bar

but if you pass plus=False into the add method then:

foo bar

would become:

foo%20bar

I think I might be able to automate this, so if the format string has a ={} in it then use the + method on the spaces, if it doesn't then use the %20 method on the spaces

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.