Commit graph

36 commits

Author SHA1 Message Date
Folke Lemaitre
a4fe279bf4
docs: docgen 2025-02-20 17:11:40 +01:00
Folke Lemaitre
b503e3ee9f
docs: docgen
Release-As: 2.21.0
2025-02-20 11:37:05 +01:00
Folke Lemaitre
bc902f7032
feat(compat): added svim, a compatibility layer for Neovim. Closes #1321 2025-02-20 06:59:44 +01:00
Folke Lemaitre
5f2864e8c9
style(picker): fix autogen types for select & resume 2025-02-19 19:44:52 +01:00
Folke Lemaitre
b82816e3ea
docs: docgen 2025-02-19 16:56:40 +01:00
Folke Lemaitre
3bfaffdd23
docs: docgen 2025-02-18 22:54:32 +01:00
Folke Lemaitre
4752a87d54
docs: better doc tags. Closes #1234 2025-02-17 13:41:34 +01:00
Folke Lemaitre
d18680c931
docs: docgen 2025-02-16 09:23:16 +01:00
Folke Lemaitre
27318cd8a9
docs: docgeb 2025-02-15 14:46:11 +01:00
Folke Lemaitre
0391125924
docs: fixup. Closes #1175
Some checks failed
CI / ci (push) Failing after 0s
2025-02-14 17:31:14 +01:00
Folke Lemaitre
4e10e31398
feat(image): floats in markdown. Closes #1151 2025-02-14 17:19:45 +01:00
Folke Lemaitre
3a97922a88
docs: docgen 2025-02-13 19:37:19 +01:00
Folke Lemaitre
bdb489bc60
docs: docgen 2025-02-13 18:04:04 +01:00
Folke Lemaitre
ad00d5dc1d
docs: docgen 2025-02-10 20:26:54 +01:00
Folke Lemaitre
12a7ea28b9
feat(picker.files): added ft option to filter by extension(s) 2025-02-10 10:27:34 +01:00
Folke Lemaitre
4e4e63048e
feat: added new image snacks plugin for the kitty graphics protocol 2025-02-09 22:35:13 +01:00
Folke Lemaitre
4a6ed6912e
docs: docgen 2025-02-06 22:19:24 +01:00
Ian Liu
8676c409e1
feat(picker.git): add create and delete branch to git_branches (#909)
Some checks failed
CI / ci (push) Failing after 0s
## Description

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

This PR adds two actions: `git_create_branch` and `git_delete_branch`.
They are aimed to be included in the `git_branches` picker to easily
create/delete git branches with custom keymaps.

## 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. -->

---------

Co-authored-by: Ian Liu <ian.liu@tupl.com>
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-02-05 20:01:44 +01:00
Folke Lemaitre
db92afbbb6
docs: docgen 2025-02-05 08:00:35 +01:00
Folke Lemaitre
766fb20bd5
ci: added picker example config to readme 2025-02-05 07:55:00 +01:00
Folke Lemaitre
8c6c54e26a
ci: auto generate picker function types 2025-02-05 07:44:26 +01:00
Folke Lemaitre
2abd6b6a86
docs: docgen 2025-02-03 12:29:47 +01:00
Folke Lemaitre
9ccea2601e
docs: docgen 2025-02-02 16:58:25 +01:00
Folke Lemaitre
17bdd182f7
docs: docgen 2025-01-31 08:32:20 +01:00
Folke Lemaitre
859af8a255
docs: add picker cmd to docs 2025-01-23 00:20:24 +01:00
Folke Lemaitre
40cddaf435
docs: docgen 2025-01-20 13:49:07 +01:00
Sergey Kochetkov
3739b5f8ff
chore(picker): fix typo (#587)
## Description

Fixed typo for the `Unknown` icon
2025-01-17 20:40:52 +01:00
Folke Lemaitre
b50effc967
feat(toggle): allow toggling global options. Fixes #534 2025-01-17 14:41:19 +01:00
Folke Lemaitre
770df9e5cf
docs: docgen 2025-01-17 14:37:09 +01:00
Folke Lemaitre
6b64174c50
docs: docgen 2025-01-16 13:01:38 +01: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 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 Lemaitre
89847bd76d
docs: more docs 2025-01-14 23:36:28 +01:00
Folke Lemaitre
db9c5ae8c7
docs: docgen 2025-01-14 23:00:59 +01: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