Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capitalize french accent support #1753

Open
johackim opened this issue Feb 20, 2022 · 2 comments
Open

Capitalize french accent support #1753

johackim opened this issue Feb 20, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@johackim
Copy link

Description

Hello,

Thanks for creating Telescope.nvim !

I try to search files with accents. But if the file has a capitalize accent character, it will not appear on the results.

Exemple widh a markdown file : Écriture.md.

If I search écriture, it not appeear.

Neovim version

NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

Arch Linux

checkhealth telescope

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - OK: nvim-treesitter installed.

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0
  - OK: fd: found fd 8.3.2

## ===== Installed extensions =====

## Telescope Extension: `fzf`
  - INFO: No healthcheck provided

Steps to reproduce

touch `Écriture.md`
nvim
# <leader>ff
# écriture

Expected behavior

Retrieve my file on the search results if I search with a capitalize letter or not.

Actual behavior

If I search without a capital accent letter, I can't find my file.

Minimal config

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'nvim-telescope/telescope.nvim',
        requires = {
          'nvim-lua/plenary.nvim',
          { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
        },
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('telescope').setup()
  require('telescope').load_extension('fzf')
  -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing Telescope and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
@johackim johackim added the bug Something isn't working label Feb 20, 2022
@Conni2461
Copy link
Member

If you are using fzf-native, its a fzf-native bug because i do not yet have support for utf8 case. Its on my roadmap: https://github.com/nvim-telescope/telescope-fzf-native.nvim#todo

I was already working on it once and got it working but its made the performance way slower because i implemented it with additional allocations.

I will go back to it pretty soon because i have a couple of new ideas

@johackim
Copy link
Author

Hello @Conni2461, thanks for your reactivity.

I have this issue with any extensions.

Hope this will be fixed soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants