aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/python_setup.vim
diff options
context:
space:
mode:
authorWillaaaaaaa <willaaaaaaa936@gmail.com>2026-08-05 03:24:35 +0800
committerGitHub <noreply@github.com>2026-08-04 15:24:35 -0400
commit7b03df5d5402bc0564b77b5e660a3224bcbb484f (patch)
treecacc7541a4bbb622ab2b92cd7897aacae42a9b1f /runtime/plugin/python_setup.vim
parent90786766d290bf2ccb9f17d1178db6d5df7c5a32 (diff)
downloadrneovim-7b03df5d5402bc0564b77b5e660a3224bcbb484f.tar.gz
rneovim-7b03df5d5402bc0564b77b5e660a3224bcbb484f.tar.bz2
rneovim-7b03df5d5402bc0564b77b5e660a3224bcbb484f.zip
feat(lua): vim.fs.slug() #41005
Problem: Several subsystems need to derive a short, filesystem-safe identifier from an arbitrary path, and each reinvents it ad-hoc: - `'undodir'` and `swapfiles` encode the full path into a single filename, which may exceed filesystem length-limits. - `:connect ssh://` needs the SSH ControlPath socket name to stay under the 104-byte `sun_path` limit on macOS; today the path overflows it. - the upcoming :terminal state dir. - arbitrary plugin purposes. Solution: Provide `vim.fs.slug()`, which generates a bounded, one-way filename from an arbitrary string. The input is normalized so equivalent paths produce the same result. An 8-char hash is appended for uniqueness
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions