Skip to content

[Feature Request]: Allow opening/editing of arbitrary filetypes #502

@HAV0X1014

Description

@HAV0X1014

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions