Add a button to copy bug number as markdown link
Categories
(bugzilla.mozilla.org :: General, enhancement)
Tracking
()
People
(Reporter: arai, Assigned: arai)
Details
Attachments
(1 file)
In Matrix room and Phabricator, I often write bugzilla link with markdown, e.g. [bug 1774700](https://bugzilla.mozilla.org/show_bug.cgi?id=1774700)
.
Phabricator case can be handled by bug 1467623.
In Matrix room, we could invite botzilla, but not applicable to all rooms, especially DM.
Having a button that copies the markdown link (maybe next to "Copy Summary" button) on bugzilla page would be handy.
I can see the value of this, but I'd prefer to avoid adding even more buttons to the UI.
There's two ways to approach this:
(1) add text/markdown
to existing clipboard content.
The Copy Summary
code already generates multiple versions of the bug summary for different content types:
- text/plain
- text/html
- text/uri-list
We could add text/markdown
to the list and hopefully clients will pull that from the clipboard in preference of text/plain
(I don't hold high hopes of this). Code is at https://github.com/mozilla-bteam/bmo/blob/7f9b4797faec949a7f47731de2abff5c66983933/extensions/BugModal/web/bug_modal.js#L392 if you're curious how this is done.
(2) Expose it explicitly in the UI via an attached dropdown.
( Copy Summary )[v]
Clicking on Copy Summary
should perform the existing multi-format copy.
The dropdown menu should list Plain Text
, HTML
, and Markdown
.
Assignee | ||
Comment 2•2 years ago
|
||
Thanks!
The dropdown approach sounds nice.
I'll look into it.
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Description
•