quickcursor icon indicating copy to clipboard operation
quickcursor copied to clipboard

How reliable is quickcursor supposed to be?

Open franciscolourenco opened this issue 12 years ago • 16 comments

About half of the times the text is not pasted back the the source application. It's very unreliable. What's your experience?

franciscolourenco avatar Jun 07 '12 04:06 franciscolourenco

Could you give me a bit more information on your setup? With a compatible "edit in" app it should be pretty reliable most if not all of the time. Where do you usually pull from, and into what app (and which version)?

One known exception would be text fields in Java Runtime Environments, such as Eclipse IDE.

GreyBurkart avatar Jun 07 '12 13:06 GreyBurkart

Mac OS X 10.7.4 QuickCursor 2.6 Sublime Text 2 build 2195 It happened a few times with Chrome, Notational Velocity and Xcode.

franciscolourenco avatar Jun 07 '12 17:06 franciscolourenco

By coincidence some else just complained too http://sublimetext.userecho.com/topic/50188-odb-editor-suite-quickcursor-support-on-os-x/#comment_126497

franciscolourenco avatar Jun 07 '12 17:06 franciscolourenco

I'll add it to our bug list regardless, but if the text is having trouble getting back to the original location, that's a sign that the ODB pipeline from the "Edit In" app itself isn't sending reliably. If the same process works reliably with other editors like TextWrangler or MacVim, then that would be my first guess.

ODB support was added in Sublime build 2187, if I remember correctly, but hasn't made it into the official 'production' version yet. This could be due to ODB Suite configuration issues on the side of the Edit In application (ST2 build 2187+).

One other possibility, from an example with tabbed browsers: QuickCursor can lose focus if browser tabs are switched between the point where QC grabs the text to be edited and shuttles it back to the original location. We haven't found a workaround for that. That seems less likely given that ST2 is used as the "Edit In" app, not the source app, but worth mentioning just in case.

GreyBurkart avatar Jun 07 '12 18:06 GreyBurkart

I'm on the same things. I'm definitely willing to believe that this is Sublime's fault but it's hard for me to debug. Are there any debug switches we can turn on in Quick Cursor to see if it's getting back the correct information?

danielhopkins avatar Jun 07 '12 19:06 danielhopkins

(I mean version of OS / ST2, etc)

danielhopkins avatar Jun 07 '12 19:06 danielhopkins

@jessegrosjean are there any extra debug flags to enable?

QC tends to be rather prolific when outputting to the Console (at least when I build & run in Xcode), and ODB errors usually show up there.

GreyBurkart avatar Jun 07 '12 19:06 GreyBurkart

QuickCursor can lose focus if browser tabs are switched between the point where QC grabs the text to be edited and shuttles it back to the original location.

Can I switch from the edit in app and come back without breaking QC?

franciscolourenco avatar Jun 07 '12 19:06 franciscolourenco

With the exception of 'don't change the focus of the source app/text field/document' yes, flip around to other apps. When you go to paste back the edited text, QuickCursor is still looking for the same conditions as it left in the source app.

This would cause problems in the source app, for example:

  • Changing tabs in a browser before sending the text back
  • Closing or switching to another document in a word processor before sending the text back

This shouldn't cause problems:

  • If you're not using a text field on a webpage as the source, opening up a browser and doing research
  • Referring to other text files or PDFs (etc) in another app

GreyBurkart avatar Jun 07 '12 19:06 GreyBurkart

No, there are no extra debug flags that I know about it. If you really want to debug something I think best is to run it in Xcode and debug that way.

jessegrosjean avatar Jun 07 '12 19:06 jessegrosjean

I noticed that there seems to be different behavior with the command "Close File" vs "Close Window". The former might be more reliable.

danielhopkins avatar Jun 07 '12 20:06 danielhopkins

I haven't been able to find any debug output in console. What log files does Quick Cursor write to?

danielhopkins avatar Jun 09 '12 17:06 danielhopkins

I mean debug with Xcode breakpoints, I don’t think QuickCursor does much if any logging.

jessegrosjean avatar Jun 09 '12 17:06 jessegrosjean

Just to add, I've found it somewhat intermittent as well, especially using Google Chrome and Macvim. It's still safe providing you have an app that keeps a Clipboard History (e.g. Launchbar) - then if you do close the document in your text editor and nothing happens you can just insert the second most recent item from there.

wturrell avatar Jul 14 '12 13:07 wturrell

I have problems mainly google chrome as well. Good to know about the clipboard though.. :)

franciscolourenco avatar Jul 14 '12 15:07 franciscolourenco

Chrome+Macvim seems to work about half the time for me. I just reopen Macvim, reopen the file (from recently-opened list), and use the system clipboard when this happens.

xiongchiamiov avatar Jul 16 '12 21:07 xiongchiamiov