question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The marker table's context menu should propose to copy the marker name

See original GitHub issue

Currently the only way to copy a marker’s name is selecting the row and pressing ctrl+C. It should be in the context menu too.

You could use https://perfht.ml/2wRgEZg as a test.

The code for the context menu is in https://github.com/devtools-html/perf.html/blob/master/src/components/marker-table/ContextMenu.js.

This is the code we use to copy in the treeview: https://github.com/devtools-html/perf.html/blob/da5a48869c5175edc7ddf76c44792115b5c54151/src/components/shared/CallNodeContextMenu.js#L12 We use the npm module copy-to-clipboard and we can do the same thing here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
julienwcommented, Oct 18, 2018

First I realize the commit had an extra file by mistake. I fixed it and here you can find the good version: https://github.com/devtools-html/perf.html/compare/master...julienw:simplify-marker-context-menu

Now on github it’s possible to get a patch for any diff view by adding .patch to the URL, so in this case this is: https://github.com/devtools-html/perf.html/compare/master...julienw:simplify-marker-context-menu.patch

You can save this patch locally and apply it using 2 different methods:

  • git apply FILE.Patch or git apply -3 FILE.patch
  • patch -p1 --merge < FILE.patch

This should apply cleanly so you shouldn’t have any conflict.

Hope this helps!

1reaction
julienwcommented, Oct 3, 2018

You can start by applying this patch: https://github.com/devtools-html/perf.html/commit/bd2db47f49b0ef50b1246929b96ccf1d5e36d245 This simplifies the logic in the context menu a bit so that it’s easier to work with.

If you’re interested, other issues happening in the same area of code include:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Right-click context menu · Issue #5007 · angular/components
I explain my case. We have a map with different markers and we show mdMenu on right clicking these markers. But, between each...
Read more >
Form context menu - Product Documentation | ServiceNow
The form context menu provides controls based on the table and user access rights. Administrators can customize some of the options available on ......
Read more >
Context menu | Docs - TinyMCE
The contextmenu option allows you to specify which items appear on the context menu. The format of this option is a space separated...
Read more >
Dynamic Context Menu XAML where items are located into an ...
This is the main idea, for doing that I have created an observable collection of Markers class but I am unable to bind...
Read more >
Introduction to AccuPlan™
AccuPlan™ provides an integrated cut plan solution to calculate AccuMark markers for a cut order while providing cutting and spreading solutions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found