Open paoloantinori opened 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.
@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:
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.
Hi please consider the following aspects and test it a little before considering merging:
q
to quit the app, otherwise it was interfering with filtering, so technically it rolls back #5/
andESC
exitsbc
completelyInquirer.js
https://github.com/paoloantinori/Inquirer.js/tree/filter , because my 'filter' Prompt class is neither generic enough to expect being added upstream nor has the quality the original project has. For this reason I'm pointing to my branch on github inpackages.json
. If you have other strategies regarding where to put this code, I'm happy to hear your suggestions.Fixes #4