Jump to content

Pasting from Clipboad History Viewer doesn't work consistently with IntelliJ


Recommended Posts

I am running Alfred v2.7.2 (407) and IntelliJ 14.1.4

 

I have the clipboard viewer hotkey set to shift-command-C. I have Auto Paste on return.

 

When invoking the clipboard viewer with the hotkey, selecting an item from the history that is not the most recent item and hitting enter, the most recent item/text is what is pasted. Sometimes trying several times makes it work, other times it doesn't. Switching to another app like TextEditor and pasting there always works immediately. 

 

This started happening immediately after switching to the pre-release.

Link to comment

I am running Alfred v2.7.2 (407) and IntelliJ 14.1.4

 

I have the clipboard viewer hotkey set to shift-command-C. I have Auto Paste on return.

 

When invoking the clipboard viewer with the hotkey, selecting an item from the history that is not the most recent item and hitting enter, the most recent item/text is what is pasted. Sometimes trying several times makes it work, other times it doesn't. Switching to another app like TextEditor and pasting there always works immediately. 

 

This started happening immediately after switching to the pre-release.

 

This is a bit of an odd one and I have a theory... before I explain, could you try temporarily turning off auto-paste on return, selecting the item with return from Alfred's clip history, waiting a second then manually pasting it?

 

Cheers,

Andrew

Link to comment

I am running Alfred v2.7.2 (407) and IntelliJ 14.1.4

 

I have the clipboard viewer hotkey set to shift-command-C. I have Auto Paste on return.

 

When invoking the clipboard viewer with the hotkey, selecting an item from the history that is not the most recent item and hitting enter, the most recent item/text is what is pasted. Sometimes trying several times makes it work, other times it doesn't. Switching to another app like TextEditor and pasting there always works immediately. 

 

This started happening immediately after switching to the pre-release.

 

Known problem - https://youtrack.jetbrains.com/issue/IDEA-114252 -- https://bugs.openjdk.java.net/browse/JDK-8071668

 

It's a Java issue. You can use the latest JDK (8u60) or their custom JDK they bundle with IntelliJ. There's also a possible workaround in the first link. Basically Java caches the pasteboard when it gets focus. If focus doesn't leave the app it doesn't recognize when the clipboard manager changes the pasteboard.

Link to comment

I'm having the same problem with webstorm. I don't really understand if a fix is already out or not.

I tried the fix suggested in the ticket (changing idea.properties file) and it worked, alfred's clipboard history works again.

 

(Some people say it makes the IDE freeze, but it happened to me before anyway - I'm killing my IDE every few days anyway)

Link to comment

If you update to the latest Alfred 2.7.3 pre-release (build 411) from Alfred's update prefs, I've now added a "compatibility" mode into Alfred's Appearance > Options.

 

I appreciate that there may be some situations as described above where it's more desirable for Alfred to act more like an OS X app when taking key window!

 

Cheers,

Andrew

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...