zed icon indicating copy to clipboard operation
zed copied to clipboard

vim: Support keybinding `z.`

Open snorkypie opened this issue 1 year ago • 1 comments

z. is similar to zz but moves the cursor to the first non-blank character.

From the documentation:

z.   Redraw, line [count] at center of window (default cursor line). Put cursor at first non-blank in the line.
zz   Like "z.", but leave the cursor in the same column.

Release Notes:

  • Support the z. vim keybinding: Center cursor in window and put cursor at first non-blank

snorkypie avatar Mar 02 '24 07:03 snorkypie

@cla-bot check

snorkypie avatar Mar 02 '24 12:03 snorkypie

Thanks for this!

I'm not sure we want too much logic hidden away in the JSON, but this seems fine (as @mrnugget said). When we add support for {count}z. we'll need to factor this out.

ConradIrwin avatar Mar 04 '24 23:03 ConradIrwin

Thanks for this!

I'm not sure we want too much logic hidden away in the JSON, but this seems fine (as @mrnugget said). When we add support for {count}z. we'll need to factor this out.

Yup for sure! I might take a look at that when things gets a bit less crazy work wise.

snorkypie avatar Mar 05 '24 05:03 snorkypie