Use "mini buffer" panel instead of modal, for Search (Cmd-F
)
#24627
Replies: 2 comments
-
Nota bene: ==> Ideally I'd want to "merge" the current Search and Outline View functionality as the default Search behaviour, but not restricted to the current Outline View language syntax. eg:
Nota bene: |
Beta Was this translation helpful? Give feedback.
-
I've been using this in vim too with fzf. Use it all the time. Another idea that I've been tinkering with for my setup is to adjust the weight of items depending on the proximity to where the cursor is. |
Beta Was this translation helpful? Give feedback.
-
Check for existing issues
Describe the feature
When searching (via
Cmd-F
) in a document, currently in Zed a search result modal opens with a way to toggle (using unbound<
and>
icon buttons with the mouse.) The problem with this UI/UX for document search is there's no quick overview, only an indication for the amount of search results found and a way to step over them.A much faster and more insightful way (see screenshot) I've configured in Emacs Lisp (see screenshot) which I'd like to see implemented in Zed as well:
This way, searching for common keywords (for example
fn
orstruct
in Rust, ordef
in Python) provides a very convenient and quick alternative to visual code folding or a mini-map to provide overview and quick intra-document navigation via keyboard bindings.If applicable, add mockups / screenshots to help present your vision of the feature
For example, in this
main.rs
(Rust) file,The minibuffer search solution I envision (screenshot: my own Emacs configuration written in Emacs Lisp) for document search/filter...

... versus what it is now (same document, in Zed)

Beta Was this translation helpful? Give feedback.
All reactions