-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Copy data displayed in tree node. #697
Comments
Totally agree that would be useful, or possibly a right-click "Copy" context menu. Would love to see a PR for this! |
Definitely sounds useful. PRs are welcome. |
Hello, I am new to this project. In brief, I tried to work on it and looks it works. But there are three questions that I am not sure whether I did it properly.
Hope can get some ideas. Details below. First, I read the react-devtools-shared's code and choose clipboard-polyfill as clipboard library. Second, I have not catch up all the structure of this project. Simply add a handler in Third, actually, I didn't use context menu, just add a (copy) beside the (pin). |
Hey there, thanks for taking a look at this! While I'm not the maintainer for the DevTools, I do maintain Redux itself. My suggestion would be to go ahead and put together a complete prototype, and I do think having a context menu pop up when clicking a state item would be the right design choice. For now, I'd say just pick what you think is the best place for any new files to go, and then file a PR once you've got a first iteration ready to try out. Then we can review it and see if there's a better way to organize things. FWIW, that's basically what I did when I submitted a PR a couple years ago to add the "action stack trace" feature: |
I have some redux stores with massive amounts of data. I am able to find the data i need easy enough via the tree view with collapsing and expanding the tree nodes. However, once i have found what i want, i can NOT easily 'copy' that data. If i want to copy, then i need to go into the raw view, but due to the amount of data it becomes a real challenge to find that data i want. I have learned that i can 'pin' data in the tree view, which then makes it easier to search the raw view and get the data i need but still challening. It would be so fantastic if there were another button next to the 'pin' button. that would copy the data.
The text was updated successfully, but these errors were encountered: