aviaryan / Clipjump

:clipboard: Clipboard Manager for Windows, built in AutoHotkey
http://clipjump.sourceforge.net/
383 stars 61 forks source link

Always copy to default clipboard #61

Closed danielo515 closed 8 years ago

danielo515 commented 9 years ago

It would be helpful to have the option to select a default clipboard. Then all the clips should be saved to that clipboard, no matter which keyboard you have selected. This is useful if you want to have clipboards only for "snippets" and you don't want to care about going back again to the default one.

aviaryan commented 9 years ago

How do you want to save to that default channel. I presume you want to have some special shortcut (ctrl+shift+c) that would copy to the default channel instead of current active channel. It is possible with Clipjump Custom

aviaryan commented 9 years ago

Hey, I just wrote a plugin for this

Use it with ClipjumpCustom

[copy_to_3]
bind = Ctrl+Shift+C
run = API.runPlugin( copy2channel.ahk, 3, 0 )
danielo515 commented 9 years ago

How do you want to save to that default channel. I presume you want to have some special shortcut (ctrl+shift+c) that would copy to the default channel instead of current active channel. It is possible with Clipjump Custom

No, I would like to use it with the normal CTRL+C. I'm not sure If I understood what you are proposing to me. Does your new plugin move what is currently selected on the current channel or does it copy what you just copied to the clipboard?

danielo515 commented 9 years ago

Hello again.

Your plugin does not seems to work. I just copies to the default clipboard. I'm using the exe version of clipjum, does it matter?

aviaryan commented 9 years ago

Your plugin does not seems to work. I just copies to the default clipboard. I'm using the exe version of clipjump, does it matter?

No. The 2nd parameter ( run = API.runPlugin( copy2channel.ahk, 3, 0 ) ) is the channel number that receives the clip when you copy a text with Ctrl+Shift+C. So if your active channel is 0 and you copy with Ctrl+Shift+C, then it will go to channel 3 instead of channel 0. Also the plugin will work only if channel 3 exists...

No, I would like to use it with the normal CTRL+C.

Then how will the program get the logic which clip to move in the default channel and which one to keep in the active channel.

danielo515 commented 9 years ago

Then how will the program get the logic which clip to move in the default channel and which one to keep in the active channel.

Sorry, if this is a question I did not get it.

danielo515 commented 9 years ago

Hello,

Also the plugin will work only if channel 3 exists...

Additionally to this limitation you have to add that it does not work neither if the destination channel is protected.

aviaryan commented 9 years ago

Additionally to this limitation you have to add that it does not work neither if the destination channel is protected.

I will fix that.. Thanks, didn't notice it.

Also the plugin will work only if channel 3 exists...

You can't call this a limitation.