Searchfox Update: "Copy as Markdown" feature

27 views
Skip to first unread message

Tooru Fujisawa

unread,
May 20, 2022, 2:44:21 PM5/20/22
to dev-platform
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

Tooru Fujisawa

unread,
May 20, 2022, 3:57:42 PM5/20/22
to dev-platform
There's known issue that the "Copy as Markdown" feature is available only when you open the latest version for the file.

Now fixing the issue, and I'll keep you updated.
Thanks!

2022/05/21 3:44、Tooru Fujisawa <arai....@gmail.com>のメール:

Tooru Fujisawa

unread,
May 20, 2022, 9:49:14 PM5/20/22
to dev-platform
The issue is fixed and now the feature is also available in not-latest version for the file.
"Symbol Link" is not shown there because there's no symbol information for not-latest version.

Thank you!

-- 
arai

2022/05/21 4:57、Tooru Fujisawa <arai....@gmail.com>のメール:
Reply all
Reply to author
Forward
0 new messages