Go to file
2021-01-14 01:45:32 +01:00
lua/telescope/_extensions Inital commit. 2021-01-14 01:37:37 +01:00
LICENSE Inital commit. 2021-01-14 01:37:37 +01:00
README.md update readme 2021-01-14 01:45:32 +01:00

telescope-frecency.nvim

WIP

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

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:

use {
  "sunjon/telescope-frecency",
  config = function()
    require"telescope".load_extension("frecency")
  end
}

Configuration

Function for keymaps

lua require("telescope").extensions.frecency.frecency(opts)
:Telescope frecency