nvim-telescope / telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.
MIT License
15.98k stars 837 forks source link

file browser treats symlink folders as files so that you cannot jump to them #693

Closed 66RING closed 2 years ago

66RING commented 3 years ago

Description

file_browser cannot jump into symlink folders

Details

Reproduce 1. create a symlink folder 2. `:Telescope file_browser` to jump 3. and it just open symlink folder as a file
Environment - nvim --version output: ``` NVIM v0.5.0-dev+nightly-98-g0ab88c2ea Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilation: /usr/bin/cc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/ring/var/neovim/build/config -I/home/ring/var/neovim/src -I/home/ring/var/neovim/.deps/usr/include -I/usr/include -I/home/ring/var/neovim/build/src/nvim/auto -I/home/ring/var/neovim/build/include Compiled by root@laptop Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/share/nvim" Run :checkhealth for more info ``` - Operating system: `5.11.10-arch1-1` - Telescope commit: a7fa60411efbfddc0674d65346a5311e33f6deb1
Configuration

```viml set nocompatible hidden laststatus=2 if !filereadable('/tmp/plug.vim') silent !curl --insecure -fLo /tmp/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif source /tmp/plug.vim call plug#begin('/tmp/plugged') Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' call plug#end() autocmd VimEnter * PlugClean! | PlugUpdate --sync | close lua << EOF require('telescope').setup { defaults = { prompt_prefix = '🚀 ', prompt_position = 'top', sorting_strategy = 'ascending', file_previewer = require'telescope.previewers'.vim_buffer_cat.new, grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new, qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new, mappings = { i = { [""] = require('telescope.actions').close, } } }, extensions = { fzy_native = { override_generic_sorter = false, override_file_sorter = true, } } } require('telescope').load_extension('fzy_native') EOF ```

Conni2461 commented 3 years ago

We also noticed this: fix is in #613 Still thanks for reporting :)

alexeygumirov commented 2 years ago

Hi! I have this issue, which causes me to use Lf as a backup solution instead of Telescope File Browser.

Conni2461 commented 2 years ago

file_browser is no longer part of telescope. Closing. If this is still an Issue in the new extension: https://github.com/nvim-telescope/telescope-file-browser.nvim please open an issue there