Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Read-Only File Opening Options in Xed, also from the command line #670

Open
maxheise opened this issue Jan 15, 2025 · 0 comments

Comments

@maxheise
Copy link

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant