ZIm/crates/vim/src
Dino 9a6e8a19b5
vim: Add horizontal scrolling support in vim mode (#32558)
Release Notes:

- Added initial support for both `z l` and `z h` in vim mode

These changes relate to #17219 but don't yet close the issue, as this
Pull Request is simply adding support for horizontal scrolling in vim
mode and actually moving the cursor to the correct column in the current
row will be handled in a different Pull Request.

Some notes on these changes:

- 2 new default keybindings added to vim's keymap
    - `z l` which triggers the new `vim::ColumnRight` action
    - `z h` which triggers the new `vim::ColumnLeft` action
- Introduced a new `ScrollAmount` variant, `ScrollAmount::Column(f32)`
to represent horizontal scrolling
- Replaced usage of `em_width` with `em_advance` to actually scroll by
the width of the cursor, instead of the width of the character

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2025-06-13 00:17:15 -06:00
..
digraph Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00
normal vim: Add horizontal scrolling support in vim mode (#32558) 2025-06-13 00:17:15 -06:00
test Fix matching braces in jsx/tsx tags (#32196) 2025-06-05 18:10:22 -07:00
change_list.rs Add a way to navigate between changes (#28891) 2025-04-16 14:09:17 -06:00
command.rs Add :delm[arks] {marks} command to delete vim marks (#31140) 2025-06-02 13:18:28 -06:00
digraph.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
helix.rs Add Helix implementation for Motion::FindForward and Motion::FindBackward (#31547) 2025-06-02 22:15:21 -06:00
indent.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
insert.rs Honor default_mode in NormalBefore (#29518) 2025-04-28 08:51:06 -06:00
mode_indicator.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
motion.rs Fix matching braces in jsx/tsx tags (#32196) 2025-06-05 18:10:22 -07:00
normal.rs vim: Fix add empty line (#30987) 2025-06-02 09:49:31 -06:00
object.rs vim: Create anyquotes, anybrackets, miniquotes, and minibrackets text objects (#26748) 2025-04-29 22:09:27 +00:00
replace.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
rewrap.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
state.rs Add :delm[arks] {marks} command to delete vim marks (#31140) 2025-06-02 13:18:28 -06:00
surrounds.rs vim: Add some forced motion support (#27991) 2025-04-11 11:12:30 -06:00
test.rs vim: Show 'j' from jk pre-emptively (#32007) 2025-06-06 14:11:51 -06:00
vim.rs editor: Fix select when click on existing selection (#32365) 2025-06-09 11:58:06 +05:30
visual.rs Fix panic in vim selection restoration (#29251) 2025-04-22 22:28:13 -06:00