jazzband / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.46k stars 240 forks source link

Feature Request: Tab Auto Complete Projects and Tasks #427

Closed gutelfuldead closed 3 years ago

gutelfuldead commented 3 years ago

Possibility to use tab completion (or something else) to fill in previously used Projects and Tasks. It would prevent misspellings creating unwanted duplicate (and incorrect) projects/tasks.

watson start <tab> would present options for project0 project1 etc. for anything that has already been used and is in the local ~/.config/watson/frames file.

Once the project is filled in a similar approach to adding tasks IE, watson start project0 <tab> would present previous tasks for project0 like task0 task1 etc.

Sounds great, maybe not feasible to implement realistically? I'm not sure, Python isn't my forte. I see this is a tall order.

jmaupetit commented 3 years ago

Hi @gutelfuldead! You have to set the right completion for your shell, see: https://tailordev.github.io/Watson/#command-line-completion

HTH