mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-23 00:50:35 +01:00
35595fe3c2
Currently, using cmd-f or cmd-shift-f to search while a modal is active (e.g. after cmd-t or cmd-p) doesn't do anything — you need to first close the modal manually before initiating a search. This PR allows these actions to run regardless of whether a modal is active. Some context: VSCode lets you do this too, and for me it's quite common to do a symbol search with cmd-t immediately followed by a regular search with cmd-shift-f if I don't find what I'm looking for, so having to close the modal first is slightly disruptive. cmd-t followed by cmd-p does dismiss the project symbols modal in order to display the file search modal, so it makes sense to me to also allow search actions to dismiss an active modal. Maybe this blunt fix has unintended consequences? If some types of modals shouldn't be dismissed when running cmd-f, or some actions shouldn't dismiss a currently active modal, then we'll have to go about it differently. Release Notes: - Added the ability to run search actions when a modal is currently active