! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Feature request: read only toggle
Status:
RESOLVED: MOVED
Product:
Mousepad
Component:
General

Comments

Description Chris Guiver 2020-05-11 04:22:04 CEST
** 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
Comment 1 Dmitry Ovcharov 2020-05-11 16:33:24 CEST
Can i will implement this feature?
Comment 2 Theo Linkspfeifer editbugs 2020-05-12 19:19:29 CEST
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.
Comment 3 Theo Linkspfeifer editbugs 2020-05-22 11:49:01 CEST
Dmitry, do you still consider implementing this feature? If yes, feel free to work on it.
Comment 4 Dmitry Ovcharov 2020-05-22 13:23:44 CEST
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.
Comment 5 Git Bot editbugs 2020-05-24 01:34:33 CEST
-- 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

Bug #16826

Reported by:
Chris Guiver
Reported on: 2020-05-11
Last modified on: 2020-05-24

People

Assignee:
Dmitry Ovcharov
CC List:
1 user

Version

Target Milestone:
Mousepad 0.4.x

Attachments

Additional information