This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Enhancement: Saving a read-only file #107
Open
Description
Saving a read-only file in Atom is not possible, it results in an error (Atom Issue #9056). I looked into implementing such a feature, text-buffer seems to be a good place. Please take a look at my implementation. My question is:
- Is text-buffer an appropriate place for this functionality?
- I would like to avoid checking the read-only attribute prior to every save operation, which is why my implementation does this when a save fails. This works quite well, the only problem being that the error message in Atom is still visible. I don't see any obvious/clean way of suppressing this error message. If anyone has an idea, please let me know.
Metadata
Metadata
Assignees
Labels
No labels