Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation] Add mnemonics for r and a targets #390

Open
souvlakeeb opened this issue Aug 2, 2024 · 0 comments
Open

[Documentation] Add mnemonics for r and a targets #390

souvlakeeb opened this issue Aug 2, 2024 · 0 comments

Comments

@souvlakeeb
Copy link

In the docs you say:

The targets b, B, r, and a are aliases for ), }, ], and > (the first two mirror Vim; the second two are completely arbitrary and subject to change).

I would argue that the last two are not arbitrary at all, and instead, excellent mnemonics! Considering that the first two mirror Vim (:h text-objects), this would be the completed table:

Target Alias Mnemonic
b ) b(lock)
B } B(lock)
r ] r(ectangle bracket)
a > a(ngle bracket)

Technically, it's a square bracket. I like the mnemonic less, but I leave it to you:

Target Alias Mnemonic
r ] (squa)r(e bracket)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant