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.

Make copying file contents instantaneous

See original GitHub issue

Description

GitHub has just added a button that does the same thing:

https://github.blog/changelog/2021-09-20-quickly-copy-the-contents-of-a-file-to-the-clipboard/

This would seem to make copy-file unnecessary, but I’m not sure what the usual procedure is when this happens.

Screenshot

Markup on 2021-09-20 at 20:04:06

Example URL

https://github.com/sindresorhus/refined-github/blob/main/readme.md

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
fregantecommented, Oct 1, 2021

So… GitHub’s feature is slower because it (will) probably work on partial diffs as well, whereas ours only works if the full file is available on the page.

Suggestion:

  • keep the feature, but override GitHub’s button where we can, to make it instantaneous.

copy-file -> quick-file-copy 😃

1reaction
kidonngcommented, Sep 21, 2021

This doesn’t seem to be on Gists yet.

CSS to hide Refined GitHub’s copy button on main site (but not Gists):

.page-blob .rgh-copy-file {
    display: none;
}

.page-blob .rgh-copy-file + .btn {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows: Instantly copy/paste a new file as an existing file ...
1. Select the new file from its source folder and right click and copy/cut or use Ctrl+C/X · 2. Go to the destination...
Read more >
Continuously copy all file changes from one folder to ...
A useful command is xcopy /m src\* dest . this will copy all files from src to dest ...
Read more >
Is It Faster to Move or Copy Files? Why?
Moving and Copying Files on the Same Drive. As long as you're moving files in the same drive portion, the move should be...
Read more >
How can I copy a file which gets deleted instantly
You can use inotify (see unix.stackexchange.com/questions/134615/…) to see when the file gets saved to, and then suspend or freeze the other ...
Read more >
Standard concise way to copy a file in Java?
Create a free Team Why Teams? ... Collectives™ on Stack Overflow. Find centralized, trusted content and collaborate around the technologies you use most....
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