
This Pull Request fixes the current paste behavior in vim mode, when in visual mode, and the cursor is at a newline character. Currently this joins the pasted contents with the line right below it, but in vim this does not happen, so these changes make it so that Zed's vim mode behaves the same as vim for this specific case. Closes #29270 Release Notes: - Fixed pasting in vim's visual line mode when cursor is on a newline character
51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{"Put":{"state":"The quick brown\nfox jˇumps over\nthe lazy dog"}}
|
|
{"Key":"v"}
|
|
{"Key":"i"}
|
|
{"Key":"w"}
|
|
{"Key":"y"}
|
|
{"Get":{"state":"The quick brown\nfox ˇjumps over\nthe lazy dog","mode":"Normal"}}
|
|
{"Key":"w"}
|
|
{"Key":"v"}
|
|
{"Key":"i"}
|
|
{"Key":"w"}
|
|
{"Key":"p"}
|
|
{"Get":{"state":"The quick brown\nfox jumps jumpˇs\nthe lazy dog","mode":"Normal"}}
|
|
{"ReadRegister":{"name":"\"","value":"over"}}
|
|
{"Key":"up"}
|
|
{"Key":"shift-v"}
|
|
{"Key":"shift-p"}
|
|
{"Get":{"state":"ˇover\nfox jumps jumps\nthe lazy dog","mode":"Normal"}}
|
|
{"ReadRegister":{"name":"\"","value":"over"}}
|
|
{"Key":"ctrl-v"}
|
|
{"Key":"down"}
|
|
{"Key":"down"}
|
|
{"Key":"p"}
|
|
{"Get":{"state":"oveˇrver\noverox jumps jumps\noverhe lazy dog","mode":"Normal"}}
|
|
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog"}}
|
|
{"Key":"shift-v"}
|
|
{"Key":"d"}
|
|
{"Get":{"state":"The quick brown\nthe laˇzy dog","mode":"Normal"}}
|
|
{"Key":"v"}
|
|
{"Key":"i"}
|
|
{"Key":"w"}
|
|
{"Key":"p"}
|
|
{"Get":{"state":"The quick brown\nthe \nˇfox jumps over\n dog","mode":"Normal"}}
|
|
{"ReadRegister":{"name":"\"","value":"lazy"}}
|
|
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog"}}
|
|
{"Key":"shift-v"}
|
|
{"Key":"d"}
|
|
{"Get":{"state":"The quick brown\nthe laˇzy dog","mode":"Normal"}}
|
|
{"ReadRegister":{"name":"\"","value":"fox jumps over\n"}}
|
|
{"Key":"k"}
|
|
{"Key":"shift-v"}
|
|
{"Key":"p"}
|
|
{"Get":{"state":"ˇfox jumps over\nthe lazy dog","mode":"Normal"}}
|
|
{"ReadRegister":{"name":"\"","value":"The quick brown\n"}}
|
|
{"Put":{"state":"ˇThe quick brown\nfox jumps over\nthe lazy dog"}}
|
|
{"Key":"y"}
|
|
{"Key":"y"}
|
|
{"Key":"shift-v"}
|
|
{"Key":"j"}
|
|
{"Key":"$"}
|
|
{"Key":"p"}
|
|
{"Get":{"state":"ˇThe quick brown\nthe lazy dog","mode":"Normal"}}
|