Hey !
I added a simple command to be able to retrieve url of a ticket.
It's meant to be used to refer to a ticket inside a commit without
having to open a browser.
Thanks for taking it into consideration
Theo.
Kaporos (1):
adding todo ticket url command
todo.go | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
--
2.43.0
FWIW, the hyperlink spec:
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
Unfortunately it doesn't seem like there's a way to detect support...
Adding it under "ticket show" would make the most sense to me.
A dedicated "url" command seems a bit excessive because otherwise why
shouldn't we add a command to retrieve a ticket submitter or
the assignees etc.
Maybe the URL could be displayed above the status like this:
URL: https://todo.sr.ht/~foo/bar/42
Status: ...
Submitter: ...
or as an alternative above the issue title.
As a side thought, it could be nice to add a flag for not printing
ticket comments and just the basic information and body of the first
comment. Something like "short" or make it the default and put comments
behind a flag like "full" or "display-comments".
25 avr. 2024 20:10:39 Simon Ser <contact@emersion.fr>: