broot icon indicating copy to clipboard operation
broot copied to clipboard

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

Open apraga opened this issue 1 year ago • 3 comments

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.

apraga avatar Jul 24 '24 16:07 apraga

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

Canop avatar Jul 24 '24 16:07 Canop

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 ?

apraga avatar Jul 24 '24 20:07 apraga

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

Canop avatar Jul 24 '24 20:07 Canop