Open sskras opened 2 years ago
Additional context
By using InsideClipboard tool by Nirsoft mentioned in https://github.com/hluk/CopyQ/issues/1350#issuecomment-615219584 I see that native clipboard format on w10 looks quite different.
Attaching both .clp
files and pasting appropriate tables from the tool (sorted by Index
column):
Format ID | Format Name | Handle Type | Size | Index |
---|---|---|---|---|
49486 | Shell IDList Array | Memory | 379 | 1 |
49746 | DataObjectAttributes | Memory | 12 | 2 |
49745 | DataObjectAttributesRequiringElevation | Memory | 12 | 3 |
49487 | Shell Object Offsets | Memory | 8 | 4 |
49495 | Preferred DropEffect | Memory | 4 | 5 |
49511 | AsyncFlag | Memory | 4 | 6 |
15 | CF_HDROP | Memory | 96 | 7 |
49158 | FileName | Memory | 26 | 8 |
49314 | FileContents | Null | 0 | 9 |
49159 | FileNameW | Memory | 74 | 10 |
49490 | FileGroupDescriptorW | Memory | 596 | 11 |
Format ID | Format Name | Handle Type | Size | Index |
---|---|---|---|---|
13 | CF_UNICODETEXT | Memory | 90 | 1 |
1 | CF_TEXT | Memory | 48 | 2 |
15 | CF_HDROP | Memory | 96 | 3 |
49506 | UniformResourceLocatorW | Memory | 90 | 4 |
49499 | UniformResourceLocator | Memory | 44 | 5 |
49905 | application/x-copyq-owner | Memory | 17 | 6 |
It is possible that there is another channel (apart from the system clipboard) that communicates which action needs to happen in Explorer on Ctrl+V.
Otherwise in CopyQ you can check the available clipboard formats (with Ctrl+Shift+C or menu bar File - Show Clipboard Content) after copying from Explorer. If there are any formats that could affect the behavior, you can add them to the command from FAQ.
It is possible that there is another channel (apart from the system clipboard) that communicates which action needs to happen in Explorer on Ctrl+V.
Might be, but the Clipboardic v1.15 by the same Nirsoft restore the original action just fine: https://www.nirsoft.net/utils/clipboardic.html
Otherwise in CopyQ you can check the available clipboard formats (with Ctrl+Shift+C or menu bar File - Show Clipboard Content) after copying from Explorer. If there are any formats that could affect the behavior, you can add them to the command from FAQ.
Thanks, I got this idea for another issues. If I find the needed format that is missing, would it be possible to integrate it into the default setup so it works out-of-the-box ?
Thanks, I got this idea for another issues. If I find the needed format that is missing, would it be possible to integrate it into the default setup so it works out-of-the-box ?
I don't want to clutter the app with functionality that not many people use or is platform-dependent.
Better to add it to the FAQ entry. Feel free to create PR, otherwise let me know which format to add. Thanks.
If I use Ctrl-C and Ctrl-V for eg. file
AUTHORS
in the w10 file explorer, the file gets pasted asAUTHORS - Copy
. But if I activate a second item and then reactivate the first one before Ctrl-V, the pasting breaks.Using vanilla setup of CopyQ, simply nothing happens. This has been addressed using different workarounds:
in #1192 ...
> ```ini > [Command] > Automatic=true > Icon=\xf0c1 > Input=text/uri-list > Name=Copy Files/URIs > ```and in #1223 ...
\+ the [FAQ](https://copyq.readthedocs.io/en/latest/faq.html#how-to-reuse-file-paths-copied-from-a-file-manager): > ```ini > [Command] > Command=" > var originalFunction = global.clipboardFormatsToSave > global.clipboardFormatsToSave = function() { > return originalFunction().concat([ > mimeUriList, > 'x-special/gnome-copied-files', > 'application/x-kde-cutselection', > ]) > }" > Icon=\xf0c1 > IsScript=true > Name=Store File Manager Metadata > ```Now if add any of these two and repeat the sequence, the first file gets pasted. But only if I go to a different folder containing no file with the same name.
When I stay in the same folder (where the original file resides) and press Ctrl-V, the copy isn't created. Instead I get following error in file explorer:
The source and destination file names are the same.
To Reproduce Steps to reproduce the behavior:
CopyQ
folder using file explorerAUTHORS
file2
in the GUI but numbered as1
in the CLI):Expected behavior
The
AUTHORS
files should get copied asAUTHORS - Copy
in file explorer (as it happens before the item reactivation).Screenshots
The error message:
Version, OS and Environment