Text: Support plain text files

Created on 14 May 2019  路  9Comments  路  Source: nextcloud/text

The app should also support editing plain text files without formatting.

enhancement priority

Most helpful comment

@juliushaertl I don鈥檛 remember exactly. Let鈥檚 go with what @agru and you say and _don鈥檛_ render Markdown for plain text .txt documents. :) And also don鈥檛 show the formatting controls.

Then it鈥檚 also fine that it takes precedence over the files_texteditor since then it鈥檚 exactly the same, but with possibility of collaboration.

All 9 comments

@juliushaertl which milestone would you set for this?

Let's do 3.0 since I haven't looked how this could be implemented.

This app already takes precedence over the normal text editor included to Nextcloud. So a file with the extension *.txt is opened in the Text app. But the formatting of text should then be disabled by default. Otherwise users will add Markdown-code to plain text files. # #

@agru that's exactly the plan as described in the first post :)

The app should also support editing plain text files _without formatting_.

Just noticed this when switching to this app. IMO it should not be called text editor, but rather markdown editor, document editor, or some such until it can support plain text files without formatting. What happen if one open a text file, edit it and saves. It would ruin the file with md syntax in it. Perhaps removing important data.

@jancborchardt maybe there was a misunderstanding then on my side, because I thought you mentioned to even render markdown for .txt files? I fully agree with @agru that it should not render markdown syntax in that case.

Hi @jancborchardt - as @juliushaertl mentioned there is a slight difference between "should support" and "should not". In my opinion it is already a problem at the moment that the app "Text" takes precedence in editing *txt files. If they are clicked they are opened in "Text" if this app is installed and there is no possibility to open them in the normal core app "Text editor". And the same problem exists for Markdown-files. I also have the app "Markdown editor" from Robin Appelman installed. "Text" also takes precedence over this app.

I would not mind this taking precedence over the normal core Text app as long as it has a plain mode that doesn't add markdown or other styles to the file as it would ruin the file.

Perhaps a config option to what files should be opened in this app would be useful, if possible?

@juliushaertl I don鈥檛 remember exactly. Let鈥檚 go with what @agru and you say and _don鈥檛_ render Markdown for plain text .txt documents. :) And also don鈥檛 show the formatting controls.

Then it鈥檚 also fine that it takes precedence over the files_texteditor since then it鈥檚 exactly the same, but with possibility of collaboration.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doobry-systemli picture doobry-systemli  路  3Comments

jeyca picture jeyca  路  5Comments

andynd picture andynd  路  3Comments

juliushaertl picture juliushaertl  路  3Comments

skjnldsv picture skjnldsv  路  3Comments