ZIm/assets/keymaps
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
..
linux Cleanup comments in linux keymaps (#32333) 2025-06-08 09:02:52 +00:00
macos Cursor keymap: Add cmd-enter to submit inline assistant (#32295) 2025-06-07 16:37:45 -04:00
default-linux.json Add git: open modified files action (#32347) 2025-06-12 13:56:10 -04:00
default-macos.json Add git: open modified files action (#32347) 2025-06-12 13:56:10 -04:00
initial.json Fix "j" key latency in vim mode with "j k" keymap (#31163) 2025-06-05 13:16:59 -06:00
storybook.json keymap: Update Prev to Previous for consistency (#25909) 2025-03-03 17:44:49 +05:30
vim.json vim: Add horizontal scrolling support in vim mode (#32558) 2025-06-13 00:17:15 -06:00