Skip to content

Commit b6a84db

Browse files
folkegithub-actions[bot]
authored andcommitted
chore(build): auto-generate docs
1 parent 5a20565 commit b6a84db

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

docs/picker.md

+25-19
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,23 @@ Snacks.picker.pick({source = "files", ...})
489489
---@field cmd? snacks.picker.EditCmd
490490
```
491491

492+
```lua
493+
---@alias snacks.Picker.ref (fun():snacks.Picker?)|{value?: snacks.Picker}
494+
```
495+
496+
```lua
497+
---@class snacks.picker.Last
498+
---@field cursor number
499+
---@field topline number
500+
---@field opts? snacks.picker.Config
501+
---@field selected snacks.picker.Item[]
502+
---@field filter snacks.picker.Filter
503+
```
504+
505+
```lua
506+
---@alias snacks.picker.history.Record {pattern: string, search: string, live?: boolean}
507+
```
508+
492509
```lua
493510
---@alias snacks.picker.Extmark vim.api.keyset.set_extmark|{col:number, row?:number, field?:string}
494511
---@alias snacks.picker.Text {[1]:string, [2]:string?, virtual?:boolean, field?:string}
@@ -565,23 +582,6 @@ It's a previewer that shows a preview based on the item data.
565582
---@field preview? snacks.win.Config|{} preview window config
566583
```
567584

568-
```lua
569-
---@alias snacks.Picker.ref (fun():snacks.Picker?)|{value?: snacks.Picker}
570-
```
571-
572-
```lua
573-
---@class snacks.picker.Last
574-
---@field cursor number
575-
---@field topline number
576-
---@field opts? snacks.picker.Config
577-
---@field selected snacks.picker.Item[]
578-
---@field filter snacks.picker.Filter
579-
```
580-
581-
```lua
582-
---@alias snacks.picker.history.Record {pattern: string, search: string, live?: boolean}
583-
```
584-
585585
## 📦 Module
586586

587587
```lua
@@ -1631,6 +1631,12 @@ Open recent projects
16311631
confirm = "load_session",
16321632
patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "package.json", "Makefile" },
16331633
recent = true,
1634+
matcher = {
1635+
frecency = true, -- use frecency boosting
1636+
sort_empty = true, -- sort even when the filter is empty
1637+
cwd_bonus = false,
1638+
},
1639+
sort = { fields = { "score:desc", "idx" } },
16341640
win = {
16351641
preview = { minimal = true },
16361642
input = {
@@ -2401,8 +2407,6 @@ Snacks.picker.actions.toggle_preview(picker)
24012407
Snacks.picker.actions.yank(_, item)
24022408
```
24032409

2404-
2405-
24062410
## 📦 `snacks.picker.core.picker`
24072411

24082412
```lua
@@ -2626,3 +2630,5 @@ Get the word under the cursor or the current visual selection
26262630
```lua
26272631
picker:word()
26282632
```
2633+
2634+

0 commit comments

Comments
 (0)