feature request: set modifiable
to true if the user is in the directory group
#342
Closed
1 task done
Labels
Did you check existing requests?
Describe the feature
Currently, when checking if a buffer should be modifiable, it only checks if the group is the same group as what neovim is opened with, it would be nice if it would check if the user is in the group regardless if they have opened neovim with the specific group that the folder needs.
Provide background
I'm trying to edit files belonging to another group, but although I'm in the group needed for the directory I'm trying to open it still sets modifiable as false since I haven't opened neovim with the specific group. To get around this I can just set modifiable to true or run
sg GROUPNAME "nvim ...."
but it's quite tedious to remember to do so.What is the significance of this feature?
nice to have
Additional details
Not quite sure how you'd want this to be implemented, we could read from /etc/group and check if the user is part of the group.
Or more simply, split
vim.fn.system("id -G")
and check if the directory's group id is in the result.I'd be happy to implement this
The text was updated successfully, but these errors were encountered: