logoalt Hacker News

f311alast Wednesday at 2:48 PM14 repliesview on HN

Too bad they did not include better search UI into this release.

When you search, Zed opens a new tab, which I hate. Sometimes I just want to have a quick glance at some code and close the search using escape.

Telescope style search in vim, helix or JetBrains tools is so much better.

https://github.com/zed-industries/zed/pull/46478


Replies

pastel8739last Wednesday at 3:22 PM

Huh, I absolutely love Zed’s search UI. I just navigate back to my previous tab with ctrl-o when I’m done

show 2 replies
chuckadamslast Wednesday at 2:53 PM

Whereas I'm not a great fan of modals for anything where I'd like to refer back to what I'm working on. I guess I'd just prefer some tabs to open as a split by default and close with esc, maybe call them something like "ephemeral tabs"? Basically, steal some ideas from emacs.

show 2 replies
Aldipowerlast Wednesday at 3:39 PM

This. I tried Zed for an entire month, but this "search thing" drove me nuts. It is also slow. If you work in a large project search is absolutely essential. Too bad.. Back to Visual Studio Code.

show 1 reply
jeppesterlast Wednesday at 3:23 PM

I love the search in zed. If it was up to me it would open a new tab on every search rather than reusing the same tab, so that I didn't have to redo past searches.

The multibuffer result is so nice for "hands-on" search and replace.

show 1 reply
trymasyesterday at 6:50 AM

Personally I don't hate tab. Sometimes even it's more convenient to have a tab on the side with all the state, instead of reopening modal.

What I hate though is really unintuitive and "non-standard"[1] shortcuts in search tab.

For example "find in project": cmd+shift+f

Whereas for "find and replace in project" I'd expect: cmd+shift+r , but it's: first toggle find, then toggle find and replace. Ok, absolutely fine, but the keyboard shortcut to toggle is: cmd+shift+h - I never can remember it.

When already searching, for my "convenience", if I'd like to adjust my search or search for something new, I click cmd+shift+f and I am focused back to find input, but here's the kicker. Input have automatically changed to what word was under my cursor. So if I was looking for some long or weird string, I need to retype it again or find and copy/paste it again.

#first-world-problems though.

I got tired of babysitting vim/neovim and all it's plugins and use Zed for most of my editing. It has pretty good vim binding support and maybe I just need to remap some key bindings to have better search experience. Zed is much better at emulating vim than Cursor/VSCode.

[1] there's no standard obviously, but some things are the same/similar across most programs.

show 2 replies
cowboy_henklast Wednesday at 3:12 PM

Agreed, this is the main reason why I keep switching back to other editors.

friolast Wednesday at 11:05 PM

I use the television task described here (https://zed.dev/blog/hidden-gems-part-2) for that experience :)

malcolmgreaveslast Wednesday at 4:06 PM

> Sometimes I just want to have a quick glance at some code and close the search using escape.

How else are you going to have “a quick glance at code” *across* project files without using a new view for that? It sounds like you’re describing something impossible.

Zed’s across files search solves this in a similar way as other tools. Except that in zed you can also edit the code where your search results show up. Zed also has within file search.

show 3 replies
leshenkalast Wednesday at 6:54 PM

I can’t relate to that, I’ve also struggled with this decision for quite some time, but I’ve gotten used to it. What I hate is that it doesn’t open several search tabs if I need to look for several things at once.

masklinnlast Wednesday at 3:32 PM

> When you search, Zed opens a new tab, which I hate.

You also have to validate the search, it doesn't start off immediately on its own, which annoys me a lot more.

gnufiedlast Wednesday at 4:00 PM

I know not much about Zed and I am curious, can such changes be implemented via extensions?

show 1 reply
whalesaladlast Wednesday at 3:02 PM

That was og sublime/textmate behavior that I grew to miss with vscode, so was pleasantly surprised to see it exists in Zed.

selfawareMammallast Wednesday at 8:38 PM

I feel you. Same here.

smashahlast Wednesday at 3:23 PM

yeah its quite silly they decided to mess around with this universally standard behaviour. The search is the reason why i always end up going back to other vs code based IDEs for real work. I open zed for perf reasons and something quick.

Also now they've introduced this "agent first" layout which i cannot undo. They're strength is in perf, idk why try to reinvent the wheel w.r.t DX.

show 1 reply