todoman icon indicating copy to clipboard operation
todoman copied to clipboard

"todo open" command to open a task on the web

Open jelmer opened this issue 4 years ago • 3 comments

it would be great if there was something like a "todo open" command that accessed the URL property of a vTODO (if set) and opened it, e.g. with sensible-browser.

jelmer avatar Mar 21 '20 18:03 jelmer

Makes sense to me. Is there any standard cli command we can call that'll reliably use to summon a browser?

I was convinced that open was a standard cli way of doing this, but apparently it's just an alias I set for myself six years ago.

Maybe $BROWSER?

WhyNotHugo avatar Mar 21 '20 18:03 WhyNotHugo

The webbrowser module (part of Python itself) can be used to open URLs; it obeys $BROWSER, but in the absence of that will try various other browsers.

jelmer avatar Mar 21 '20 18:03 jelmer

Huh. Perfect! Makes perfect sense to me. Sounds like a nice and easy enhancement!

WhyNotHugo avatar Mar 21 '20 19:03 WhyNotHugo