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
43.96k stars 2.36k forks source link

File utilities via command palette #4687

Open mskri opened 1 year ago

mskri commented 1 year ago

Check for existing issues

Describe the feature

It would be convenient to create, duplicate, move, rename and delete files and directories via command palette. Basically what file utils extension for vscode enables you to do.

It's such convenient way to quickly rename file without having to find it on the project panel, move files around and to create multiple new directories in one go when moving a file. Moving file to a path that has directories that don't yet exist creates the missing directories.

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

Gif demoing the functionality of file utils extension for vscode.

https://github.com/sleistner/vscode-fileutils/raw/HEAD/images/demo.gif

ZombieHarvester commented 1 year ago

There are a few plugins for Sublime Text that provide similar functionality, creating and renaming files via hotkeys is very convenient.

For example shift-command-r opens file renaming/moving prompt

image

It's nice being able to do basic file operations without losing focus on code

sethherr commented 1 year ago

I really miss the functionality from the sublime plugin Advanced new file

cmd-alt-n to open up a command palette to enter the path for a new file.

(as @ZombieHarvester said, one of the plugins that provides similar functionality)

jabr commented 1 year ago

I'm now moving to Zed as my primary editor (from VSCode), and "advanced new file" is the only thing I've noticed missing so far.

https://github.com/Osmose/advanced-open-file https://marketplace.visualstudio.com/items?itemName=fayras.simple-new-file

danielcommesse commented 2 months ago

This is the main thing preventing me from fully trying out switching to Zed instead of vscode.