nvim-telescope / telescope-file-browser.nvim

File Browser extension for telescope.nvim
MIT License
1.6k stars 89 forks source link

feat: mode option for files and directories #360

Closed LeFrosch closed 4 months ago

LeFrosch commented 4 months ago

Hi! While using this plugin I had problems with the default permissions used to create new folders (plenary.nvim uses 0700 to create directories). I could not find any option to change the permissions for newly create directories. Therefore, this PR adds the following options:

I took the defaults from the Path.mkdir and Path.touch methods from plenary.nvim.

jamestrew commented 4 months ago

Thanks, that's strange that plenary's default is 700. I didn't notice that. I wonder if that's an error.

But I would actually prefer not to have to take on these new options. Rather I would like to change the default to 755, the default for mkdir. I think the default for Path.touch matches up with the default for touch.

Is that adequate for you?

LeFrosch commented 4 months ago

I understand that you do not want to add these options. Changing the default to 755 for mkdir would also solve my problem. Thanks for the support.

jamestrew commented 4 months ago

Thanks, I'll close this over https://github.com/nvim-telescope/telescope-file-browser.nvim/pull/361