bbeng89 / ntbk

A simple, opinionated terminal notebook inspired by bullet journaling.
MIT License
1 stars 0 forks source link

[Epic] Natural language processing #23

Open bbeng89 opened 2 years ago

bbeng89 commented 2 years ago

This one is going to be a ways off but I want to document it because eventually i'd like to get there. I'd like to be able to do things like:

$ ntbk monday

Since most natural language commands would be multiple words it would probably have to be an argument like:

$ ntbk -n "last monday"

$ ntbk -n "january 1"

$ ntbk -n "first of the month"

bbeng89 commented 2 years ago

This looks really promising - https://github.com/bear/parsedatetime

I think i would actually just use the date command. Right now you have to do ntbk date 2022-01-01 and if I passed that date param off to the parsedatetime library i think it should still work but would also let you do ntbk date "next tuesday". I think this makes more sense than a flag. It also has abbreviations so it can be as short as ntbk d friday.