update readme

This commit is contained in:
Senghan Bright 2021-01-17 13:17:37 +01:00
parent dc37ed8dd0
commit c977ea5a46
2 changed files with 3 additions and 10 deletions

View File

@ -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.
<img src="https://raw.githubusercontent.com/sunjon/images/master/gh_readme_telescope_frecency.png" alt="screenshot" width="800"/>
@ -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

View File

@ -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()