ggandor / leap-spooky.nvim

👻 Actions at a distance
The Unlicense
277 stars 7 forks source link

Doc bug: README.md does not clarify what difference between `r` and `m` is #8

Closed elmarsto closed 1 year ago

elmarsto commented 1 year ago

What's remote? What's magnetic? When to use one or the other? Why these terms?

raine commented 1 year ago

The examples in the README are nice, but would really appreciate a full list of possible affixes and with the letters expanded with their meaning.

kisuryoza commented 1 year ago

Remote allows you manipulation with objects without touching cursor, while magnetic puts your cursor to where manipulation happened.

zhengpd commented 1 year ago

Agree the doc doesn't say much about the letters meaning. README mentions drr[leap] to delete line. Anyone knows what each r means here? I guess one of them is 'remote'.

ggandor commented 1 year ago

Anyone knows what each r means here? I guess one of them is 'remote'.

It doesn't "mean" anything, but meant to resemble native Vim operators, where you duplicate the given letter for the linewise version (eg. dd or yy). (Not terribly logical though, since, after all, Spooky creates text objects, not operators.)

ggandor commented 1 year ago

(Hopefully) resolved by 3e94046.