Commit graph

379 commits

Author SHA1 Message Date
folke
b5f7bbc0c9 chore(build): auto-generate docs 2025-01-16 07:12:36 +00:00
folke
60f79f98c2 chore(build): auto-generate docs 2025-01-15 21:19:23 +00:00
folke
6141d396a8 chore(build): auto-generate docs 2025-01-15 21:13:20 +00:00
folke
1f3f219719 chore(build): auto-generate docs 2025-01-15 20:32:49 +00:00
folke
28611136c3 chore(build): auto-generate docs 2025-01-15 20:19:43 +00:00
folke
f509163e39 chore(build): auto-generate docs 2025-01-15 19:45:03 +00:00
folke
cf38082828 chore(build): auto-generate docs 2025-01-15 18:51:48 +00:00
folke
09d563e223 chore(build): auto-generate docs 2025-01-15 18:01:37 +00:00
folke
e5dd9281ee chore(build): auto-generate docs 2025-01-15 17:00:04 +00:00
folke
246b904f32 chore(build): auto-generate docs 2025-01-15 16:31:34 +00:00
folke
c7d8262556 chore(build): auto-generate docs 2025-01-15 16:26:33 +00:00
folke
719d86a373 chore(build): auto-generate docs 2025-01-15 16:07:58 +00:00
folke
92c2a00672 chore(build): auto-generate docs 2025-01-15 16:04:49 +00:00
folke
eca68b595a chore(build): auto-generate docs 2025-01-15 15:45:15 +00:00
folke
270cff8b6c chore(build): auto-generate docs 2025-01-15 12:11:21 +00:00
folke
5b959320fc chore(build): auto-generate docs 2025-01-15 09:33:28 +00:00
folke
e23d15623e chore(build): auto-generate docs 2025-01-15 08:54:46 +00:00
folke
2cd3c13ad7 chore(build): auto-generate docs 2025-01-15 06:51:38 +00:00
folke
2e8e8ca36f chore(build): auto-generate docs 2025-01-15 05:39:34 +00:00
Folke Lemaitre
0437cfd98e
feat(picker.grep): added ft (rg's type) and regex (rg's --fixed-strings) options 2025-01-15 06:34:31 +01:00
folke
541b46dfac chore(build): auto-generate docs 2025-01-14 23:14:03 +00:00
Folke Lemaitre
4a9dcdf552
docs: added example mapping to use ESC in insert mode to close 2025-01-15 00:13:16 +01:00
Folke Lemaitre
77d1af1b55
docs: screenshots 2025-01-14 23:38:20 +01:00
folke
1c4cc937f6 chore(build): auto-generate docs 2025-01-14 22:37:20 +00:00
Folke Lemaitre
89847bd76d
docs: more docs 2025-01-14 23:36:28 +01:00
folke
2cc4dd1be8 chore(build): auto-generate docs 2025-01-14 22:01:56 +00:00
Folke Lemaitre
db9c5ae8c7
docs: docgen 2025-01-14 23:00:59 +01:00
folke
c55421ed63 chore(build): auto-generate docs 2025-01-14 21:54:52 +00:00
Folke Lemaitre
559d6c6bf2
feat(snacks): added snacks.picker (#445)
## Description

More info coming tomorrow.

In short:
- very fast. pretty much realtime filtering/sorting in huge repos (like
1.7 million files)
- extensible
- easy to customize the layout (and lots of presets) with
`snacks.layout`
- simple to create custom pickers
- `vim.ui.select`
- lots of builtin pickers
- uses treesitter highlighting wherever it makes sense
- fast lua fuzzy matcher which supports the [fzf
syntax](https://junegunn.github.io/fzf/search-syntax/) and additionally
supports field filters, like `file:lua$ 'function`

There's no snacks picker command, just use lua.

```lua
-- all pickers
Snacks.picker()

-- run files picker
Snacks.picker.files(opts)
Snacks.picker.pick("files", opts)
Snacks.picker.pick({source = "files", ...})
```

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Todo
- [x] issue with preview loc not always correct when scrolling fast in
list (probably due to `snacks.scroll`)
- [x] `grep` (`live_grep`) is sometimes too fast in large repos and can
impact ui rendering. Not very noticeable, but something I want to look
at.
- [x] docs
- [x] treesitter highlights are broken. Messed something up somewhere

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->
2025-01-14 22:53:59 +01:00