zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.44k stars 2.05k forks source link

Search field acts as multiline when pasting with no visual indicator #11853

Open mspanc opened 1 month ago

mspanc commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I have copy-pasted some regexes to the search field. I was surprised they do not work, and I found out that previous regexes are still present as subsequent lines. I am able to scroll down the field using touchbar but there's no visual indicator that there's more than 1 line in the field.

Environment

Zed: v0.134.4 (Zed) OS: macOS 14.1.2 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

https://github.com/zed-industries/zed/assets/389651/9cec6d50-7393-4e06-9165-9ef1b3f43720

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

2024-05-15T13:44:55+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:44:55+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:44:56+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:44:56+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:44:56+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:44:56+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:44:56+02:00 [ERROR] unexpected item event after pane was dropped
2024-05-15T13:45:03+02:00 [INFO] open paths ["/Users/xx/Downloads/xx.ndjson"]
2024-05-15T13:46:46+02:00 [ERROR] crates/search/src/buffer_search.rs:798: oneshot canceled
2024-05-15T13:46:49+02:00 [ERROR] crates/search/src/buffer_search.rs:798: oneshot canceled
2024-05-15T13:47:08+02:00 [ERROR] crates/search/src/buffer_search.rs:798: oneshot canceled
2024-05-15T13:47:20+02:00 [ERROR] crates/search/src/buffer_search.rs:798: oneshot canceled
2024-05-15T13:47:21+02:00 [ERROR] crates/search/src/buffer_search.rs:798: oneshot canceled
2024-05-15T13:47:44+02:00 [ERROR] crates/search/src/buffer_search.rs:798: oneshot canceled
jaydenseric commented 1 month ago

Also, it seems there is no way to make the search and replace inputs text-areas to be able to see multiple lines at once. Multiline search and replace is something I do every day in project work.