zed/crates/vim/test_data
Conrad Irwin bffde43c12
Improve vim undo (#9317)
The important change here is to ensure that undo never lands you in
visual mode; but we also take care to restore the selection the same way
vim does (visual line goes to beginning of line, visual block to the top
left, etc.).

To help make this behaviour feel right we also group any deletions that
started insert mode with the first text inserted.

Fixes: #7521

Release Notes:

- vim: Improved undo. It will now restore you to normal mode in the same
position as vim, and group deletions caused by `c` or `s` with the
concomitant insert.
([#7521](https://github.com/zed-industries/zed/issues/7521)).
2024-03-13 23:12:12 -06:00
..
neovim_backed_test_context_works.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_a.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_b.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_backspace.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_capital_f_and_capital_t.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_cc.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_0.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_b.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_backspace.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_case.json Add visual area repeating 2023-09-07 10:45:38 -06:00
test_change_e.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_end_of_document.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_end_of_line.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_gg.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_h.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_j.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_k.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_l.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_paragraph_object.json vim: Add support for ap and ip paragraph text objects (#7687) 2024-03-04 16:39:02 -07:00
test_change_sentence_object.json Fix remaining vim failures 2023-04-20 15:25:11 -06:00
test_change_surrounding_character_objects.json Fix neovim tests with angle brackets 2023-10-22 22:24:35 -06:00
test_change_w.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_change_word_object.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_clear_counts.json Fix 0 used in a count 2023-09-12 09:56:23 -06:00
test_comma_semicolon.json vim: fix t not being repeatable with , (#7007) 2024-01-30 09:17:19 +01:00
test_comma_w.json Work on tests 2024-01-21 22:00:35 -07:00
test_command_basics.json Flesh out v1.0 of vim : 2023-09-20 20:44:41 -06:00
test_command_goto.json Flesh out v1.0 of vim : 2023-09-20 20:44:41 -06:00
test_command_replace.json vim: Fix some dw edge cases 2023-09-27 23:09:09 -06:00
test_command_search.json Fix backward search from command 2023-09-20 20:44:42 -06:00
test_convert_to_lower_case.json Add support for u and U in vim visual mode 2024-01-28 15:13:09 -05:00
test_convert_to_upper_case.json Add support for u and U in vim visual mode 2024-01-28 15:13:09 -05:00
test_ctrl_d_u.json vim: Fix ctrl-u/ctrl-d 2023-09-26 22:28:04 -06:00
test_dd.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_0.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_b.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_end_of_document.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_end_of_line.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_gg.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_h.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_j.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_k.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_l.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_left.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_next_word_end.json Fix some bugs with vim objects 2023-10-22 21:44:34 -06:00
test_delete_paragraph_object.json vim: Add support for ap and ip paragraph text objects (#7687) 2024-03-04 16:39:02 -07:00
test_delete_sentence_object.json Fix remaining vim failures 2023-04-20 15:25:11 -06:00
test_delete_surrounding_character_objects.json Fix neovim tests with angle brackets 2023-10-22 22:24:35 -06:00
test_delete_to_adjacent_character.json add test_data 2024-01-26 20:02:59 -08:00
test_delete_to_end_of_line.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_delete_w.json vim: Fix some dw edge cases 2023-09-27 23:09:09 -06:00
test_delete_with_counts.json vim: Fix count handling to allow pre/post counts 2023-09-11 14:35:47 -06:00
test_delete_word_object.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_dot_repeat.json Fix 0 used in a count 2023-09-12 09:56:23 -06:00
test_end_of_document.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_end_of_line_with_neovim.json Vim mode: make motion::EndOfLine works with times. (#8591) 2024-03-01 14:00:31 +01:00
test_end_of_word.json Fix find_{,preceding}boundary to work on buffer text 2023-08-29 18:03:29 -07:00
test_enter_visual_line_mode.json Add a VisualBlock mode 2023-08-15 10:00:45 -06:00
test_enter_visual_mode.json Add a VisualBlock mode 2023-08-15 10:00:45 -06:00
test_enter.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_f_and_t.json Fix remaining vim failures 2023-04-20 15:25:11 -06:00
test_folds_panic.json Fix vim test recording 2023-09-20 12:01:04 -06:00
test_folds.json vim: Fix relative line motion 2023-08-25 14:40:04 -06:00
test_gg.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_h_through_unicode.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_h.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_increment_radix.json Fix panic in increment 2023-10-04 15:13:01 -06:00
test_increment_steps.json Fix single column vim selections 2023-10-20 11:17:19 -06:00
test_increment.json vim: add ctrl-a/ctrl-x 2023-09-27 19:49:31 -06:00
test_insert_end_of_line.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_insert_first_non_whitespace.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_insert_line_above.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_insert_with_counts.json vim: ALlow counts on insert actions 2023-09-11 18:09:47 -06:00
test_insert_with_repeat.json vim: ALlow counts on insert actions 2023-09-11 18:09:47 -06:00
test_j.json Use Horizontal ranges everywhere 2023-10-09 21:48:50 -06:00
test_jk.json Work on tests 2024-01-21 22:00:35 -07:00
test_join_lines.json add vim-specific J (with repeatability) 2023-09-07 11:08:07 -06:00
test_jump_to_end.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_jump_to_first_non_whitespace.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_jump_to_line_boundaries.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_k.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_l.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_matching.json Fix % when on the last character of the line 2023-07-01 13:51:11 -06:00
test_multiline_surrounding_character_objects.json Add | as a bracket and a motion 2023-10-22 22:17:34 -06:00
test_neovim.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_next_line_start.json Fix <Enter> to go to non-whitespace character 2023-08-18 12:24:39 -06:00
test_next_word_end_newline_last_char.json Fix Vim 'e' Behavior When Boundary Is Last Point on Line (#7424) 2024-02-06 20:25:56 -07:00
test_o.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_paragraph_object_with_landing_positions_not_at_beginning_of_line.json vim: Add support for ap and ip paragraph text objects (#7687) 2024-03-04 16:39:02 -07:00
test_paragraphs_dont_wrap.json Don't wrap on paragraphs 2023-10-06 10:32:15 -06:00
test_paste_visual_block.json Rewrite paste 2023-08-22 13:27:57 -06:00
test_paste_visual.json Rewrite paste 2023-08-22 13:27:57 -06:00
test_paste.json Rewrite paste 2023-08-22 13:27:57 -06:00
test_percent.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_previous_word_end.json vim: Implement Go To Previous Word End (#7505) 2024-02-15 16:15:31 -07:00
test_repeat_motion_counts.json vim: Fix count handling to allow pre/post counts 2023-09-11 14:35:47 -06:00
test_repeat_over_blur.json Fix some cases of broken repeat in vim 2024-01-18 13:20:08 -07:00
test_repeat_visual.json Add visual area repeating 2023-09-07 10:45:38 -06:00
test_repeated_cb.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_repeated_ce.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_repeated_cj.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_repeated_cl.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_repeated_word.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_selection_goal.json Clear SelectionGoal on input 2023-10-05 09:02:52 -06:00
test_singleline_surrounding_character_objects.json Fix some bugs with vim objects 2023-10-22 21:44:34 -06:00
test_start_end_of_paragraph.json vim: Fix edge-case in } when trailing newline is absent 2023-06-29 23:31:22 -06:00
test_substitute_line.json vim: Add S to substitute line 2023-09-01 13:13:59 -06:00
test_undo.json Improve vim undo (#9317) 2024-03-13 23:12:12 -06:00
test_visual_block_insert.json Fix edge-cases in visual block insert 2023-08-17 15:16:26 -06:00
test_visual_block_issue_2123.json Make vim visual block work better 2023-10-18 22:23:06 -06:00
test_visual_block_mode.json Fix zed-industries/community#1950 2023-08-25 11:34:07 -06:00
test_visual_change.json Fix vim selection to include entire range 2023-07-28 15:26:40 -06:00
test_visual_delete.json Add a VisualBlock mode 2023-08-15 10:00:45 -06:00
test_visual_line_change.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_visual_line_delete.json vim: Fix linewise copy of last line with no trailing newline 2023-08-24 00:00:12 -06:00
test_visual_object.json Fix visual objects 2023-08-17 17:13:23 -06:00
test_visual_paragraph_object.json vim: Add support for ap and ip paragraph text objects (#7687) 2024-03-04 16:39:02 -07:00
test_visual_sentence_object.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_visual_star_hash.json Don't toggle WHOLE_WORD in vim search 2024-01-19 10:58:55 -07:00
test_visual_word_object.json Fix find_{,preceding}boundary to work on buffer text 2023-08-29 18:03:29 -07:00
test_visual_yank.json Fix Y on last line with no trailing new line 2023-09-15 11:14:04 -06:00
test_w.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_window_bottom.json vim: Support counts for H and L motions (#7149) 2024-01-31 11:50:08 -07:00
test_window_middle.json vim: Add support for moving to first, middle and last visible lines (H, L, M) (#6919) 2024-01-29 20:58:24 -07:00
test_window_top.json vim: Support counts for H and L motions (#7149) 2024-01-31 11:50:08 -07:00
test_wrapped_lines.json Fix f,t on soft-wrapped lines 2023-09-08 10:16:46 -06:00
test_wrapped_motions.json Make vim visual block work better 2023-10-18 22:23:06 -06:00
test_x.json Use a more stable, readable serialization format for neovim-backed vim tests 2023-03-22 14:31:11 -07:00
test_zero.json Fix 0 used in a count 2023-09-12 09:56:23 -06:00