You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great if the configuration (config.toml) allows setting files/folders (even globs?) as read-only/no-edit.
I find myself inadvertently modifying files in .venv/ or node_modules/ when using gd et al.
So, can we provide a user or workspace config that would:
a) warn user when opening a file from one of these files/folders/globs
b) prevent user from :w writing the changes to disk
c) require user to :w! to write the changes by force
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#11586 has an idea to set a buffer to read-only.
Would be great if the configuration (config.toml) allows setting files/folders (even globs?) as read-only/no-edit.
I find myself inadvertently modifying files in .venv/ or node_modules/ when using
gdet al.So, can we provide a user or workspace config that would:
a) warn user when opening a file from one of these files/folders/globs
b) prevent user from
:wwriting the changes to diskc) require user to
:w!to write the changes by forceThanks
Beta Was this translation helpful? Give feedback.
All reactions