Description
xed - Version 3.6.6
$ cat /etc/linuxmint/info | grep DESC
DESCRIPTION="Linux Mint 22 Wilma"
Hello,
I would like to propose adding a feature to open files in read-only mode both from the GUI and the command line.
This functionality would be particularly useful for preventing accidental modifications, especially when dealing with sensitive or important files.
Additionally, for files that are shared, i.e. such as those synchronized via Nextcloud or similar services, read-only mode ensures file integrity and avoids unintentional edits by the user.
Command Line Option, something like:
$ xed --ro=./myfile1.txt --ro=./myfile2.txt --ro=./myfile3.txt --ro=./myfile4.txt
To open read-only from the command line
GUI Integration, File Chooser Dialog:
Add a checkbox for "Open as Read-Only" when selecting files in the file chooser dialog.
GUI Integration, Toggle Read-Only Mode:
It would also be nice to allow toggling a file between read-only and writable modes within the GUI. However, this is open to debate; if a file is opened as read-only, the user likely has a reason for doing so. Perhaps the ability to toggle between read-only and writable modes could be hidden or disabled unless explicitly enabled in Xed’s settings.
I am not sure how extensions work in Xed, but perhaps all this functionality for opening files in read-only mode could be implemented as an extension.
Thank you for considering my feature request! :)