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: Improve behaviour around read-only file editing #8630

Open
IanKemp opened this issue Jul 28, 2020 · 1 comment
Open

Feature request: Improve behaviour around read-only file editing #8630

IanKemp opened this issue Jul 28, 2020 · 1 comment

Comments

@IanKemp
Copy link

IanKemp commented Jul 28, 2020

Currently, if you open a read-only file in NPP and start typing in it, your keystrokes are simply discarded with no indication that this is happening.

A better option would be to play the default Windows beep sound when a user types in a read-only document, to warn them their actions aren't doing what they think.

An even better option would be to popup a dialog offering to make a read-only document non-read-only if a user starts typing in it.

The best option would be to have an "Automatically clear read-only flag on document edit" option under Settings > Preferences. If false (default) it retains the same behaviour as current (optionally with the above two suggested enhancements), if true it auto unsets the read-only flag as soon as the user starts typing in a read-only document.

@CorwinKeneth
Copy link

An even better behavior would be to allow editing a read-only file, but to ask for a different filename when the user tries to save it. Basically, to treat "Save" hotkey as "Save as..." if the file is read-only.

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

2 participants