telescope-frecency.nvim icon indicating copy to clipboard operation
telescope-frecency.nvim copied to clipboard

How to disable `Telescope-Frecency: removed n missing entries.` in messages?

Open kohane27 opened this issue 2 years ago • 2 comments

Hello there. Hope you're doing well.

Whenever Telescope-Frecency sees a changed file, it shows Telescope-Frecency: removed 1 missing entries. in the messages:

screenshot-2022-05-29-12-10-56

My current config:

frecency = {
      show_scores = false,
      show_unindexed = false,
      ignore_patterns = { "*.git/*", "*/tmp/*" },
      disable_devicons = false,
}

I looked into the doc and such disable_removed_missing_entries_messages option doesn't exist. Is it possible to disable such messages?

Any help is much appreciated. Thank you!

kohane27 avatar May 29 '22 04:05 kohane27

A work-around is to modify db_client.lua:

  1. nvim ~/.local/share/nvim/site/pack/packer/start/telescope-frecency.nvim/lua/telescope/_extensions/frecency/db_client.lua

  2. Comment out print(('Telescope-Frecency: removed %d missing entries.'):format(#pending_remove))

kohane27 avatar Aug 18 '22 04:08 kohane27

FYI: I pr-ed #75 to use vim.notify instead of print() to show such messages. You can see them in floating windows not to bother you with using rcarriga/nvim-notify.

delphinus avatar Sep 24 '22 07:09 delphinus

can wrap/re-define vim.notify to filter out this message as shown here

FelipeLema avatar Feb 02 '23 20:02 FelipeLema

I changed the initialization process and that message appears when you call :Telescope frecency at the first time. I think it is less annoying.

If you want to remove that messages completely, try @FelipeLema's way above.

delphinus avatar Mar 14 '24 11:03 delphinus