Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open any file reguardless of extension #114

Open
jsProj opened this issue Sep 16, 2018 · 6 comments
Open

Open any file reguardless of extension #114

jsProj opened this issue Sep 16, 2018 · 6 comments

Comments

@jsProj
Copy link

jsProj commented Sep 16, 2018

Not really an issue per-se, but it would be nice if i would be able to force any file to open, and with forcing a file to open use the text mode, i'm editing editor.js, but i'm not quite sure how to do it.

@Psy-Virus
Copy link

Hey there, I read the issues and rather than opening another one, I guess this one is mostly related to my question.

I saw that you are able to add, remove and manipulate Mimetypes in the editor.js file. The question is, will this file be overwritten on updates? Or will it be merged?

If it will be overwritten, all changes you make are obsolete as soon as there's an update. And you would have to update the Mimetypes again.

This also seems to be a repeating issue/question.
Other related issues: #15; #24;

@lachlan-00
Copy link

This would be good, I've got plain text files that won't open even though they're text/plain mimetypes

@k4tfish
Copy link

k4tfish commented Apr 22, 2019

Same here and I have a lot of plain text files without extensions.
Is it possible to make that working by changing the mime type config of nc?

@Psy-Virus
Copy link

Psy-Virus commented May 3, 2019

Well, I fixed the problems with mimetypes with the following:
https://docs.nextcloud.com/server/stable/admin_manual/configuration_mimetypes/index.html?highlight=mimetype

The mimetypemapping.json thingy at the bottom. After I reindexed my files, the files I added as text like ("cfg": ["text/plain"],) are opened with the text editor by default.

Actually I'm not sure if it was for cfg. But it works for all endings I configured this way.

EDIT: I placed the mimetypemapping.json right in the config folder

@Psy-Virus
Copy link

In my opinion, there should be a GUI version for the config. With a filter function. Should be quite easy to do. For someone who has time...

@greenorca
Copy link

The mime config seems to work well for specific file endings. It would be great if one could view/edit any file with the texteditor using the context menu in the regular file view (the one beside the share button, where delete, move, copy, detail functions are triggered). This would greatly improve usability for files without ending (e.g. Dockerfile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants