mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
docs: fix typo and formatting (#226)
* style: fix formatting * test: fix options to construct FS * test: add cspell.json to validate doc * docs: fix typo
This commit is contained in:
parent
1154548e61
commit
03d43510d0
1
cspell.json
Normal file
1
cspell.json
Normal file
@ -0,0 +1 @@
|
||||
{"words":["frecency","nvim","frecently","frecent","devicons","Neovim","shada","oldfiles","keymap","smartcase","frecencydelete","frecencyvalidate","frecencyopts","stdpath","substr","unindexed","fdfind","telescopebufferloaded","telescopepathseparator","telescopefrecencyscores","telescopequeryfilter","norl","noet","compl"],"flagWords":[],"language":"en","version":"0.2"}
|
||||
@ -139,7 +139,7 @@ imported.
|
||||
USAGE *telescope-frecency-usage*
|
||||
>vim
|
||||
:Telescope frecency
|
||||
" Use a specifix workspace tag:
|
||||
" Use a specific workspace tag:
|
||||
:Telescope frecency workspace=CWD
|
||||
" You can use with telescope's options
|
||||
:Telescope frecency workspace=CWD path_display={"shorten"} theme=ivy
|
||||
@ -149,7 +149,7 @@ or to map to a key:
|
||||
vim.keymap.set("n", "<Leader>tf", function()
|
||||
require("telescope").extensions.frecency.frecency {}
|
||||
end)
|
||||
-- Use a specifix workspace tag:
|
||||
-- Use a specific workspace tag:
|
||||
vim.keymap.set("n", "<Leader>tw", function()
|
||||
require("telescope").extensions.frecency.frecency {
|
||||
workspace = "CWD",
|
||||
@ -293,9 +293,9 @@ Options: *telescope-frecency-function-query-options*
|
||||
`Type: `"count"|"path"|"score"|"timestamps"`
|
||||
This is used to sort results with their properties. With
|
||||
`"count"`, `"score"` and `"timestamps"`, when candidates have the
|
||||
same value, they will be sorted by `"path"` always ascendingly.
|
||||
With `"path"`, the order direction differs by the value of
|
||||
`direction`.
|
||||
same value, they will be sorted by `"path"` always in ascending
|
||||
order. With `"path"`, the order direction differs by the value
|
||||
of `direction`.
|
||||
*telescope-frecency-function-query-options-record*
|
||||
- `record` Default: `false
|
||||
Type: `boolean`
|
||||
@ -599,7 +599,7 @@ Default: `{}`
|
||||
Type: `table<string, string>`
|
||||
|
||||
This table contains mappings of `workspace_tag` → `workspace_directory`. The key
|
||||
corresponds to the `:tag_name` used to select the filter in queies. The value
|
||||
corresponds to the `:tag_name` used to select the filter in queries. The value
|
||||
corresponds to the top level directory by which results will be filtered.
|
||||
>lua
|
||||
-- example configuration
|
||||
|
||||
@ -145,7 +145,7 @@ Config.setup = function(ext_config)
|
||||
db_root = { opts.db_root, "s" },
|
||||
db_safe_mode = { opts.db_safe_mode, "b" },
|
||||
db_validate_threshold = { opts.db_validate_threshold, "n" },
|
||||
debug = { opts.debug, 'b' },
|
||||
debug = { opts.debug, "b" },
|
||||
default_workspace = { opts.default_workspace, "s", true },
|
||||
disable_devicons = { opts.disable_devicons, "b" },
|
||||
filter_delimiter = { opts.filter_delimiter, "s" },
|
||||
|
||||
@ -16,7 +16,7 @@ local function make_epoch(datetime)
|
||||
end
|
||||
|
||||
local function with_database(f)
|
||||
local fs = FS.new { ignore_patterns = {} }
|
||||
local fs = FS.new {}
|
||||
local dir, close = util.tmpdir()
|
||||
dir:joinpath("file_frecency.bin"):touch()
|
||||
return function()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user