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
50.51k stars 3.13k forks source link

VSCode style unified palettes #15896

Open lougreenwood opened 3 months ago

lougreenwood commented 3 months ago

Check for existing issues

Describe the feature

VS code allows users to easily change between the "file finder" palette & the "command palette" be pre-pending a > character in the file finder (or removing it in the command palette).

The implementation suggests that they have a single "palette" component which can switch between showing the "file finder" and the "command palette" (and I guess other palettes, outline etc...)


Looks like vscode has a unified palette when spawned with cmd-p, which supports the following prefixes. There are direct shortcuts for each too.


Zed seems to implement these as discrete components. For me the impact is added friction. I need to be more accurate in deciding which picker to select (when I'm in the zone, I often open the wrong palette), since if I get it wrong I need to escape out to close the wrong palette and then open the correct one.

Sometimes, if I need to execute a command, but I make a mistake and open the project search palette by accident and then go ahead and write the command before I realise I often find myself pressing cmd-shift-p to switch to the command palette (VS Code style) then this will actually open the top project file search result!

To address this, I'd suggest the following:

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

No response

notpeter commented 2 months ago

@lougreenwood I've edited your description above to include the various prefixes.