Simply Lock file from edits

Just would like a simply want to right click on a file or directory and be able to lock it from edits, so cursor doesnt accidentally edit a file I dont want edited.

1 Like

It makes sense, though every OS lets you write protect files already. Its
one cli commands away as temp workaround.

For now a good prevention from losing changes (though indirect) is frequent git commits so you dont lose changes but also see what was changed.

Unfortunately even when another extension prevents file writes (for various reasons) the user will have a hard time to figure out why it happens.

For sure, and I do the Git frequently, but I just found myself working on one page, and having to restore like 3 times because ai decided randomly to edit a different page that was not “done” but in a state of hold. So I thought ahh I probably can just right click, and say like prevent changes as a temporary option or something and couldn’t find that ability and figured I would shoot it out into the internet.

1 Like

can include a docstring at the top of the file detailing how it’s placeholder content. in my experience it’s usually respected, so long as it gets that part fed into it when it does the lookup