Home Download Buy Blog Forum Support

Copy Edit - fix multiple selection copy/paste

Copy Edit - fix multiple selection copy/paste

Postby adzenith on Sat Jun 08, 2013 10:06 pm

Inspired by xavi-'s excellent Select-Until, which finally solved one of the most annoying problems I had with Sublime Text, I decided to buckle down and fix copy and paste once and for all, laying to rest the other of my two most annoying problems.

This plugin is for everyone who's ever copied two chunks of code with newlines in them, and yelled at the computer when paste didn't work right: now it does.

It also lets you do complicated things like paste multiple selections into fewer selections, and vice versa. I don't know if that's actually useful, but maybe it's more useful than the built-in behaviour.

It should be transparent and seamless and just work on all platforms. I've been running it all day and loving it.

https://github.com/adzenith/CopyEdit

Feedback is welcome, as always!
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Copy Edit - fix multiple selection copy/paste

Postby icylace on Sun Jun 09, 2013 12:01 am

Neat idea !

I just sent a pull request which fixes a minor issue with the .sublime-keymap files.

Also, when Copy Edit is active I can't do any copy and pasting.

I'm running ST2 on OS X 10.7.
icylace
 
Posts: 48
Joined: Mon Jan 14, 2013 7:24 am

Re: Copy Edit - fix multiple selection copy/paste

Postby adzenith on Sun Jun 09, 2013 12:12 am

I guess I could try to get it to work in ST2... lemme see.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Copy Edit - fix multiple selection copy/paste

Postby adzenith on Sun Jun 09, 2013 12:29 am

Fixed for ST2. Should work everywhere now.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Copy Edit - fix multiple selection copy/paste

Postby icylace on Sun Jun 09, 2013 12:35 am

Thanks ! It works now.
icylace
 
Posts: 48
Joined: Mon Jan 14, 2013 7:24 am

Re: Copy Edit - fix multiple selection copy/paste

Postby icylace on Sun Jun 09, 2013 12:55 am

One more ST2 issue. The shortcut key for cutting isn't working for some reason.
icylace
 
Posts: 48
Joined: Mon Jan 14, 2013 7:24 am

Re: Copy Edit - fix multiple selection copy/paste

Postby adzenith on Sun Jun 09, 2013 3:24 am

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.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Copy Edit - fix multiple selection copy/paste

Postby icylace on Sun Jun 09, 2013 7:37 pm

Awesome, thank you.
icylace
 
Posts: 48
Joined: Mon Jan 14, 2013 7:24 am

Re: Copy Edit - fix multiple selection copy/paste

Postby facelessuser on Sun Jun 09, 2013 9:10 pm

Looks cool. Thanks! I can't tell you how many time ST has pissed me off in regards to copy/paste.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: Copy Edit - fix multiple selection copy/paste

Postby adzenith on Mon Jun 10, 2013 2:01 pm

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.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 7 guests