canola.nvim/lua/oil/adapters/trash
Barrett Ruth c6b4a7a07b
feat: add configurable file and directory creation permissions
Problem: files were always created with mode 0644 and directories
with 0755, hardcoded in fs.touch and uv.fs_mkdir. Users who need
different defaults (e.g. 0600 for security) had no config option.

Solution: add new_file_mode (default 420 = 0644) and new_dir_mode
(default 493 = 0755) config options, passed through to fs.touch and
uv.fs_mkdir in the files and mac trash adapters. The fs.touch
signature accepts an optional mode parameter with backwards
compatibility (detects function argument to support old callers).
Local cache directories (SSH, S3) continue using standard system
permissions rather than the user-configured mode.

Based on: stevearc/oil.nvim#537
2026-02-20 20:26:07 -05:00
..
windows fix(trash-win): don't hang when shellslash is enabled (#592) 2025-03-19 15:10:58 -07:00
freedesktop.lua fix(trash): update freedesktop trash specification url 2026-02-20 16:15:27 -05:00
mac.lua feat: add configurable file and directory creation permissions 2026-02-20 20:26:07 -05:00
windows.lua lint: use more specific type for internal entries 2025-10-15 10:42:52 -07:00