In normal folder tab, I can use ctrl+c/ctrl+v to copy&paste files directly into Telegram ( default explorer or all other explorer-like app can do the same thing). But it can not work in the search result tab, is anything I can do to make this function work ?
Can you copy & paste the same file from Search Results in Opus into a new folder in File Explorer? If that works, the problem is more likely to be on the Telegram side of things.
I'd also check what happens if you go to the file's real location and copy & paste it from there. That may reveal it's the file (or folder it's in, e.g. one with a very long path) which Telagram has the issue with, rather than Search Results being the cause.
Search Results ( Everything search result tab ) can copy & paste to the Opus other tabs and the Windows explorer.
If open the parent path of the target file in Search Results to a new Opus tab, then copy & paste to Telegram can work form the new tab. Just like I said, in normal Opus floder tab , it can work
Tried the script and the script can copy & paste to Telegram sucessfully from the search result tab.
So, what's the root cause? Could I make copy & paste work without using a new Button & script ?
After copying files from collection to clipboard, it can only be pasted inside DO, it cannot be pasted anywhere outside of DO (including File Explorer / telegram / QQ / open file dialogs,etc.).
it is DO's own problem.
My OS is win11 23H2 22631.3296 .
I tested again, and files can indeed be pasted into File Manager.
but can not be pasted into many other applications.
For example, copy a file from collection,then we can not pasted it to Everything's editor field.
But copy a file from regular folder, we can do this.
I think you mix copying a file, and copying its path.
When you copy (a file) from Opus, it can be pasted in applications (such as File Explorer) which accept a file as an input.
But when you're talking about Everything editor field or notepad Open File Dialog (which by the way is the system Open File Dialog), they are expecting text, not a file.
To copy a file path from Opus, there are various options at your disposal (full path, just the filename, etc ...). They are accessible through the standard "EDIT" menu (Ctrl+Shift+C for instance to copy the full file path).
That's a function of the thing you are pasting into, and only happens if it understands files on the clipboard can convert them to text paths to put into the text field.
Most text fields won't do that (e.g. try pasting into Notepad) but we made it so the path field in Opus supports it.
Consider this:
Copy a file from File Explorer,and then we can press Ctrl+V to paste its path to the edit field.
Copy a file from regular folder in DOpus,and then we can press Ctrl+V to paste its path to the edit field.
Copy a file from collections in DOpus,then we can not press Ctrl+V to paste its path to the edit field.
Isn't that a problem?
when using this script:
DOpus.SetClip(clickData.func.sourcetab.selected);
We manage to paste it !
Isn't that a problem with "Clipboard COPY"?
No, it's completely normal. The File Open dialog and most programs that are not Opus will not understand filepaths that point to collections, because collections are an Opus concept.
It's easy to get the full (non-collection) path to something inside a collection and put that into the clipboard.
But that would need to be a separate hotkey or button. If you replaced the normal Ctrl-C with that, it would stop you being able to copy and paste files (you'd paste a text file with the path inside it, instead, when pasting into Opus, and nothing at all would happen when pasting into File Explorer).