Sublime Forum

Unpredictable behaviour when yanking line

#1

My current keybinding for yanking a line is set to { “keys”: “super+y”], “command”: “yank” } in the Default(OSX).sublime-keymap. I’ve searched across the entire file and commented out any other commands that were associated with this keybinding.

When I yank a line, I position the cursor on the line and do cmd+y, sometimes it adds a new blank line, if it ever does anything. So far I’ve not been successful in yanking a line using the keybinding.

any ideas?

0 Likes

#2

Open the console and type:

sublime.log_input(True) sublime.log_commands(True)
These commands start logging key inputs and command execute to the console.

Maybe super+y is a system keybinding ?

0 Likes

#3

Hi,

I get this:

key evt: super+y
command: yank
key evt: super+y
command: yank
key evt: super+y
command: yank
key evt: super+y
command: yank
key evt: super+y
command: yank

However, no line is ever yanked. CMD+Y is not a system keybinding. I’m a previous TextMate user, and cmd+y was yank in the app.

0 Likes

#4

I still need help on this one!

0 Likes

#5

What are you expecting the yank command to do?

Yank inserts the text that’s at the top of the kill ring, just as the standard yank command does on OS X. Its system-wide key binding is control+y.

0 Likes