-5
Lõpetatud

Copy (super+c) should copy line if nothing is selected

aristidesfl 13 aastat tagasi uuendaja Jon Skinner 12 aastat tagasi 5

The first time I've seen this improvement was in IntelliJ IDE.


If nothing is selected, make the Copy command (super+c) copy the entire line.


The same goes for the Cut command (super+x).

Vasta

Vasta
Lõpetatud
It has always done this in Sublime Text
Vasta
Lõpetatud
It has always done this in Sublime Text

It does indeed. I didn't notice it probably because I was expecting the line to stay selected after copy. 


Cheers!

+5
If this "improvement" would be configurable, it might prevent many users from loosing their clipboard content when accidently pressing command + c instead of command + v.
+4
Any way to turn this off? I'm doing exactly what @pre said, several times a day, and it's driving me up the wall...!

I would like the ability to turn this feature off too. I more often lose my clipboard content by mis-typing cmd-c than need to copy a line. As I'd usually cmd-d duplicate the line and move it.

+3

The newest Dev build adds a new preference, called copy_with_empty_selection, which you can set to false. You need to be a registereed user to run the Dev builds, but hopefully this feature will be added to the free Stable build soon. If you can't use the dev builds, try the keybind-based solution here: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=10265&start=0#p40655