You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using telescope builtin find_files for filenames in non-latin languages, the smartcase option doesn't work.
Here I have to explicitly type the uppercase Ф,П characters
P.S. I use neovim for note-taking and some of my filenames are in non-latin langages (armenian, russian, etc.)
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 14.1.0 (rev e50df40a19)
- OK fd: found fdfind 8.6.0
===== Installed extensions ===== ~
Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured
Telescope Extension: `ui-select` ~
- No healthcheck provided
Steps to reproduce
nvim -nu minimal.lua
:Telescope find_files and search in lowercase (say функ дирих) for a filename in non-latin language, like Функция-Дирихле.md
Expected behavior
I would expect the smartcase behaviour to work in non-latin languages the same way it does in english.
So, func diric pattern matches a filename Function-Dirichlet.md and функ дирих is expected to match Функция-Дирихле.md
Actual behavior
функ дирих doesn't match Функция-Дирихле.md
Minimal config
localroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs { "config", "data", "state", "cache" } dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.uv.fs_stat(lazypath) thenvim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{
"nvim-telescope/telescope.nvim",
dependencies= {
"nvim-lua/plenary.nvim",
},
config=function()
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUErequire("telescope").setup {}
end,
},
{
'nvim-treesitter/nvim-treesitter',
build=':TSUpdate',
opts= {
ensure_installed= { 'markdown', 'markdown_inline' }, -- to avoid errors
},
config=function(_, opts)
require('nvim-treesitter.configs').setup(opts)
end,
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
The text was updated successfully, but these errors were encountered:
Description
When using telescope builtin
find_files
for filenames in non-latin languages, thesmartcase
option doesn't work.Here I have to explicitly type the uppercase
Ф
,П
charactersP.S. I use neovim for note-taking and some of my filenames are in non-latin langages (armenian, russian, etc.)
Neovim version
Operating system and version
Debian Linux 12 x86_64
Telescope version / branch / rev
0.1.x
checkhealth telescope
Steps to reproduce
nvim -nu minimal.lua
:Telescope find_files
and search in lowercase (sayфунк дирих
) for a filename in non-latin language, likeФункция-Дирихле.md
Expected behavior
I would expect the smartcase behaviour to work in non-latin languages the same way it does in english.
So,
func diric
pattern matches a filenameFunction-Dirichlet.md
andфунк дирих
is expected to matchФункция-Дирихле.md
Actual behavior
функ дирих
doesn't matchФункция-Дирихле.md
Minimal config
The text was updated successfully, but these errors were encountered: