ruyadorno / git-bc

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

Instant search (filter list) #4

Open paoloantinori opened 9 years ago

paoloantinori commented 9 years ago

Hi, this addon is very handy. It would be even better if I could press a key like / and type a keyword and have the options filtered based on that.

ruyadorno commented 9 years ago

Yeah, it's a great idea, @zeachco might also be interested in following since he proposed the same thing :smile:

The trickiest part is how to plug the filtering functionality along with Inquirer.js (the node dependency that provides the interactive menu).

I'd be happy to review a contribution for that and might give it a try in the future if nobody else comes up with a PR first.

Thanks!

zeachco commented 9 years ago

Looked at it and I think inquirer is already working on an auto-complete feature (https://github.com/SBoudrias/Inquirer.js/issues/225) I also feel it would be a ore logical place to have it

paoloantinori commented 9 years ago

slowly getting there:

https://asciinema.org/a/2abz5r1f4sfsahhbl6161nc3f

ruyadorno commented 9 years ago

:+1: looking good!

mokkabonna commented 9 years ago

FYI I have a open PR for this now, feedback is wanted. https://github.com/SBoudrias/Inquirer.js/pull/265