Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:37
    Conni2461 synchronize #1498
  • 12:56
    Conni2461 edited #1552
  • 12:55
    Conni2461 labeled #1544
  • 12:50
    Conni2461 opened #1552
  • 11:13
    windwp closed #1241
  • 10:36
    l-kershaw closed #1550
  • 10:20
    Conni2461 synchronize #1498
  • 10:14
    Conni2461 labeled #1299
  • 10:05
    Conni2461 labeled #1484
  • 10:02
    Conni2461 labeled #1228
  • 09:40
    Conni2461 labeled #745
  • 09:38
    Conni2461 closed #644
  • 08:30
    Conni2461 synchronize #1498
  • 07:58
    Conni2461 labeled #1551
  • 03:37
    fedoranvar edited #1551
  • 03:37
    fedoranvar opened #1551
  • 03:37
    fedoranvar labeled #1551
  • 01:21
    KennethAshley edited #1550
  • 01:21
    KennethAshley labeled #1550
  • 01:21
    KennethAshley opened #1550
siduck
@siduck
looks cleaner without the title on the top
image.png
fedoranvar
@fedoranvar:matrix.org
[m]
@siduck: how you made separate backgreound for prompt?

i have preview_cutoff and when my results can't fill all result windows it leaves region with no highilightning?

Does anybody know which highlight responsible for this area?

siduck
@siduck
@fedoranvar:matrix.org try TelescopeNormal
and TelescopePromptNormal
you could try :Telescope and check highlights option
image.png
it shows all available highlight groups
fedoranvar
@fedoranvar:matrix.org
[m]
strange but i don';t have telescopePromptNormal
i have latest telescope
siduck
@siduck
weird , make sure you have latest telescope
fedoranvar
@fedoranvar:matrix.org
[m]
solved, thank you!
Vikas Raj
@numToStr
Does anyone know how to remove the starting path segment?
2 replies
image.png
Aleh Atsman
@alehatsman

Hey guys!

How can I make telescope work in the next way:

  1. When multiple items are selected and I hit enter, selecion opens in quickfix ['<CR>'] = actions.send_selected_to_qflist + actions.open_qflist.
  2. When there are no selection and only one item is "focused" and I hit enter, current item is opened in current buffer.

How do I get such behaviour?

