nvim-telescope / telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
MIT License
697 stars 35 forks source link

Is it possible to remove an entry from telescope-frecency? #151

Closed vinoff closed 8 months ago

vinoff commented 9 months ago

Is it possible to remove an entry from telescope-frecency?

Say I worked extensively on a given file but wish to no longer work on it. I want it removed from telescope-frecency. Is there a way to delete its entry from the DB (or change its ranking), without having to add it to the ignore patterns? Or is adding it to the ignore the only way?

delphinus commented 9 months ago

There is no such feature. But it is reasonable that it can do. I will implement it.

" delete from DB with supplied full path
:FrecencyDelete ~/path/to/file
" path can be expand()
:FrecencyDelete %  " ← This means the file in the current buffer
bassamsdata commented 9 months ago

this feature would be amazing, because some file scores goes pretty high

vinoff commented 8 months ago

@delphinus , do you plan on merging this to master anytime soon?

delphinus commented 8 months ago

Sorry for late. I'm writing tests for it, so wait a minute pls 🙏🏻

delphinus commented 8 months ago

Again sorry for late. At last I merged the PR.

And I changed syntax a little.

" delete from DB with supplied full path
:FrecencyDelete ~/path/to/file
" path can be expand()
:FrecencyDelete %:p  " ← This means the file in the current buffer
" delete the file in the current buffer
:FrecencyDelete

You can delete the file from DB with opening the file & type :FrecencyDelete only.