zedapp / zed

Rethinking code editing.
http://zedapp.org
MIT License
2.22k stars 162 forks source link

Zed needs wdired mode. #521

Open ghost opened 9 years ago

ghost commented 9 years ago

I think wdired might be the one last feature that has me occaisionally reaching for emacs from time to time.

If you're unfamiliar, it works like this: You open a directory in emacs, and it shows you a list of files in that directory. If you then type C-x C-q, the buffer becomes writable, at which point you can use the full power of emacs to do arbitrary text transforms on the files in the directory. In short, batch file renaming on steroids. When you're done, C-c C-c saves the changes.

I guess such a feature would only work in the node version. Can you give any pointers to implement something like this? Would need to coordinate between a few parts of zed:

a) be able to choose directories in the goto bar b) open directories in new zed::dir mode which handles custom keybinding for saving changes c) some small wrapper around node fs code that exposes a file batch renaming API into zed. d) anything else?

I'm guessing this couldn't be implemented as a plugin because you'd also have to expose the file-renaming logic through the sandbox API which might not be a good idea.

Would love to hear your thoughts on this.