ZIm/crates/vim/src
ᴀᴍᴛᴏᴀᴇʀ 95b06097ee
Add support for auto surround (#13217)
![result](https://github.com/zed-industries/zed/assets/32017007/c400081f-be5d-48fa-994f-90a00e2be359)

In the past, Zed used a single switch called `autoclose` to control both
`autoclose` and `auto_surround` functionalities:
+ `autoclose`: when input '(', append ')' automatically.
+ `auto_surround`: when select text and input '(', surround text with
'(' and ')' automatically.

This PR separates `auto_surround` from `autoclose` to support `<`. 

Previously, if `autoclose` of `<` was set to `false`, `auto_surround`
couldn't be used. However, setting `autoclose` to `true` would affect
the default behavior of simple expression. For example, `a < b` would
become `a <> b`.

For more information, see #13187.

Fix #12898.

Release Notes:

- Added support for `auto_surround`
([#12898](https://github.com/zed-industries/zed/issues/12898)).
2024-06-20 12:48:46 +03:00
..
normal vim gigv (#13028) 2024-06-14 10:16:59 -06:00
test Multicursor vim registers (#13025) 2024-06-13 20:32:58 -06:00
change_list.rs vim test redux (#11709) 2024-05-11 14:04:05 -04:00
command.rs vim test redux (#11709) 2024-05-11 14:04:05 -04:00
editor_events.rs Use UpdateGlobal accessors in more places (#11925) 2024-05-16 13:30:04 -04:00
insert.rs Fix ctrl-r with no register (#13184) 2024-06-17 22:17:33 -06:00
mode_indicator.rs vim: Display pending keys in Vim mode indicator (#13195) 2024-06-18 13:30:18 +02:00
motion.rs Fix dw at the end of a soft wrapped line (#13065) 2024-06-14 13:18:28 -06:00
normal.rs vim gigv (#13028) 2024-06-14 10:16:59 -06:00
object.rs Multicursor vim registers (#13025) 2024-06-13 20:32:58 -06:00
replace.rs vim test redux (#11709) 2024-05-11 14:04:05 -04:00
state.rs vim: ctrl-r while we're on a register kick (#13085) 2024-06-14 22:38:38 -06:00
surrounds.rs Add support for auto surround (#13217) 2024-06-20 12:48:46 +03:00
test.rs lsp: Revert URL type change (#13193) 2024-06-18 12:39:56 +02:00
vim.rs Fix ci" on a brazillian keyboard (#13185) 2024-06-17 22:38:36 -06:00
visual.rs vim gigv (#13028) 2024-06-14 10:16:59 -06:00