Commit graph

39 commits

Author SHA1 Message Date
folke
1dd94d3320 chore(build): auto-generate docs 2025-02-16 07:30:45 +00:00
folke
d416302d4d chore(build): auto-generate docs
Some checks failed
CI / ci (push) Failing after 0s
2025-02-13 11:23:50 +00:00
folke
ff1ac4bd81 chore(build): auto-generate docs 2025-02-10 10:25:28 +00:00
folke
ef040d0ba5 chore(build): auto-generate docs
Some checks failed
CI / ci (push) Failing after 0s
2025-02-03 09:42:29 +00:00
folke
d4ebae15de chore(build): auto-generate docs 2025-01-23 08:14:47 +00:00
folke
c07497d591 chore(build): auto-generate docs 2025-01-20 09:31:46 +00:00
folke
1169a3e5a0 chore(build): auto-generate docs 2025-01-19 16:34:51 +00:00
folke
8e93c16903 chore(build): auto-generate docs 2025-01-19 11:01:47 +00:00
folke
0b67934bb9 chore(build): auto-generate docs 2025-01-18 08:36:22 +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
folke
7861e62ad0 chore(build): auto-generate docs 2024-12-31 05:21:44 +00:00
folke
56e877f57c chore(build): auto-generate docs 2024-12-18 06:09:59 +00:00
folke
188b043705 chore(build): auto-generate docs 2024-12-15 19:21:51 +00:00
Folke Lemaitre
05602b6caf
docs: added documentation on how to customize styles 2024-12-15 11:17:32 +01:00
folke
ed23474b25 chore(build): auto-generate docs 2024-12-13 22:58:36 +00:00
Folke Lemaitre
f2135f2fe2 ci: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
1d001a70c2 docs: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
a3c6ab23a0 docs: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
60bd4e108c
docs: docgen 2024-12-03 10:31:04 +01:00
folke
9738ff6a82 chore(build): auto-generate docs 2024-12-02 20:04:47 +00:00
Folke Lemaitre
67894ee778
docs: added a setup section to docgen, since some people didn't know how to configure snacks... 2024-12-01 23:13:21 +01:00
Folke Lemaitre
c7802ccc0e
docs: docgen 2024-12-01 09:08:30 +01:00
folke
6af863903c chore(build): auto-generate docs 2024-11-11 10:08:25 +00:00
Folke Lemaitre
5ccf72e6d0
docs(win): document width/height behavior for win 2024-11-08 13:20:02 +01:00
Folke Lemaitre
636a17fd66
docs: docgen 2024-11-07 14:33:19 +01:00
folke
e8ea0910e0 chore(build): auto-generate docs 2024-11-06 23:18:27 +00:00
folke
d62faa35b6 chore(build): auto-generate docs 2024-11-06 22:41:49 +00:00
folke
e9d1137b90 chore(build): auto-generate docs 2024-11-06 22:07:50 +00:00
folke
79295fbb29 chore(build): auto-generate docs 2024-11-06 21:53:39 +00:00
Folke Lemaitre
0c914fc8c9
docs: screenshot for win 2024-11-06 18:00:38 +01:00
Folke Lemaitre
084fdf7d79
docs: more docs... 2024-11-06 17:49:10 +01:00
Folke Lemaitre
82ea3e68c4
docs: moar docs 2024-11-06 11:43:50 +01:00
folke
47e956f7c4 chore(build): auto-generate docs 2024-11-06 10:14:37 +00:00
folke
433f234d70 chore(build): auto-generate docs 2024-11-06 09:57:51 +00:00
Folke Lemaitre
0ae7da85ae
docs: docgen for styles 2024-11-06 10:56:23 +01:00
folke
135f5f95d2 chore(build): auto-generate docs 2024-11-05 19:16:45 +00:00
folke
2142cc8fe6 chore(build): auto-generate docs 2024-11-05 15:55:48 +00:00
folke
b6e08f3edf chore(build): auto-generate docs 2024-11-04 21:23:33 +00:00
Folke Lemaitre
74adb33d9b
ci: docgen 2024-11-04 20:29:41 +01:00