3 ms·
On the subject of surprising behaviour. I did something last week. I don't know what it was, but maybe some kind of fat-finger error. It randomly deleted 3-lin
by afandian 1y ago
On the subject of surprising behaviour. I did something last week. I don't know what it was, but maybe some kind of fat-finger error.
It randomly deleted 3-line chunks all across my codebase. No rhyme or reason. I was just about to commit a big change, so it was annoying.
It might have been a global search and replace, but there was no clue in the history. And I can't think what kind of regex it could have been.
Or maybe a bug in IPC with the language server?
Anyone got any clues about what I did?
(I love Zed, on Mac and Linux. Even went as far as buying a new graphics card as my 5-year-old one didn't have Vulcan support, which is pretty much mandatory for Zed)
- VGHN7XDuOXPAzol 1y agoJust a pure guess, but if you do a global find, you get a list of 3-line-ish chunks of context around search matches. If you then Ctrl+A to select all and press backspace, I wonder if that would delete all those 3-line chunks...
- afandian 1y agoThat's almost certainly it. I'd probably searched for common fragment. And 'select all' does indeed select across all of the search result buffers. Thanks!