Yorick Peterse
@yorickpeterse:matrix.org
[m]
I submitted nvim-telescope/telescope.nvim#1410 a while back, but I'm not sure who to ping/annoy for a review. Anybody got any pointers? 🙂
fedoranvar
@fedoranvar:matrix.org
[m]
it is possible to add prefix to multiselections?
fedoranvar
@fedoranvar:matrix.org
[m]
How to change highlighting of result`s number in prompt title?
Martin Roa Villescas
@mroavi
Does anybody know what self._on_lines(nil, nil, nil, 0, 1) in pickers.lua is supposed to do? I can't find the definition of this function.
fdschmidt93
@fdschmidt93
I think it kind of acts as if you changed the prompt without having changed the prompt to re-trigger an already completed finder. You'll get more intuition by tracing back every reference of self._on_lines.
1 reply
Martin Roa Villescas
@mroavi
Hmm.. ok. I'm having an issue with that line. It actually moves the selection to the first index after deleting an entry with Picker:delete_selection (e.g. a buffer using the buffers picker).

And from these lines:

function Picker:delete_selection(delete_cb)

  vim.validate { delete_cb = { delete_cb, "f" } }
  local original_selection_strategy = self.selection_strategy
  self.selection_strategy = "row" -- mrv: it seems to me that they do want to make the curosr stay in the same row after an entry is deleted
...

it looks to me that the intention is to leave the cursor on the same row (which is what I want too).. but that is not the way it's working. @fdschmidt93 could you quickly verify if this is a bug so that if this is the case I can open an issue?

later in that function, there is a call to self:refresh(), which has self._on_lines(nil, nil, nil, 0, 1) as the last line. This line makes the selection move to the first row of the picker.
fdschmidt93
@fdschmidt93
Which I think is in line with what I 'm presuming self.__on_lines is doing. Whenever "new input" is processed, the selection is reset to the highest scoring entry in the results buffer. Not sure about Picker:delete_selection, I'd have to look carefully at selection_strategy. But in any case I guess you can argue it both ways.
Martin Roa Villescas
@mroavi
I thought that when the selection strategy has "row" as its value (which is the case here when self._on_lines(nil, nil, nil, 0, 1) is run) the selection should stay on the same row. @fdschmidt93 Do you know what the arguments do in self._on_lines(nil, nil, nil, 0, 1)?
2 replies
kylo252
@kylo252:matrix.org
[m]
I had just finished preparing the PR for the modified run_builtin when connie commented on my earlier PR 😅
nvim-telescope/telescope.nvim#1544
Simon Hauser
@Conni2461

@ teleteam :laughing: i am working towards a first telescope release this month and i plan to be done by end of the month. worst case mid of January. I have a pretty good idea what i want to have in the first release, whats missing and what we need to move post first release. We will not remove any builtins for this release (except file_browser because after fds work its too big). Removing builtins is something we can talk about some other time. The same applies to a future native / rust module or the integration of fzf-native. These are post release tasks.

I still want some input from the core telescope team and i want to give better outlook on my plan for a first release. I dont want to do this here, in public (its not really that interesting for people that are not maintaining), so we should look for a private chat room or we do a teleconf, conference call.

clason
@clason:matrix.org
[m]
@Conni2461: I recommend creating a private Matrix room for this
Simon Hauser
@conni2461:matrix.org
[m]
i had something similar in mind, or alternative that fd mentioned was github team
gegoune
@gegoune:matrix.org
[m]
Hey, I have just changed my find_command to omit ./ from results, wanted to do the same for grep now (using fg). fg does not accept https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#remove--from-fd-results for grepping (only for --files). I then run fg in terminal with telescope's default settings: rg test --color=never --no-heading --with-filename --line-number --column --smart-case and noticed that there is no leading ./ in results, but they are in telescope's output. How could I remove them?
Simon Hauser
@conni2461:matrix.org
[m]
gegoune: wanna try nvim-telescope/telescope.nvim#1552 we added the . at the end of rg commands because it was required for rg 13.0 but that doesnt seem to be the case anymore and the version is still the same for me 🤔
gegoune
@gegoune:matrix.org
[m]
It works for grep, thanks. Still need to add --strip-cwd-prefix to find_command though, right?
Simon Hauser
@conni2461:matrix.org
[m]
yes due to changes in fd
gegoune
@gegoune:matrix.org
[m]
But it works for grep, very nice, thanks!
Also, thinking, I don't want to override entire find_command, just add one argument to it. There is no way to do that, is there? reason why I am asking is because I have pickers.find_files.hidden = true and I like how that works rather than manually specifying that in find_command.
1 reply
ironhouzi
@ironhouzi:matrix.org
[m]

Hi! Does anyone know if it's possible to reset the fuzzy search with the currently listed items? E.g:

I'm looking for foo/bar/baz but can only remember foobaz, which I type out.. let's say I get a list of 10 items and want to match bar. Currently I have to backspace baz and type out barbaz. Instead it would be nice to do a new fuzzy search on the current items.. Is my question clear?

1 reply
gegoune
@gegoune:matrix.org
[m]
Thanks Simon!
ironhouzi
@ironhouzi:matrix.org
[m]
Thanks Simon Hauser ! I'm not sure I want fzf though, but I guess I'll have to look into extending the functionality of telescope myself.
clason
@clason:matrix.org
[m]
(you do, though ;))
Simon Hauser
@conni2461:matrix.org
[m]
you dont need the fzf binary. Its a small reimplementation in c
as a library
clason
@clason:matrix.org
[m]
(fzf-native != junnegun's FZF)
ironhouzi
@ironhouzi:matrix.org
[m]
Right, I saw that. I should probably try it out, but I seemingly prefer the default search algorithm of telescope, as it seems to get hits quicker for my search patterns.. Not sure if telescope does BFS, but I'm pretty sure fzf is DFS, which seldom matches my use.. these are assumptions based on old observations though .. so I should probably reassess.
clason: why do you recommend it?
clason
@clason:matrix.org
[m]
because it's a) very fast, and b) allows fzf syntax (^, $, etc.)
ironhouzi
@ironhouzi:matrix.org
[m]
Thanks for the great help Simon Hauser and clason
clason
@clason:matrix.org
[m]
you can still override the sorter with the builtin generic one for certain pickers where you prefer the old behavior (and only have a few entries to pick from)
Masood Ahmad
@sircle:matrix.org
[m]
Any ideas why this line does not works with gd or gD but It works if I do :Telescope lsp_definitions etc ? I had this issue before. Maybe its about servers being added or not but don't remember. Any clue? https://pastebin.mozilla.org/QmrHZCKt#L772