Commit graph

14 commits

Author SHA1 Message Date
folke
4236c8b772 chore(build): auto-generate docs
Some checks are pending
CI / ci (push) Waiting to run
2025-10-22 21:09:10 +00:00
folke
c958a6a379 chore(build): auto-generate docs 2025-10-22 20:38:55 +00:00
folke
284ea48e7c chore(build): auto-generate docs 2025-10-21 14:05:52 +00:00
folke
e591715b03 chore(build): auto-generate docs 2025-03-01 08:35:20 +00:00
Folke Lemaitre
4e10e31398
feat(image): floats in markdown. Closes #1151 2025-02-14 17:19:45 +01:00
folke
698daf7cdf chore(build): auto-generate docs 2025-02-07 05:39:32 +00:00
folke
57e047f2bc chore(build): auto-generate docs 2025-01-20 15:20:32 +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
d2b2b7bcbf chore(build): auto-generate docs 2025-01-11 16:36:53 +00:00
Folke Lemaitre
60adc6ac8a
docs: docgen 2024-12-31 06:20:31 +01:00
folke
d2fafff5f3 chore(build): auto-generate docs 2024-12-18 21:24:02 +00:00
folke
41d2c7b6a5 chore(build): auto-generate docs 2024-12-18 14:36:09 +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