santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.72k stars 154 forks source link

Pressing 'b' while viewing an answer now opens it in the browser #75

Closed goibon closed 6 years ago

goibon commented 7 years ago

When viewing a list of answers in interactive mode you can press the 'b' key to open up the highlighted answer in your browser. I added that very same behaviour for when viewing a single answer in interactive mode.

As an aside: I noticed that at one point require('openurl') is wrapped in a try-catch, while a few lines later it isn't. I was unsure which pattern you preferred so I just picked one, but let me know if you prefer the other and I'll gladly update my PR.

PaoloCifariello commented 6 years ago

2 years later..

This is great, thanks @goibon 🎉🎉

goibon commented 6 years ago

Hey, better late than never 😉