richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Declarative ui: convert file to a different format like .docx->.md

Open tobiasKaminsky opened this issue 4 months ago • 2 comments

Related to https://github.com/nextcloud/files-clients/issues/86#issuecomment-3199249342

With Declarative UI any server app can add interactions dynamically to Files clients. This reduces code on client side and gives lots of opportunities to display simple stuff in a native way or interact in an easy way.

To have a starting set, we discussed and defined some actions. One action is to offer an menu entry in context menu to convert a docx file to md. (We can add later more).

To do so:

  • add info to capability like https://github.com/tobiasKaminsky/declarativetest/blob/main/lib/Capabilities.php#L29
  • create an endpoint that can receive a fileID and create a MD file out of it

tobiasKaminsky avatar Aug 20 '25 07:08 tobiasKaminsky

Being implemented in the Pandoc app, most likely: https://github.com/mejo-/pandoc/pull/302

elzody avatar Sep 16 '25 16:09 elzody

File conversion is a server API so we should implement it there so it works for all available conversion types: https://github.com/nextcloud/server/pull/49922

juliusknorr avatar Oct 09 '25 12:10 juliusknorr