Cannot copy code from github pr file changed tab
See original GitHub issueAfter installing this extension. I cannot copy code from github pr File changed
tab.
CMD+C or context menu.
Gitako v2.7.1
Recording: https://p-myf5wv.b3.n0.cdn.getcloudapp.com/items/wbu9qQee/8489acf7-cdfe-4456-9b63-357071cec5e6.gif
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Copy github permalink should not work or be disabled for files ...
Steps to Reproduce: Add a file to .gitignore or open a file not in the repo; Pick 'Copy github permalink' from the context...
Read more >Indent issue after commit and pushing changes to remote #1524
I have a connection in VS2017 to a repository in github, in this case I pulled the master, created a local branch and...
Read more >On hover over PR “Files changed” tab, show a popup ... - GitHub
On hover over the Files changed tab of the page for a pull request, show a popup with the list of files.
Read more >Keyboard shortcuts to navigate "Files Changed" tab #2893
I would love to be able to navigate the "Files Changed" tab with the keyboard. My suggestion would be j and k for...
Read more >Updating base branch in PR does not recalculate files in diff
Open a ticket at https://support.github.com/request and maybe with enough +1's, they will fix it. 1
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
🤯
The issue is fixed after removing an unused CSS class in a0f6ad33987aefd24dd7df5e41894f97aed789c7 ,
.invisible
, whose functionality is setting the element’svisibility
tohidden
. The class was created since the very first few commits of Gitako at about 3 years ago and soon deprecated. I forgot to removed it in time so that it was kept until today.When
copy
event is triggered inside the diff panels, GitHub’s script will append a new table element into DOM to sanitize the text to be copied. By coincidence, the element is of the exact same class name mentioned above,invisible
.Thus the table element is not actually rendered, which is Chrome/Chromium’s way of handling elements of
visibility: hidden
I guess, and the copy action fails.What a bug.
The patch has been released in
v2.7.2
.cc @kbsali