zed icon indicating copy to clipboard operation
zed copied to clipboard

Option • preserve input in command palette • upon reopening the palette

Open Ornataweaver opened this issue 1 year ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the feature

By adding this line in vscode, the input is preserved:

  // This preserves the palette's last input, in vscode:
  "workbench.commandPalette.preserveInput": true,

You can also make the option in the command palette settings section.

  // Command palette settings:
  "command_palette": {
    // Preserve the last input in the command palette when you reopen the palette.
    "preserve_input": true
  },

Please consider making the palette section in the settings for more flexibility.

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

For example, I type 'settings' in the Cursor editor's palette:

Screen Shot 2024-08-30 at 10 50 33



Then I close the palette and I open it again. I still have the phrase or word I put there:

Screen Shot 2024-08-30 at 10 51 12

Ornataweaver avatar Aug 30 '24 07:08 Ornataweaver

'order by most recent commands' is already implemented, thanks to Piotr Osiewicz. @osiewicz

  • https://github.com/zed-industries/zed/issues/6210

Ornataweaver avatar Aug 30 '24 07:08 Ornataweaver

'order by most recent commands' is already implemented, thanks to Piotr Osiewicz.

This isn't working (and never worked for me for the last year I've tried Zed). Here is the video of me trying to copy the relative path of a file via the command palette:

https://github.com/user-attachments/assets/e0c8b22a-5ae6-493f-80d6-85950f4fb8f4

I expect to see the "copy relative path" at the top of the list after I start typing "copy..."

stepankuzmin avatar May 09 '25 13:05 stepankuzmin

I've made a PR to address this here: https://github.com/zed-industries/zed/pull/30386

stepankuzmin avatar May 09 '25 14:05 stepankuzmin

Will a PR implementing this feature be acceptable?

sudormrfbin avatar Jul 30 '25 05:07 sudormrfbin