jaymon / bounce Goto Github PK
View Code? Open in Web Editor NEWyou type in things, it redirects you
you type in things, it redirects you
if you pass in SEARCH-STRING, then bounce will only list the keywords that prefix match your SEARCH-STRING
I'd love to be able to quickly jump to these:
set - https://docs.python.org/2/library/stdtypes.html#set
list - https://docs.python.org/2/library/functions.html#list
tuple - https://docs.python.org/2/library/functions.html#tuple
dict - https://docs.python.org/2/library/stdtypes.html#dict
collections - https://docs.python.org/2/library/collections.html#module-collections
format - https://docs.python.org/2/library/string.html#formatspec
functions - https://docs.python.org/2/library/functions.html
date - https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior
assert - https://docs.python.org/2/library/unittest.html#unittest.TestCase
exceptions - https://docs.python.org/2/library/exceptions.html
I was searching for ๐ and it failed, I need to track down the unicode problem and fix it
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
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.
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
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.