buster / rrun

minimalistic command launcher in rust
GNU General Public License v2.0
112 stars 14 forks source link

Configurable workflows #10

Closed nightscape closed 8 years ago

nightscape commented 8 years ago

Do not merge this yet, the code is uber-ugly!! This PR builds on https://github.com/buster/rrun/pull/9 and adds the ability to configure runners for completions (see src/config.toml). Currently, the first runner (in probably arbitrary sequence) for a completion type will be used, but later it might be nice to allow choosing between runners. Example: You configure a completion that has type url (from your bookmarks, Google Search, Youtube, ...) and can then choose between runners for Firefox, Chrome, wget, ...

I'm happy for feedback where code can be improved, I just hacked along and tried to make the compiler happy :p

Btw, it would be great to create a nicer UI, maybe similar to Albert :+1: