Home Download Buy Blog Forum Support

Don't copy when no text is highlighted

Don't copy when no text is highlighted

Postby kdamica on Sat Apr 20, 2013 10:17 pm

I've been using Sublime for a while now and I like it a lot. My one gripe is that when I'm copying and pasting, if I accidentally hit ctrl+c again instead of ctrl+v, then the clipboard gets cleared. There should be a check to see whether any text is selected, and only copy when the length > 0. This is how other editors seem to work.

Apologies if there is a setting for this, but I haven't been able to find it. Using Linux version.
kdamica
 
Posts: 2
Joined: Sat Apr 20, 2013 10:12 pm

Re: Don't copy when no text is highlighted

Postby skuroda on Sat Apr 20, 2013 10:58 pm

Set the following in your user preferences.

Code: Select all
    // If true, the copy and cut commands will operate on the current line
    // when the selection is empty, rather than doing nothing.
    "copy_with_empty_selection": true,
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am

Re: Don't copy when no text is highlighted

Postby kdamica on Sun Apr 21, 2013 6:40 pm

Thanks!
kdamica
 
Posts: 2
Joined: Sat Apr 20, 2013 10:12 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests