Sublime Forum

What add_to_kill_ring function do in sublime?

#1

What add_to_kill_ring function do?

There is no description in sublime…
When i commented this function nothing changed in result.

Delete to Hard BOL.sublime-macro

[
{“command”: “move_to”, “args”: {“to”: “hardbol”, “extend”: true}},
{“command”: “add_to_kill_ring”, “args”: {“forward”: false}},
{“command”: “left_delete”}
]

Delete Line.sublime-macro

[
{“command”: “expand_selection”, “args”: {“to”: “line”}},
{“command”: “add_to_kill_ring”, “args”: {“forward”: true}},
{“command”: “left_delete”}
]

0 Likes

#2

The kill ring is what the yank command reads from. See What does `Yank` mean in ST3 v3114?

1 Like

#3

Thanks, it means that it add to second buffer if i understand correctly…

0 Likes