vim fixes for find&replace (#2995)

* allow replacing with the empty string to delete
* fix <enter> for ReplaceNext (in vim mode)

Release Notes:

- allow replacement to be empty
This commit is contained in:
Conrad Irwin 2023-09-20 16:42:39 -06:00 committed by GitHub
commit f4d4a2f41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 17 deletions

View file

@ -531,7 +531,7 @@
}
},
{
"context": "BufferSearchBar > VimEnabled",
"context": "BufferSearchBar && !in_replace > VimEnabled",
"bindings": {
"enter": "vim::SearchSubmit",
"escape": "buffer_search::Dismiss"