Commit graph

20 commits

Author SHA1 Message Date
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
01a1bfc781
docs: added more picker/explorer keymaps to docs 2025-02-03 12:28:11 +01:00
Folke Lemaitre
b2815d7f79
fix(dashboard): open pull requests with P instead of p in the github exmaple 2025-02-02 23:33:37 +01:00
Folke Lemaitre
ccc27521b8
docs: added picker to config section 2025-01-23 20:53:19 +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
Lewis Denny
260cdc810b
docs(example): updated gitbrowse keymap to support visual mode (#311)
## Description

Since https://github.com/folke/snacks.nvim/pull/89 was merged gitbrowse
supports opening multiline URLs.
This patch updates the keymap example docs to include visual mode so the
feature works as expected.
2024-12-16 11:26:55 +01:00
Haim
ad62d81c4d
docs(dashboard): replace 'hub status' with 'git status' (#310)
## Description

When copying the "advanced" or "github" examples for dashboard, there
was error 'hub is not recognized' changing ```hub status --short
--branch --renames``` to ```git status --short --branch --renames```
fixes that

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

![image](https://github.com/user-attachments/assets/f50c618b-37fd-4faa-b4a1-1046c47ed072)

![image](https://github.com/user-attachments/assets/067da57b-da33-477c-865e-30264a4c448c)

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-12-15 18:18:15 +01:00
Folke Lemaitre
61439cab2f
docs: added new plugins to readme install/example section 2024-12-10 15:22:39 +01:00
Folke Lemaitre
a3c6ab23a0 docs: docgen 2024-12-10 13:55:51 +01:00
Folke Lemaitre
3e369a80fb
docs: docgen 2024-12-02 17:03:13 +01:00
Folke Lemaitre
9963fa2452
docs(dashboard): added keymaps/actions to the github example 2024-12-02 17:00:37 +01:00
Folke Lemaitre
7c29848e89
feat(util): simple function to get an icon 2024-12-01 09:06:52 +01:00
Folke Lemaitre
6e3cb7e53c
feat(config): make it easier to use examples in your config 2024-11-27 21:27:56 +01:00
Folke Lemaitre
378b0285c5
docs(dashboard): fix git example 2024-11-27 17:40:53 +01:00
Folke Lemaitre
26864851aa
docs(dashboard): added github example showing notifications, open PRs, issues and git diff 2024-11-26 12:04:37 +01:00
Folke Lemaitre
b4a293aac7
fix(dashboard): better git check for advanced example. See #126 2024-11-20 20:03:27 +01:00
Folke Lemaitre
2decc3fcf9
docs: example getter 2024-11-19 14:55:41 +01:00
Folke Lemaitre
d540fa607c
feat(dashboard): added new dashboard snack (#77)
## Description

A new dashboard plugin that comes with sane defaults, and can be fully
customized to your liking.

## Screenshots


![image](https://github.com/user-attachments/assets/944373ea-f443-4c16-bfe0-2dc78101f8f5)


![image](https://github.com/user-attachments/assets/492b075e-168d-4d58-af39-1268c047f374)


![image](https://github.com/user-attachments/assets/53a388c2-ca5a-4efb-94f2-752222f43584)


![image](https://github.com/user-attachments/assets/3c6ee94b-6785-4035-8ed2-2f67f39b5f06)


![image](https://github.com/user-attachments/assets/5b7a7117-e504-4b36-88db-91ccc89d8997)
2024-11-18 16:25:17 +01:00