owncloud-archive / documents

ownCloud Documents is collaborative editing of rich-text documents.
http://owncloud.org/
137 stars 55 forks source link

Add "New ODT File" in the files' app's "New" menu #80

Open PVince81 opened 10 years ago

PVince81 commented 10 years ago

Currently, the files app makes it possible to create TXT files.

It would be good it if the document's app could provide a "Create ODT" entry in that menu as well. The menu entry should only appear when the documents app is enabled in ownCloud.

I'm not sure how easy it is to insert an entry there from an app, feel free to assign this to me if needed :-)

PVince81 commented 10 years ago

CC @owncloud/designers

Still need to think of a good label.

PVince81 commented 10 years ago

I had a look at this and it seems that currently it's possible to create an ODT file by clicking New->"Text Editor" then typing in "test.odt". This is because the menu doesn't auto-append an extension.

The question here is whether we'd want to change the behaviour and instead of creating an empty file it would first ask for a file name (as usual) and then open the editor directly. This means that when creating a text file, it will open the text editor if available. When creating an ODT file, it would open the Documents app for that file.

Also one question is whether we want to auto-add the extension and provide more file types there (based on which editor apps are installed, apps register themselves into that menu) or whether we want to keep a generic "Create new file" entry where the user must manually add the extension.

What do you think @owncloud/designers ?

jancborchardt commented 10 years ago

@PVince81 yeah man, good call. It would be cool to instead of the generic »New file« have a list of the available file types which can be handled by that ownCloud. So it would be text, ODT, … depending on what’s installed. And if you click that entry the editor for it would directly be fired up.

Can’t find the issue anymore but that should be the new flow: Starting up the editor directly instead of up front asking for a file name, creating a file, user needing to hunt down the file and click it to start actually working.

ghost commented 8 years ago

oC 9.0 will provide a way for apps to add such an entry: https://github.com/owncloud/core/pull/20051

jancborchardt commented 8 years ago

@VicDeo what do you think? An entry »New document« which automatically opens the Documents app with a new document.

samwilson commented 8 years ago

I have just been trying to install the Documents app with great trickery because I was testing with an empty document that I'd created by changing New file.txt to whatever.odt. It let me create the file, of course, but when I went to edit it I just got the spinner floating in a void under the formatting toolbar. So there's a chance that this method of creating new files has some flaws.

This is with OC 9.0.0.19 and Documents 0.12.0.