Clipboard Text.txt

Hi all,

can I disable the automatic creation of "Clipboard Text.txt" when I paste something not being a file ?

Or is there a setting to ask the user if he wants to create this file ?

Many thanks.

I don't think you can do either without also affecting what happens when you paste a file.

ok :cry:

thanks for the (fast) answer Leo :slight_smile:

i'm curious why you would want to change this behaviour. i think it's extremely useful, and i use it quite often.

anyway if you don't want to make a new file with the clipboard contents, then just don't use the paste function when there's text on the clipboard!

[quote="garbanzo"]i'm curious why you would want to change this behaviour. i think it's extremely useful, and i use it quite often.

anyway if you don't want to make a new file with the clipboard contents, then just don't use the paste function when there's text on the clipboard![/quote]
That's the point !

I hate when I want to paste files and ending up with a dumb clipboard text.txt because in the meantime, I had something else in the clipboard.
That's my fault, I know, but it happens sometimes.

1 Like

I don't know if there any "gotchas" with doing this - but you can try modifying the <Ctrl+V> hotkey from running the default Clipboard PASTE to run Clipboard PASTE AS=ask instead...

The AS=ask argument seems not to bother the paste function in the case you've still got files/folders copied to the clipboard... But if you have either text or image data in the clipboard that would cause the 'Clipboard Text/Image.ext' file to be auto-created, you'll now get a dialog from Opus asking you to confirm what you want the new filename to be - rather than the default 'Clipboard Text/Image.ext' name...

The only reason I mention this is that at least then you can just hit or the Cancel button in order to keep from having the new file auto-created - and maybe that's better than having to delete the auto-created file; or probably worse... you maybe didn't realize that what you intended to copy/paste didn't actually get copied, in which case this dialog will then serve as a visual cue to let you know what you thought you were doing didn't actually happen. Plus, this has the upshot of still being able to [u]use[/u] the 'auto-create' file from clipboard feature by accepting or changing the default name in the dialog and just hitting or the Ok button... a feature which; like garbanzo... I luuuuuuuuuv and actually couldn't get by without now that I'm used to it :wink:.

2 Likes

That's SO PERFECT !

This is exactly what I wanted !!
With this command, I'll be aware of any mistaken created txt files.
Thx steje :slight_smile:

This is what I want to do, but I can't seem to make it work. I am using version 11.16.

I went to Settings / Customize Toolbars / Keys and changed the Function of Ctrl+V to:

Clipboard PASTE AS=ask

However, when I have text in the clipboard and use Ctrl+V, Opus still creates a Clipboard Text.txt file.

Is there another place where Ctrl+V needs to be changed? Sorry if I'm missing something obvious.

Ron

Sounds like you are doing the right thing.

11.16 isn't the latest version of Opus 11 so you might want to update that (checking the change-log, I can't see anything related in 11.17/18/19, but it's worth being up to date).

I did a quick check with 12.2.5 and Clipboard PASTE AS=ask still works there, pasting into the desktop folder as a test.

What I would pretty much apprectiate is if I could paste a text and instead of creating a file it would simply find the pasted text in the filenames, like FAYT (Find As You Type) but to quickly find a filename with a specific word on it. Anyone knows if this is possible?

Try

CLI QUICKFIND={clip}

or

Set QUICKFILTER={clip}

That was quick! Thank you, Ixp! The command "CLI QUICKFIND={clip}" worked, but it seems to override the default paste function, which is to paste a previously copied file. Do you know if there's a way to make it switch between functions depending on whether I have a file, text, or image in my clipboard? I tried "Clipboard PASTE" in the first line and "CLI QUICKFIND={clip}" in the second, but it does both, as one would expect.

Yes. Try

=return ClipFormat("text") ? "CLI QUICKFIND={clip}" : "Clipboard PASTE"
1 Like

Nice, it works beautifully. Now when I paste text, it tries to find the text in the files; when I paste an image it creates an image file; when I paste a link, like ‘C:\Program Files\GPSoftware’ it goes to the link (after pressing Enter) and when I paste a file, it pastes the file. Excellent! Thank you so much Ixp, you've been extremely helpful.

The 2 options above are interesting (paste text with confirmation or paste to find), however neither are what I need. I would like to never have pasting create a text file. Is that possible? It's important for my workflow and it bothers me multiple times per day.

I use a clipboard history tool and often I want to paste from that history popup. If I am renaming a file (F2) and I show the history popup, renaming stops (same behavior in Windows Explorer). When I choose from the history popup, it pastes and that creates a file (in Explorer is does nothing). Now I have to delete the text file and afterward the file I originally needed to rename has been scrolled away. I have to find it again, F2, then I can paste to rename. This makes a common action very tedious.

Sounds like you need to tell the clipboard tool to put the item into the clipboard instead of pasting it.

1 Like

That is a possible solution, but clunky as I need to identify the DO window and avoid pasting to it from the popup. It also doesn't solve that I simply dislike the feature -- I never, ever want a text file created just because I pasted into DO. The number of times that would be useful for me personally is vanishingly small, yet the number of times I would accidentally paste and have to clean up the unwanted mess is more common.

With all the configurability DO has, please add an option to disable creating a text file when pasting. An advanced option is fine.

1 Like

Disabling the hotkey might be enough:

I'm afraid this would also disable pasting files copied to the clipboard.
Maybe another way would be to create a new command (script) that analyzes the clipboard content and that only pastes when clipboard contains files, and then replace that hotkey with this command.

That sounds promising!