diff --git a/README.md b/README.md index fef12c5..9b9ec40 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ Frecency is a [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) extension that offers a more intelligent way to select files from your editing history. -Using an implementation of Mozilla's [Frecency algorithm](https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Frecency_algorithm), files that you edit often and/or recently are given higher precedence in the list index. -As the extension 'learns' your editing habits over time, the sorting of the list is dynamically altered to priotize the files you're likely to need. +Using an implementation of Mozilla's [Frecency algorithm](https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Frecency_algorithm), files edited _frecently_ are given higher precedence in the list index. +As the extension learns your editing habits over time, the sorting of the list is dynamically altered to priotize the files you're likely to need. screenshot @@ -55,6 +55,7 @@ use { } ``` +If no database is found when running Neovim with the plugin installed, a new one is created and entries from `shada` `v:oldfiles` are automatically imported. ## Configuration diff --git a/lua/telescope/_extensions/frecency/sorter.lua b/lua/telescope/_extensions/frecency/sorter.lua index 1cee78d..131be35 100644 --- a/lua/telescope/_extensions/frecency/sorter.lua +++ b/lua/telescope/_extensions/frecency/sorter.lua @@ -3,14 +3,6 @@ local util = require("telescope._extensions.frecency.util") local my_sorters = {} --- local function split(s, delimiter) --- local result = {} --- for match in (s .. delimiter):gmatch("(.-)" .. delimiter) do --- table.insert(result, match) --- end --- return result --- end - local substr_highlighter = function(_, prompt, display) local highlights = {} display = display:lower()