Hello Searchfox users!
I'm happy to announce the new Searchfox feature, "Copy as Markdown" [1].
You can copy the selected lines as a Markdown link with filename or corresponding symbol, or a URL with a code block, by single click or accesskey.
Here's example for each type:
Filename Link:
[Promise.cpp](
https://searchfox.org/mozilla-central/rev/49204d3e4b03513ca2741404b7453245863d380c/js/src/builtin/Promise.cpp#443,448,451-453)
Symbol Link:
[PromiseDebugInfo::id](
https://searchfox.org/mozilla-central/rev/49204d3e4b03513ca2741404b7453245863d380c/js/src/builtin/Promise.cpp#443,448,451-453)
Code Block:
https://searchfox.org/mozilla-central/rev/49204d3e4b03513ca2741404b7453245863d380c/js/src/builtin/Promise.cpp#443,448,451-453
```cpp
static uint64_t id(PromiseObject* promise) {
...
} else if (idVal.isObject()) {
...
if (idVal.isUndefined()) {
idVal.setDouble(++gIDGenerator);
debugInfo->setFixedSlot(Slot_Id, idVal);
```
I hope the feature helps you while writing bug comments, or in the discussion on Matrix, etc :)
Please let us know if you find any issue.
Regards,
[1]
https://github.com/mozsearch/mozsearch/pull/511
--
arai