Is your feature request related to a problem? Please describe.
When I was using files_texteditor, it allowed me to open files with pretty much any file extension, so long as the data was stored in plaintext format. This was especially useful for editing my website's .html and .css files on the fly. Since upgrading to Nextcloud 17, this functionality seems to have been removed when the default text editor changed. This means I must have that file synced to my computer and open it locally, but there are some instances where I might be using a public computer at a library, so that wouldn't be an option.
Describe the solution you'd like
Ideally, if a file format stores its data in a plaintext-like format (.html, .css, .json, .xml, etc.), Text should be able to open it
Describe alternatives you've considered
Switch back to files_texteditor, but I'm not sure that's a possibility anymore
Additional context
The only other context I can think of is specifically stating that I keep my website saved to another folder on my server, which I connect to using local external storage.
+1 for this, I used to be able to code my .cpp files on nextcloud for my school projects, now it just downloads the file.
As a quick fix we can extend the list in https://github.com/nextcloud/text/blob/master/src/helpers/mime.js#L38
Ideally the viewer should maybe also support wildcards just as the files apps file actions which also allows only matching for the mime part (text)
I would like to open asciidoc files without hiding the syntax.
As a quick fix we can extend the list in https://github.com/nextcloud/text/blob/master/src/helpers/mime.js#L38
I tried to add that fix as I would like do edit some files which are not editable yet. But I don麓t have that folder/file mentioned? Cannot find it, even with a search. Maybe you can give me a hint? (Not a nextcloud pro, so maybe too stupid ^^)
I tried to add that fix as I would like do edit some files which are not editable yet. But I don麓t have that folder/file mentioned? Cannot find it, even with a search. Maybe you can give me a hint? (Not a nextcloud pro, so maybe too stupid ^^)
Those file are not available in the release bundle since we use webpack to bundle all files in the src/ directory into javascript bundles. Checkout the development setup in our readme: https://github.com/nextcloud/text#-development-setup
Please make this an opt-in/out feature. I want to click my HTML-files, start a download and open them directly in a new tab. No hosting, no editing.
At the moment I have removed the Text app because it freezes the tab when opening larger HTML-files (10mb+) in the editor beyond blocking my workflow.
Edit: A workaround is editing MIME type handling, but it's hardly an end-user option so while the problem is fixed for me the request still stands. :+1:
I don't much care about programming syntax -- a separate code editor app might be better suited for that -- but I think support for more general-purpose markup languages would be a good thing.
++ org-mode
++ asciidoc
I know gitlab and github web editors both have some level of support for at least org-mode and asciidoc. Code could be borrowed.
Pull requests are very welcome for that. As mentioned the mimetypes are listed in https://github.com/nextcloud/text/blob/master/src/helpers/mime.js#L38
I'm the maintainer of Org-mode, let me know if we can help about this.
Is there a standardized mimetype for org files somewhere or should they be just considered as text/plain as it get it on my system:
$ file --mime-type test.org
test.org: text/plain
We have a _de facto_ mimetype text/org advertized on our website but it is not registered yet, we are working toward registering it. In the meantime, text/plain would be.
Most helpful comment
I don't much care about programming syntax -- a separate code editor app might be better suited for that -- but I think support for more general-purpose markup languages would be a good thing.
++ org-mode
++ asciidoc
I know gitlab and github web editors both have some level of support for at least org-mode and asciidoc. Code could be borrowed.