Giter VIP home page Giter VIP logo

Comments (6)

lachlan-00 avatar lachlan-00 commented on June 19, 2024 4

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

from files_texteditor.

Psy-Virus avatar Psy-Virus commented on June 19, 2024 2

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...

from files_texteditor.

greenorca avatar greenorca commented on June 19, 2024 2

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).

from files_texteditor.

Psy-Virus avatar Psy-Virus commented on June 19, 2024

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;

from files_texteditor.

k4tfish avatar k4tfish commented on June 19, 2024

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?

from files_texteditor.

Psy-Virus avatar Psy-Virus commented on June 19, 2024

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

from files_texteditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.