ruyadorno / git-bc

Git plugin to interactively list branches and checkout
MIT License
60 stars 6 forks source link

Added filtering #6

Open paoloantinori opened 9 years ago

paoloantinori commented 9 years ago

Hi please consider the following aspects and test it a little before considering merging:

Fixes #4

ruyadorno commented 9 years ago

Hi @paoloantinori, thanks for all the effort, I took a quick look at the code and it's looking great.

I think it would be much better if we can extract your filter prompt into an isolated module/plugin that we can use with Inquirer.js instead - That can be amazingly useful for other projects, if we get it right even Yeoman Generators can make use of it :smile:

I'll have to find some free time to test everything, see how the plugin is working with the filtering and also to validate the possibility of extracting your filter code from the Inquirer.js fork.

I'll keep you posted.

ruyadorno commented 9 years ago

@paoloantinori Just saw this Inquirer plugin (unfortunately his implementation seems to only work for file paths) in my twitter feed and remembered about your PR, maybe it can be a good reference on how to implement your solution as a separated plugin as I have suggested before :blush:

https://github.com/Nytramr/mr-inquirer

paoloantinori commented 9 years ago

I'll have a look! I won't be quick, but I am planning to spend some time with node!

On Tue, Jul 28, 2015 at 4:50 PM, Ruy Adorno notifications@github.com wrote:

@paoloantinori https://github.com/paoloantinori Just saw this Inquirer plugin (unfortunately his implementation seems to only work for file paths) in my twitter feed and remembered about your PR, maybe it can be a good reference on how to implement your solution as a separated plugin as I have suggested before [image: :blush:]

https://github.com/Nytramr/mr-inquirer

— Reply to this email directly or view it on GitHub https://github.com/ruyadorno/git-bc/pull/6#issuecomment-125635680.