vim: Rename wrapping keybindings + document cursor wrapping (#25694)

https://github.com/zed-industries/zed/pull/25663#issuecomment-2686095807

Renamed the `vim::Backspace` and `vim::Space` actions to
`vim::WrappingLeft` and `vim::WrappingRight` respectively. The old names
are still available, but they are marked as deprecated and users are
advised to use the new names.

Also added a paragraph to the docs describing how to enable wrapping
cursor navigation.
This commit is contained in:
Asqar Arslanov 2025-03-05 18:54:30 +03:00 committed by GitHub
parent 2d050a8130
commit 3975d8ea93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 49 additions and 22 deletions

View file

@ -95,7 +95,7 @@ impl Vim {
.into_iter()
.filter_map(|selection| {
let end = selection.head();
let start = motion::backspace(
let start = motion::wrapping_left(
&map,
end.to_display_point(&map),
maybe_times.unwrap_or(1),