Sublime Forum

Prevent to overwrite Clipboard with nothing

#1

First thank you for this great text editor.

My problem is that when I type without looking at keyboard i’m often off-by-one.
Most of the time it’s possible to correct, however Clipboard overwriting is not reversible.

So I often press CTRL-X instead of CTRL-S. Same problem with CTRL-C , CTRL-V

When some text is selected, Cut/Copy make sens so i’ll accept it as my fault.
However when nothing is selected, ST2 behavior is to clear clipboard,
while other text editors simply ignore the copy/cut command (np++ for example).

So my suggestion would be:
When selection width is zero, ignore clipboard command rather than overwrite with nothing.

Thanks you very much.

0 Likes

#2

While you can override this behavior with a simple plugin, I just wanted to make a clarification. ST2’s default behavior is to copy/cut the current line if nothing is selected. I find this behavior very intuitive but I can see where people have trouble with it.

0 Likes