The marker table's context menu should propose to copy the marker name
See original GitHub issueCurrently 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:
- Created 5 years ago
- Comments:19 (19 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.patchYou can save this patch locally and apply it using 2 different methods:
git apply FILE.Patch
orgit apply -3 FILE.patch
patch -p1 --merge < FILE.patch
This should apply cleanly so you shouldn’t have any conflict.
Hope this helps!
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: