WIP: Add to the file manager extension the option to edit a file.#1442
WIP: Add to the file manager extension the option to edit a file.#1442
Conversation
|
Copying over the specs from the issue:
For the last 2 points cc @juliushaertl? Similarly we could do that for the activity stream in the improved tray menu #877: If a synced file is txt/md/odt/etc the action button could say "Edit" (better wording welcome, but we are short on space).
|
|
The related server API PR for 18 is here: nextcloud/server#17625
@jancborchardt We probably should use the exposed apps name that is used for editing (e.g. Edit with Collabora Online) since there might be multiple apps you could open a file with. |
I wouldn’t expose the app name as this is not really relevant to regular people, it’s more confusing. :) It’s focused on Collabora Online, OnlyOffice and Text, and if there are multiple apps to edit with it should just pick 1 for simplicity. |
This comment has been minimized.
This comment has been minimized.
|
Then we could just use "Edit collaboratively" if only one editor is available, and show the names otherwise I'd say. |
The file can be edited in the browser via one of our apps Text, Collabora or OnlyOffice. Signed-off-by: Camila San <hello@camila.codes>
fcd1a3f to
17cda22
Compare
| QMimeDatabase db; | ||
| QMimeType type = db.mimeTypeForFile(fileData.localPath); | ||
| if (capabilities.hasRichDocuments() && capabilities.supportedRichDocumentsMimetypes().contains(type.name().toLatin1())){ | ||
| listener->sendMessage(QLatin1String("MENU_ITEM:EDIT") + flagString + tr("Edit via ") + capabilities.richDocumentsProductName()); |
There was a problem hiding this comment.
Just to clear this up, we only want it to say "Edit", right? No product name, no "… collaboratively". Can you confirm @karlitschek?
cc @camilasan fyi
There was a problem hiding this comment.
(Also, "Edit" should be the first in the list, before the Sharing entries – because you can also do that when the document is not shared.)
There was a problem hiding this comment.
@jancborchardt Yes. I would only say 'Edit'. The app that is used depends on the mime type and is not really important for the user.
There was a problem hiding this comment.
@karlitschek thanks, agreed!
| listener->sendMessage(QLatin1String("MENU_ITEM:EDIT") + flagString + tr("Edit via ") + capabilities.richDocumentsProductName()); | |
| listener->sendMessage(QLatin1String("MENU_ITEM:EDIT") + flagString + tr("Edit")); |
There was a problem hiding this comment.
While implementing this feature with OO, we found a small "problem": you can open also pdf files, which are not editable.
So we thought about "open (remotely)" instead of "edit" as this is more generic.
There was a problem hiding this comment.
@tobiasKaminsky can’t we just exclude PDF from it instead? Then the entry will simply say "Open in browser" as specified at #1442 (comment)
That’s much better than complicating the wording for the regular case.
|
So this can be closed as it’s superseded by #1735, right? :) @misch7 @camilasan |
|
This was fixed by #1735, closing this hence. :) |

The file can be edited in the browser via one of our apps Text,
Collabora or OnlyOffice.
TODO:
Answer: https://github.com/nextcloud/richdocuments/blob/master/docs/mobile_flow.md
"Basically it is checking if is supported and if it is. A simple post with the file id gets you the URL to open then there are some messages to handle etc. But I must admit I don't know them all by heart. But @tobiasKaminsky does"
Also see nextcloud-gmbh/server#14.