Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.52k stars 230 forks source link

Edit multiple filenames in a buffer (wdired-like interface) #914

Open apraga opened 1 month ago

apraga commented 1 month ago

Hi,

I really like the idea and execution of broot, thanks for that ! As an emacs user, the only thing that I’m missing is he ability to edit multiples filenames in a buffer. In emacs, wdired allows that : it transforms the current listing into an editable buffer and any modification will be propagated to the file system.

That is quite handy but needs an editor. It looks hard to do in my unexperienced opinion thouh Maybe a strategy similar to nushell https://github.com/nushell/nushell/pull/5381 could be doable, by opening an editor and write back the buffer ?

Just my 2 cents.

Canop commented 1 month ago

Sending all staged paths to a tool like https://github.com/marcusbuffett/pipe-rename perhaps ?

apraga commented 1 month ago

It could be a great solution ! I could not figure out how to gave it all the files at onces in verbs.json. With

{
        invocation: renamer
        apply_to: file
        external: "renamer {file}"
        leave_broot: false
    }

It only opens file one-by-one. Is it perhaps related t #444 ?

Canop commented 1 month ago

I'll try to solve that with the flags I mention on https://github.com/Canop/broot/pull/901#issuecomment-2224787902