zed/crates/vim/test_data
Vishal Bhavsar 31e9526544
vim: Add support for moving to first, middle and last visible lines (H, L, M) (#6919)
This change implements the vim
[motion](https://github.com/vim/vim/blob/master/runtime/doc/motion.txt)
commands to move the cursor to the top, middle and bottom of the visible
view. This feature is requested in
https://github.com/zed-industries/zed/issues/4941.

This change takes inspiration from
[crates/vim/src/normal/scroll.rs](https://github.com/zed-industries/zed/blob/main/crates/vim/src/normal/scroll.rs).

A note on the behavior of these commands: Because
`NeovimBackedTestContext` requires compatibility with nvim, the current
implementation causes slightly non-standard behavior: it causes the
editor to scroll a few lines. The standard behavior causes no scrolling.
It is easy enough to account for the margin by adding
`VERTICAL_SCROLL_MARGIN`. However, doing so will cause test failures due
to the disparity between nvim and zed states. Perhaps
`NeovimBackedTestContext` should have a switch to be more tolerant for
such cases.

Release Notes:

- Added support for moving to top, middle and bottom of the screen in
vim mode (`H`, `M`, and `L`)
([#4941](https://github.com/zed-industries/zed/issues/4941)).
2024-01-29 20:58:24 -07:00
..
neovim_backed_test_context_works.json
test_a.json
test_b.json
test_backspace.json
test_capital_f_and_capital_t.json
test_cc.json
test_change_0.json
test_change_b.json
test_change_backspace.json
test_change_case.json
test_change_e.json
test_change_end_of_document.json
test_change_end_of_line.json
test_change_gg.json
test_change_h.json
test_change_j.json
test_change_k.json
test_change_l.json
test_change_sentence_object.json
test_change_surrounding_character_objects.json
test_change_w.json
test_change_word_object.json
test_clear_counts.json
test_comma_semicolon.json
test_comma_w.json
test_command_basics.json
test_command_goto.json
test_command_replace.json
test_command_search.json
test_convert_to_lower_case.json
test_convert_to_upper_case.json
test_ctrl_d_u.json
test_dd.json
test_delete_0.json
test_delete_b.json
test_delete_end_of_document.json
test_delete_end_of_line.json
test_delete_gg.json
test_delete_h.json
test_delete_j.json
test_delete_k.json
test_delete_l.json
test_delete_left.json
test_delete_next_word_end.json
test_delete_sentence_object.json
test_delete_surrounding_character_objects.json
test_delete_to_adjacent_character.json
test_delete_to_end_of_line.json
test_delete_w.json
test_delete_with_counts.json
test_delete_word_object.json
test_dot_repeat.json
test_end_of_document.json
test_end_of_word.json
test_enter.json
test_enter_visual_line_mode.json
test_enter_visual_mode.json
test_f_and_t.json
test_folds.json
test_folds_panic.json
test_gg.json
test_h.json
test_h_through_unicode.json
test_increment.json
test_increment_radix.json
test_increment_steps.json
test_insert_end_of_line.json
test_insert_first_non_whitespace.json
test_insert_line_above.json
test_insert_with_counts.json
test_insert_with_repeat.json
test_j.json
test_jk.json
test_join_lines.json
test_jump_to_end.json
test_jump_to_first_non_whitespace.json
test_jump_to_line_boundaries.json
test_k.json
test_l.json
test_matching.json
test_multiline_surrounding_character_objects.json
test_neovim.json
test_next_line_start.json
test_o.json
test_paragraphs_dont_wrap.json
test_paste.json
test_paste_visual.json
test_paste_visual_block.json
test_percent.json
test_repeat_motion_counts.json
test_repeat_over_blur.json
test_repeat_visual.json
test_repeated_cb.json
test_repeated_ce.json
test_repeated_cj.json
test_repeated_cl.json
test_repeated_word.json
test_selection_goal.json
test_singleline_surrounding_character_objects.json
test_start_end_of_paragraph.json
test_substitute_line.json
test_visual_block_insert.json
test_visual_block_issue_2123.json
test_visual_block_mode.json
test_visual_change.json
test_visual_delete.json
test_visual_line_change.json
test_visual_line_delete.json
test_visual_object.json
test_visual_sentence_object.json
test_visual_star_hash.json
test_visual_word_object.json
test_visual_yank.json
test_w.json
test_window_bottom.json
test_window_middle.json
test_window_top.json
test_wrapped_lines.json
test_wrapped_motions.json
test_x.json
test_zero.json