Closed glassesneo closed 5 months ago
directory Items in the expanded directory are not sorted in alphabetical order
ddu.vim version (SHA1): d801d7333c0457b1f5a67750818fd26c888b932f
ddu-filter-sorter_alpha version (SHA1): 728f0b4e54be1617e5ace548d4d28175026792fc
denops.vim version (SHA1): 9dd9ae9da9b8d65916dd44e0e4d881665397de63
deno version(deno -V output): deno 1.43.5
deno -V
OS: MacOS Sonoma 14.5 (M1, 2020)
neovim/Vim :version output: NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068
:version
set rtp+=~/.cache/dpp/repos/github.com/vim-denops/denops.vim set rtp+=~/.cache/dpp/repos/github.com/Shougo/ddu.vim set rtp+=~/.cache/dpp/repos/github.com/Shougo/ddu-ui-filer set rtp+=~/.cache/dpp/repos/github.com/Shougo/ddu-source-file set rtp+=~/.cache/dpp/repos/github.com/Shougo/ddu-kind-file set rtp+=~/.cache/dpp/repos/github.com/Shougo/ddu-column-filename set rtp+=~/.cache/dpp/repos/github.com/Shougo/ddu-filter-sorter_alpha lua <<EOF local doAction = vim.fn["ddu#ui#async_action"] vim.fn["ddu#custom#patch_local"]("filer", { ui = "filer", uiParams = { filer = { split = "floating", splitDirection = "floating", floatingBorder = "rounded", }, }, sources = { "file" }, sourceOptions = { file = { sorters = { "sorter_alpha", }, columns = { "filename", }, }, }, }) ---@param mode string|string[] ---@param key string ---@param action string ---@param args? table local function mapAction(mode, key, action, args) vim.keymap.set(mode, key, function() if args ~= nil and next(args) then doAction(action, args) else doAction(action) end end, { noremap = true, silent = true, buffer = true }) end vim.api.nvim_create_autocmd("FileType", { pattern = "ddu-filer", callback = function() mapAction("n", "q", "quit") mapAction("n", "<CR>", "itemAction", { name = "narrow" }) mapAction("n", "l", "expandItem") mapAction("n", "h", "collapseItem") end, }) EOF nnoremap <Space><Space> <Cmd>call ddu#start(#{ name: 'filer' })<CR> call ddu#start(#{ name: 'filer' })
ddu#start(#{name: 'filer'})
https://github.com/Shougo/ddu-filter-sorter_alpha/assets/61031352/12250738-9d36-4ee5-a84e-fdd2e3e4baae
I get the reason.
Fixed.
Problem summerly
directory Items in the expanded directory are not sorted in alphabetical order
Environment information
ddu.vim version (SHA1): d801d7333c0457b1f5a67750818fd26c888b932f
ddu-filter-sorter_alpha version (SHA1): 728f0b4e54be1617e5ace548d4d28175026792fc
denops.vim version (SHA1): 9dd9ae9da9b8d65916dd44e0e4d881665397de63
deno version(
deno -V
output): deno 1.43.5OS: MacOS Sonoma 14.5 (M1, 2020)
neovim/Vim
:version
output: NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068minimal vimrc
How to reproduce the problem
ddu#start(#{name: 'filer'})
with the config aboveScreenshot
https://github.com/Shougo/ddu-filter-sorter_alpha/assets/61031352/12250738-9d36-4ee5-a84e-fdd2e3e4baae