Copy File Content to the Clipboard

Have a suggestion for "Everything"? Please post it here.
Post Reply
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

Copy File Content to the Clipboard

Post by PeterPanino »

The File menu should have an additional Clipboard command which should be enabled when one single file is selected in the Results list:

Copy content to Clipboard

This would work with these file types:

• Picture file (png, jpg, gif, etc.): Copy the graphic to the clipboard
• Plain text file (txt, detect...): Copy the text to the clipboard
• .RTF file: Copy the content as RICHTEXT format to the clipboard
• ...

This would be very useful!
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Copy File Content to the Clipboard

Post by therube »

How is "Copy content" different from Edit | Copy (or Ctrl+C or right-click context-menu | Copy, or some other hotkey you might assign)?

The clipboard copy contains all formats & what happens with that depends on how the program you paste into interprets the data.


Or maybe something like, How to Add "Copy Content to Clipboard" to Context Menu in Vista, Windows 7, and Windows 8.
Or set up a 'SendTo' that is a link to a batch file that does what you need.
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

Re: Copy File Content to the Clipboard

Post by PeterPanino »

therube wrote:How is "Copy content" different from Edit | Copy (or Ctrl+C or right-click context-menu | Copy, or some other hotkey you might assign)?
Edit -> Copy copies a file in these formats, among them the main CF_HDROP clipboard format:

Image

This allows the user to paste the FILE into Windows Explorer, not in a graphics program because there is no graphics clipboard format involved here.
therube wrote:The clipboard copy contains all formats & what happens with that depends on how the program you paste into interprets the data.
Try to paste a TEXT file copied from Everything with Edit -> Copy into a text editor. Then tell me what happens.
therube wrote:Or maybe something like, How to Add "Copy Content to Clipboard" to Context Menu in Vista, Windows 7, and Windows 8.
Or set up a 'SendTo' that is a link to a batch file that does what you need.
This is exactly what Everything should do with the "Copy content to Clipboard" command, directly in the File menu. And BTW, at least my context menu of a single selected file in Everything does not have a SendTo item. Does yours?
PeterPanino
Posts: 78
Joined: Sun Feb 21, 2016 10:26 pm

Re: Copy File Content to the Clipboard

Post by PeterPanino »

However, you gave me a very good idea. When I have some spare time, I write a context menu utility which copies the content of different file formats - not only text - to the clipboard.

Thanks for the idea!
Post Reply