Skip to content

What causes telescope-frecency to say "remove 565 entries from database?" #333

@myarcana

Description

@myarcana

I'm trying to make an MRE config for a bug that telescope frecency has (the bug is that the letter A is inserted into the prompt the first time I use the frecency picker)

Here's the config

vim.opt.rtp:append("~/.local/share/nvim/lazy/plenary.nvim")
vim.opt.rtp:append("~/.local/share/nvim/lazy/telescope.nvim")
vim.opt.rtp:append("~/.local/share/nvim/lazy/telescope-frecency.nvim")

require('telescope').setup{}
require("telescope").load_extension "frecency"

vim.keymap.set(
  'n',
  '<Space>fr',
  require'telescope'.extensions.frecency.frecency,
  { noremap = true, silent = true }
)

When I run

vim -u <(cat <<'EOF'
vim.opt.rtp:append("~/.local/share/nvim/lazy/plenary.nvim")
vim.opt.rtp:append("~/.local/share/nvim/lazy/telescope.nvim")
vim.opt.rtp:append("~/.local/share/nvim/lazy/telescope-frecency.nvim")

require('telescope').setup{}
require("telescope").load_extension "frecency"

vim.keymap.set(
  'n',
  '<Space>fr',
  require'telescope'.extensions.frecency.frecency,
  { noremap = true, silent = true }
)
EOF
)

And then press <space>fr to open telescope-frecency, I first get a little interactive prompt

[Telescope-Frecency] remove 565 entries from database?                                                                                                                                     
1: Yes. Remove them.                                                                                                                                                                       
2: No. Do nothing.                                                                                                                                                                         
Type number and <Enter> or click with the mouse (q or empty cancels):

why? why does this only exist for this config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions