zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.4k stars 1.16k forks source link

set to make ctrl+k remember last buffer not all #3221

Closed vincentaxhe closed 1 month ago

vincentaxhe commented 3 months ago

it's quite annoying when want to paste last line but got all deleted lines by ctrl+k , or make ctrl+x works the way only remember last, it's a waste to make these two identical. there maybe some keybind or options, and I generally read buildin guide and check the issues, It bothers me a few monthes until now I decide to ask some help.

Gavin-Holt commented 2 months ago

Hi,

The CutLine command is actually appending each line to the clipboard.

If you want to replace the clipboard with the current line try binding CTRL+K like this:

    "Ctrlk": "SelectLine,Copy,Delete",

Kind Regards Gavin Holt

vincentaxhe commented 1 month ago

ok ,it works, paste one line should be the default setting.