mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
1.1 KiB
1.1 KiB
telescope-frecency.nvim
An implementation of Mozillas Frecency algorithm for telescope.nvim.
Frecency: sorting by "frequency" and "recency."
Frecency is a score given to each file loaded into a Neovim buffer. The score is calculated by combining the timestamps recorded on each load and how recent the timestamps are:
score = frequency * recency_score / number_of_timestamps
Requirements
- telescope.nvim (required)
- sql.nvim (required)
Timestamps and file records are stored in an SQLite3 database for persistence and speed.
This plugin uses sql.nvim to perform the database transactions.
Installation
TODO:
abc
Configuration
Function for keymaps
lua require("telescope").extensions.frecency.frecency(opts)
:Telescope frecency