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

When a hidden buffer is opened, should it update frecency score?

Open delphinus opened this issue 1 year ago • 1 comments
trafficstars

frecency.register function is called by BufWinEnter autocmd, but the current build ignores if the buffer is already registered. Should it add scores if the user frequently makes the buffer un-hiddened?

delphinus avatar Aug 05 '24 06:08 delphinus

I'd say yes. It seems quite intuitive for it to behave in such a way.

As an user, if I jump in and out a file frequently, I'd expect the score to go up, thus makes the file more accessible in the list of files.

csessh avatar Aug 19 '24 09:08 csessh

I was searching for this feature and ended up here. I tend to keep Neovim running for a long time, so it would be helpful if hidden buffers also contributed to the score.

ippachi avatar Feb 13 '25 09:02 ippachi

Sorry for late.

I've implemented this in #307 and released 1.2.0. You can enable this feature by unregister_hidden = true in your config.

I'm planning to make this default: true in a future release such as 2.0.0.

delphinus avatar Feb 14 '25 07:02 delphinus

Thank you for the awesome work

csessh avatar Feb 14 '25 11:02 csessh