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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emojies in ":Telescope git_files" not shown #2877

Closed
Natenom opened this issue Jan 18, 2024 · 4 comments
Closed

Emojies in ":Telescope git_files" not shown #2877

Natenom opened this issue Jan 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Natenom
Copy link

Natenom commented Jan 18, 2024

Description

Instead of emojies (for example "馃泹 test") ":Telescope git_files" shows "\360\237\233\215\357\270\217test". Opening such a file creates a buffer with that name.

":Telescope find_files" or live_grep show the correct filename.

Neovim version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794

Operating system and version

Debian Testing

Telescope version / branch / rev

43cabe5

checkhealth telescope

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- OK rg: found ripgrep 14.1.0
- OK fd: found fdfind 9.0.0

===== Installed extensions ===== ~

Telescope Extension: `aerial` ~
- No healthcheck provided

Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured

Telescope Extension: `projects` ~
- No healthcheck provided

Steps to reproduce

  1. cd into a git repo with a filename containing an emoji
  2. command ":Telescope git_files"

Expected behavior

Show emojies and use them for the buffer to be opened

Actual behavior

No emojies

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()]]
@Natenom Natenom added the bug Something isn't working label Jan 18, 2024
@Conni2461
Copy link
Member

we use git ls-files for git-files picker and git also returns "\360\237\233\215\357\270\217test" so yeah i am not sure we should address this issue 馃

@Natenom
Copy link
Author

Natenom commented Jan 18, 2024

Didn't try that. I am not familiar with git. Sorry for the noise.

Will change the config from LazyVim to use find_files instead of git_files.

Thanks :)

@Conni2461
Copy link
Member

can i close this issue then?

@Natenom
Copy link
Author

Natenom commented Jan 18, 2024

Yep.

@Natenom Natenom closed this as completed Jan 18, 2024
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