I guess I could try to get it to work in ST2ā¦ lemme see.
Copy Edit - fix multiple selection copy/paste
One more ST2 issue. The shortcut key for cutting isnāt working for some reason.
ST2, youāre killing me! Fixed cut as well.
Also, if youāve never used Sublimeās console (ctrl+`) it is full of useful information about problems.
Looks cool. Thanks! I canāt tell you how many time ST has pissed me off in regards to copy/paste.
Turns out the clipboard solution I was using doesnāt work for unicode charactersā¦ I may have just lost some text. Iāll try to figure something out soon.
Turns out the clipboard solution works just fineā¦ but Sublime Text sets the default encoding to ascii (!!!) so that the subprocess communication breaks when communicating with the clipboard helpers. Anyone know how to fix that?
This is awful. Seriously, does anyone know why pyperclip would work just fine in the terminal and literally everywhere but in Sublime Text? ST, why do you have to mess with python so muchā¦ it works just fine normallyā¦
Pester Jon to compile it to use unicode . Not sure if there is some other way. I plan on playing with your plugin this week. But while I say to pester Jon half jokinglyā¦I am also half serious.
Well as far as I can tell, everything works just fine as long as you donāt copy unicode, and the clipboard handler Iām using works just fine with unicode as long as youāre not using Sublime Text. Just in case you want to take a look
Well, hereās what happens, as far as I can tell. If I call string.encode(āutf-8ā) or whatever, then if I paste into a different application it comes out garbled - I guess the system clipboard isnāt utf-8? So somehow I need to be detecting what the system clipboardās encoding is, or convince the clipboard to be utf-8, or I donāt know what.
But! If I use the same clipboard module from anywhere thatās not Sublime, I donāt need to call string.encode at allāit just works (except in Sublime Text, where it flips out when I paste - ācanāt decode to asciiā by default, or garbles it if I try to decode as utf-8).
A lot of Googling and messing around with the code and I have gotten no further.
I did not reviewed *completely *the code of this package, but, there is two api functions to read and write to clipboard, not sure if there is a good reason to do it in python. If there is a good reason just ignore my post, if not why donāt use the sublime API calls?
Thanks for this plugin, is useful
[quote=āadzenithā]
ā¦Well Iāll be.[/quote]
Thatās funny, for some reason I didnāt even think about the API copy/pasteā¦and I have used it in some of my pluginsā¦if it were a snakeā¦
Pushed it real good.
Looks to be 100% now. I can copy and paste Unicode to my heartās content.
Tito: you rock.
Just tried your package.
Sadly, it does not behave like ST when copy&paste without selection. The copied line should be pasted on a seperate line, just like vim does with āddpā.
CopyEdit pastes the copied line at caret position, producing surprising results.
Is this behaviuor intended?