** Request Summary Request a FLIP toggle to make mousepad act in READONLY/VIEWER mode, or back into default EDITOR mode. ** Background Most of the time in this use-case, it's used as a VIEWER only, thus I'd like the file to be READ-ONLY so errant keystrokes aren't making changes to the file. That window is left open for weeks-months on the desktop, but on rare occasions I may want to edit the file, so I'd like to be able to toggle an option and switch it back to normal editing mode. Possibly this doesn't make sense... but it's one way I use Mousepad. The importance of this is likely low. ** Current Behavior Currently if accidentally make a change, a "*" appears before the filename at the top of the window telling me I make a change. If I notice that I usually hit ^Z to reverse it, this isn't as easy if it's done days later so it'll usually mean closing file & re-opening. ** Desired Behavior I have a menu option, or keystroke that can toggle READ ONLY or EDITOR mode allowing me to use it as a text viewer most of the time, and editor for the times I want to change the file. ** Current OS/package details Debian Buster/10/stable (though the box I'm accessing bugzilla with runs Ubuntu 20.10, and I can also test packages on most Xubuntu's and/or Debian Bullseye/11/sid if helpful, but where I use mousepad this way is currently debian_stable) mousepad: Installed: 0.4.1-2 Candidate: 0.4.1-2 Version table: *** 0.4.1-2 500 500 http://deb.debian.org/debian buster/main amd64 Packages
Can i will implement this feature?
Geany has a "read only" per-document setting, so looking at the source code could be helpful when implementing this feature for Mousepad. It offers a --read-only commandline option on top of that.
Dmitry, do you still consider implementing this feature? If yes, feel free to work on it.
Yes, Theo, i still want implement this feature. Now i'm working with bulk rename cli prefill options(and it almost implemented). This one will be next.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/mousepad/-/issues/50. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev