Files
oak-gpui/crates
ᴀᴍᴛᴏᴀᴇʀ 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
..
2024-05-29 18:06:45 -07:00
2024-05-29 18:06:45 -07:00
2024-06-18 13:48:26 -06:00
2024-05-29 18:06:45 -07:00
2024-04-30 23:31:59 -06:00
2024-06-12 23:22:52 +03:00
2024-06-12 23:22:52 +03:00
2024-06-18 12:16:54 -07:00
2024-05-10 15:50:20 -06:00
2024-03-11 10:45:57 +01:00
2024-06-18 12:39:56 +02:00
2024-03-26 16:10:09 -07:00
2024-06-18 12:16:54 -07:00
2024-05-23 15:50:59 +02:00
2024-06-18 12:16:54 -07:00
2024-04-15 14:21:52 +02:00
2024-06-19 12:09:32 -04:00