6 ms·
Hey – Personal commandline assistant
- Gys 12y agoI would prefer to have some kind of confirmation before something is actually done. For example Hey could show the actual command sequence to be executed and then ask if that is ok to do.
- max0563 12y agoWhen would this really be needed? Hey isn't working with anything really sensitive right now.
- Gys 12y agoFor one thing it would be interesting to learn something about Linux. The command would show what would actually be needed. In my opinion Hey is probably only useful (used) by (would be / wannabe) programmers. For the other thing: I would expect it to do more sensitive things in the future. And also: if it would create a directory where I would it not want to be, it would help to say simply no instead of having to remove it later ('Oh, thats the root where it was created; it should have been the Documents folder').
- max0563 12y agoI need some ideas for commands, if anyone had any suggestions that'd be appreciated.
- pathikrit 12y agoSo, Siri for the terminal? Cool idea but your implementation won't scale (more complex commands and/or beyond English). You need a grammer file and some NLP library. Look at how this is implemented: http://natty.joestelmach.com/ http://natty.joestelmach.com/ Their core is implemented in this grammer file: https://github.com/joestelmach/natty/blob/master/src/main/antlr3/com/joestelmach/natty/generated/DateLexer.g https://github.com/joestelmach/natty/blob/master/src/main/an... Take a look at this too since you wrote it in python: http://www.nltk.org/ http://www.nltk.org/
- max0563 12y agoVery interesting, thanks for the tip. This is my first time parsing natural language like this, it is a bit challenging.
- walterbell 12y agoHow about supporting composite operations, which invoke more than one command, e.g. a shell pipeline, or an IFTTT-like join between web services? That would make this more than a shell translator.
- max0563 12y agoI could do this using a keyword such as "then" "Hey google "Hacker News" then find me a sushi bar"
- ASneakyFox 12y agoThis could be good if you figure out how to support advanced arguments etc. Right now it seems to be a system to handle a large number of aliases for common commands.