Canop / broot

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

not a known internal: cp #815

Closed Schweber closed 9 months ago

Schweber commented 9 months ago

The dystroy website lists :cp {newpath} as an internal. However, if i add { invocation: "backup", shortcut: "tb", execution: ":cp {file}~", leave_broot: false } to verbs.hjson and launch br, it says Bad configuration: not a known internal: cp.

Is the documentation outdated or am i doing something wrong? I am using broot 1.30.2

Canop commented 9 months ago

The documentation is wrong, and I have no idea how I ended up pasting this line about cp in it. Thanks for noticing. I guess I have to check the whole table now.

You probably know it already, but for your backup verb, the correct execution, given that cp isn't an internal, would be execution: "cp {file} {file}~".

Canop commented 9 months ago

This internal table is full of errors... I have to regenerate it from the code

Schweber commented 9 months ago

The documentation is wrong, and I have no idea how I ended up pasting this line about cp in it. Thanks for noticing. I guess I have to check the whole table now.

You probably know it already, but for your backup verb, the correct execution, given that cp isn't an internal, would be execution: "cp {file} {file}~".

I didn't know that (it makes sense if i think about it though :-), thank you for pointing it out!

Canop commented 9 months ago

I fixed the table of internals. There really was a lot of errors...

Schweber commented 9 months ago

Thanks!