Open asgeo1 opened 2 years ago
I'm setting selection_strategy = 'row', because I want a mapping to delete buffers when I use :lua require('telescope.builtin').buffers(), and I don't want the row position to change after I delete a buffer. (this should be the default behaviour IMO, but that's a side-issue)
This is the current behavior, you dont have to setup anything. Here is a clip: https://asciinema.org/a/vKZaYHDZ6DKuNJOTDN23u0db4
You can also just setup a selection_strategy
for one specific picker. See :help telescope.setup
Still row
seems to be broken with sorting_strategy = "descending"
, works with ascending
thought, so works with dropdown theme. You currently have to manually scroll down to find your result: config/routes.rb
Sorry for the late response :) Will look into fixing it
Description
I recently updated Telescope to latest, after having not updated for a few months.
Something has changed. The
find_files
is not producing the results I would expect anymore.I'm working on a large "mono repo" project, where in the repo there is a Ruby on Rails API, and a React frontend, and an Objective-C native iOS client too.
So that's a lot of code, but previously there was no issue. Telescope would fuzzy match across the entire repo.
Where as now, it still does that, but gets the matches wrong!
I type in
route
and I should see as the first match isapi/config/routes.rb
, which is the main Routes file from Ruby-on-Rails.It doesn't pick this up anymore. As far as I can tell, the issue is being caused by
selection_strategy = 'row'
, which is the only thing I am customising per the default "minimal" setup.I'm setting
selection_strategy = 'row'
, because I want a mapping to delete buffers when I use:lua require('telescope.builtin').buffers()
, and I don't want the row position to change after I delete a buffer. (this should be the default behaviour IMO, but that's a side-issue)Neovim version
Operating system and version
macOS 12.3.1
checkhealth telescope
Steps to reproduce
git clone git@github.com:gothinkster/rails-realworld-example-app.git
cd rails-realworld-example-app
nvim -nu minimal.lua
:lua require('telescope.builtin').find_files()
route
Expected behavior
Should see
config/routes.rb
as the first matchActual behavior
Seemingly random file appears in the fuzzy results.
Commenting out
selection_strategy = "row",
from setup, and restarting Vim fixes the issue.Minimal config