Skip to content

Instantly share code, notes, and snippets.

@theRemix
Created June 3, 2013 21:26
Show Gist options
  • Save theRemix/5701566 to your computer and use it in GitHub Desktop.
Save theRemix/5701566 to your computer and use it in GitHub Desktop.
Disabling cut and copying an entire line in Sublime Text 2 when no text is selected. It's so irritating when i accidentally Cmd+x and it deletes the whole line or Cmd+c then i lose my previous buffer. put this in Preferences -> Settings - User
[
{ "keys": ["super+c"], "command": "noop" },
{ "keys": ["super+c"], "command": "copy", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["super+x"], "command": "noop" },
{ "keys": ["super+x"], "command": "cut", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment