habito icon indicating copy to clipboard operation
habito copied to clipboard

Disambiguate user input

Open codito opened this issue 8 years ago • 4 comments

There's a possibility of ambiguity with names in habito checkin. We should fix that with some kind of interactive input (may be with inquirer or qprompt).

Allow user to pick a habit, something like (see proposal in #5 from @Ben-Baert):

your input matches multiple items:
1. item one
2. item two

Which one do you mean (type in the number to continue)?

codito avatar May 22 '16 02:05 codito

I can build this next week (perhaps as part of the refactoring, which I think is the highest priority right now, see #3). It could be similar to this code I wrote. This could go in the utils file and all commands that need it can access it this way.

Ben-Baert avatar May 22 '16 11:05 Ben-Baert

No rush for implementing :) I agree refactoring is the highest priority.

codito avatar May 23 '16 13:05 codito

Really sorry for the delay -- work and exams got a bit in the way.

The refactoring is done but getting the tests to work is proving to be a bit (a lot, actually :)) of a pain. I hope to finish them within a couple of days.

Again, my apologies!

Ben-Baert avatar Jun 19 '16 14:06 Ben-Baert

No problem, Ben. If you have a branch, I will be happy to share the pain :)

codito avatar Jun 19 '16 14:06 codito