Commit Graph

10 Commits

Author SHA1 Message Date
JINNOUCHI Yasushi
14cb823ec2
docs: add note for FrecencyOpts (#208)
* docs: add lacked help tags

* docs: add FrecencyOpts and its explanation
2024-06-01 11:46:19 +09:00
JINNOUCHI Yasushi
865f51a611
feat!: set the default DB path to XDG_STATE_HOME (#204)
* feat: access user opts from config.ext_config

* feat!: set the default DB path to XDG_STATE_HOME

* feat: add fallback logic to detect old DB path

* docs: add note for this change
2024-05-25 17:27:08 +09:00
JINNOUCHI Yasushi
f8a89691c8
fix: respect telescope's path_display (#196) 2024-05-01 17:05:29 +09:00
JINNOUCHI Yasushi
62534e2479
fix: deal with the pattern when score is -1 (#193)
* fix: deal with the pattern when score is -1

* docs: fix the default value in README
2024-04-29 12:53:44 +09:00
JINNOUCHI Yasushi
42b6421061
feat: add fuzzy matching sorter experimentally (#166)
* feat: add fuzzy matching sorter experimentally

* feat: add an option to select matcher logic

* feat: separate logic to match: fuzzy, fuzzy_full

* Revert "feat: separate logic to match: fuzzy, fuzzy_full"

This reverts commit 64c022904871143ab12c7d6ba29c89fbabdbe15e.

* feat: use fzy sorter and combine recency scores

* feat: enable to change logic to calculate scores

* feat: change the view for scores by config.matcher

* docs: add note in README

* docs: add note for `scoring_function`
2024-04-28 17:58:45 +09:00
JINNOUCHI Yasushi
94a532cb9c
docs: add more notes & fix type annotations (#191)
Use `T[]` instead of `table<integer, T>` for consistency.
2024-04-06 21:24:30 +09:00
Mr.Z
08a28ec511
feat(recency_values): customize recency_values (#190)
Co-authored-by: zhaogang <zhaogang@dustess.com>
2024-04-06 20:49:45 +09:00
JINNOUCHI Yasushi
2a22815b09
Simplify code with using frecency.config (#189)
* chore: change the position of `?`

* fix: use config module to simplify code

* test: fix tests to use frecency.config

* test: remove macOS with nightly Neovim temporarily
2024-03-25 18:45:45 +09:00
JINNOUCHI Yasushi
8e3e5ba645
fix: detect nullable config values (#183)
The previous logic makes it ignore nullable config values.
2024-03-18 16:28:11 +09:00
JINNOUCHI Yasushi
bd52772bf2
fix!: change timing for initialization (#179)
* fix!: change timing for initialization

fix #109
fix #59

This fixes problems below.

* Auto-validation feature is called at Neovim starting.
   - → Now it starts at `:Telescope frecency` called at the first time.
* `frecency.setup()` is called every when `:Telescope frecency` is
  called.
   - → Now it is called only once.
* `telescope.setup()` calls `frecency.new()` and it reads the database.
  This causes time in executing `init.lua`.
   - → Now it reads the database lazily. It reads at the first time when
     needed.

* test: change logic to initialize config

* test: make Neovim version newer in CI
2024-03-14 20:28:06 +09:00