diff -r a1c36a6410f6 -r 10a5d6ce0906 docs/src/edit.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/src/edit.md Sat Mar 28 17:07:10 2020 +0100 @@ -0,0 +1,28 @@ +--- +title: 'dav edit' +--- + +**`dav edit [-pc] [-k ] [-V ] `** + +Downloads a resources and opens an editor. If there is no resource at the +specified location, it is attempted to create a fresh resource. +The resource is downloaded to a temporary file and re-uploaded only if you save +any changes to that file. + +The default editor `vi` can be changed with the `EDITOR` environment variable. + +This command transparently handles decryption and encryption. If you download +and open a plain text file and request content encryption (either by config or +by command line option) the file will be re-uploaded with content encryption. +However, a present file will keep its (plain text) file name in any case. + +**`-p`** disable file name encryption and decryption + +**`-c`** enable file name and content encryption + +**`-k `** use the specified key for encryption. The key must be configured in + the config.xml file + +**`-V `** downloads a specific version of the resource. Available versions can be listed with the *list-versions* command + +