jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
19.4k stars 763 forks source link

how to remove cp/mv confirmation prompt while copying/moving files/folders #1916

Closed king1x32 closed 3 months ago

king1x32 commented 4 months ago

Similar to issue #1140 but for cp/mv. I think having a prompt for that action session is okay as done with rm. I haven't found answer in the docs - sorry if it's there and I missed it.

KlzXS commented 4 months ago

If I understood you question correctly you want to skip the interactive prompt for cp/mv just as you can skip it for rm.

Currently there is no builtin option for that. There is no option to overwrite all.

amitzionii commented 3 months ago

I don't know how recommended it is. If you are really eager, the following patch will cause cp and mv to not prompt for confirmation in case of overwriting. https://github.com/jarun/nnn/compare/master...amitzionii:nnn:patch-1

jarun commented 3 months ago

Sorry no option is available and no plans to do so. It's a trivial change to do so. Please patch the code locally.