-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Cosmic-edit only allows text files to be viewed and modified. Reading and sometimes modifying non-text files like images, binaries, and files of nonstandard formats that still contain plain-text data is not possible currently. Even renaming the file to have a .txt extension does not work.
An example of when this is actually useful is if you need to read metadata from an image file. Yes it shows a lot of gibberish, however you may still be able to read the text inside. Additionally, reading a PostgreSQL schema is another example I have. Also, who doesn't love opening a Windows EXE and reading "This program cannot be run in DOS mode." :P
I think this could be handled with a simple "Are you sure you want to open this file?" dialog that informs the user that the file they are attempting to open is not a standard text document, and thus may not appear how they expect it to. It would allow the user to inspect and edit files as desired, but also prevent accidental slowdowns or undefined behaviors.