zed/crates/vim/src
fletcher gornick cfc3b7de05
vim: Retain search direction upon search submit (#16754)
Before, when using `?` and `#` for backwards search it would initially
search for the previous match, but upon subsequent inputs to `n` and
`N`, `n` is always treated as "forward" and `N` is always treated as
"backward", instead of continuing the search direction.

now, if i use `?` or `#` for backward search, `n` will go to the
previous selection, and `N` will go to the next. Functionality stays the
same for `/` and `*`.

Release Notes:

- vim: Fixed `n` direction after searching backwards

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2024-08-27 18:50:19 -06:00
..
digraph Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00
normal vim: Retain search direction upon search submit (#16754) 2024-08-27 18:50:19 -06:00
test vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
change_list.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
command.rs Use split direction preferences more (#16679) 2024-08-22 11:13:33 -06:00
digraph.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
insert.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
mode_indicator.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
motion.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
normal.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
object.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
replace.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
state.rs vim: Add Smart Relative Line Number (#16567) 2024-08-26 21:17:21 -06:00
surrounds.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
test.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00
vim.rs vim: Add Smart Relative Line Number (#16567) 2024-08-26 21:17:21 -06:00
visual.rs vim: Improve lifecycle (#16477) 2024-08-20 20:48:50 -06:00