Commit graph

2531 commits

Author SHA1 Message Date
Folke Lemaitre
6a63346d1d
feat(gh): new gh (GitHub cli) integration 2025-11-01 11:53:47 +01:00
Folke Lemaitre
b0b12a656f
fix(layout): make sure new windows created by a layout are top-level 2025-11-01 11:15:38 +01:00
Folke Lemaitre
25d93c3571
feat(util.tpl): template data can now be a list of tables 2025-11-01 11:15:07 +01:00
Folke Lemaitre
ed49a60aa7
fix(util.spawn): added async support 2025-11-01 11:14:45 +01:00
Folke Lemaitre
d410888194
fix(picker): q should call cancel instead of close 2025-11-01 11:11:56 +01:00
Folke Lemaitre
765a19b3cd
refactor(picker): picker:refresh() 2025-10-31 23:22:14 +01:00
Folke Lemaitre
6c35684343
fix(picker.preview): cleanup buffer loaded by picker that are not listed and hidden 2025-10-31 23:22:14 +01:00
Folke Lemaitre
fce4706dc1
feat(statuscolumn): allow hiding left/right per buffer 2025-10-31 23:22:14 +01:00
Folke Lemaitre
87613dadec
feat(picker.preview): allow items to set vim.wo options for the preview window 2025-10-31 23:22:13 +01:00
Folke Lemaitre
bdd318e077
style: luals 2025-10-31 23:22:13 +01:00
Folke Lemaitre
2bc90da1b2
fix(util.spawn): kill should set aborted when running 2025-10-31 23:22:13 +01:00
Folke Lemaitre
21e0e1c527
fix(picker): picker cancel action should always return to window where the picker was started (if it still exists) 2025-10-31 23:22:13 +01:00
Folke Lemaitre
76c6e91597
style: luals annotations 2025-10-31 23:22:13 +01:00
Folke Lemaitre
a8d192fc96
feat(util.spawn): added support for setting stdin 2025-10-31 23:22:13 +01:00
Folke Lemaitre
fa2e4d0c2b
fix(picker.layout): set max_width=100 for select layout 2025-10-31 23:22:13 +01:00
Folke Lemaitre
5a1a2923d2
feat(image): allow buffers to set vim.b.snacks_image_conceal to always conceal images 2025-10-31 23:22:13 +01:00
Folke Lemaitre
7a5ab4669f
fix(picker.preview): when preview has no position info, scroll to top 2025-10-31 23:22:12 +01:00
Folke Lemaitre
cd193befa9
chore(picker): remove obsoleted is_big code 2025-10-31 23:22:12 +01:00
Folke Lemaitre
443a3bd6e2
docs: make some scratch methods private 2025-10-31 23:22:07 +01:00
folke
ffd45f1c5f chore(build): auto-generated docs 2025-10-31 22:20:57 +00:00
Folke Lemaitre
779746f9a8
fix(picker): close picker when layout closes. Closes #2365 2025-10-31 23:19:58 +01:00
Folke Lemaitre
143e9b58c7
revert: jump buffer -> buffer!. See #2378 2025-10-31 21:21:05 +01:00
Folke Lemaitre
76160be5d3
fix(picker.keymaps): try to locate neovim compiled lua source files for keymaps
Some checks are pending
CI / ci (push) Waiting to run
2025-10-31 07:41:18 +01:00
folke
0bc7c2631a chore(build): auto-generated vimdocs
Some checks are pending
CI / ci (push) Waiting to run
2025-10-30 15:12:07 +00:00
folke
953b52eb64 chore(build): auto-generated docs 2025-10-30 15:10:37 +00:00
Folke Lemaitre
85f8e22281
feat(scratch): store scratch info in meta files, instead of the filename + custom filekeys 2025-10-30 16:09:47 +01:00
Folke Lemaitre
c8422da50d
fix(scratch): make sure zindex of scratch window is higher than existing floating windows 2025-10-30 13:50:06 +01:00
folke
6ca541747c chore(build): auto-generated vimdocs
Some checks are pending
CI / ci (push) Waiting to run
2025-10-30 11:01:42 +00:00
folke
7ebccb5a91 chore(build): auto-generated docs 2025-10-30 11:00:32 +00:00
Folke Lemaitre
1fb3f4de49
feat(picker.git_diff): git_diff now also shows staged hunks and added stage/unstage/restore actions for hunks. Closes #2382 2025-10-30 11:59:39 +01:00
Folke Lemaitre
aa8a318779
fix(picker.lsp): some LSP servers notify completion before sending the actual result. See #2372 2025-10-30 11:01:07 +01:00
Folke Lemaitre
87804d67b9
style(picker.lsp): add debugging info for LSP yielding after done. See #2372 2025-10-30 10:47:45 +01:00
Folke Lemaitre
b3d01c59ba
fix(picker.util): ignore errors from corrupted kv stores. Closes #2394 2025-10-30 10:20:43 +01:00
David
6cf2fee619
fix(picker.actions): drop and tabdrop should never reload existing buffers (#2368)
## Description

When using `tabdrop` as the `jump` action and jumping to a location in
the current buffer, the existing implementation always triggers a reload
of the current buffer because the `vim.cmd` is unconditional. This
causes unnecessary triggering of `BufRead*` and `LspAttach`
auto-commands, which can then trigger a lot of things that can be
CPU-intensive (linters, LSP, etc.). This PR skips calling the `cmd` when
jumping to the current buffer, and hence avoids the excessive triggering
of those auto-commands.

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-10-30 10:17:01 +01:00
Folke Lemaitre
404027c973
feat(image): when opts.conceal, conceal remainig lines that are not covered by the image. See #2391 2025-10-30 09:14:42 +01:00
Folke Lemaitre
13963b1ec4
fix(image): don't add placements to concealed lines. Closes #2391 2025-10-30 09:13:34 +01:00
Folke Lemaitre
04b3a54576
fix(image.inline): off-by-one for finding visible images at the last line of the buffer 2025-10-30 09:12:24 +01:00
Folke Lemaitre
a9b57b2a7e
fix(explorer): schedule on_find (typically reveal), for both files finder and when git status updates the finder. Closes #2388 2025-10-30 08:17:06 +01:00
Folke Lemaitre
367d1bd385
fix(keymap): make sure opts are a table. Closes #2392 2025-10-30 07:56:38 +01:00
Folke Lemaitre
46917d0629
fix(picker.lsp): fixed vim.str_byteindex capability check. Closes #2389 2025-10-30 07:48:46 +01:00
Folke Lemaitre
40774ae6ca
fix(picker.git_diff): remove --default-prefix, since that's no longer needed. See #2382 2025-10-30 00:57:51 +01:00
Folke Lemaitre
ba529d4f5d
fix(explorer): do reveal in on_show if explorer is not open yet. Closes #2388
Some checks are pending
CI / ci (push) Waiting to run
2025-10-30 00:01:40 +01:00
folke
79fb03dc86 chore(build): auto-generated vimdocs 2025-10-29 22:56:45 +00:00
folke
75c8e37ef7 chore(build): auto-generated docs 2025-10-29 22:55:35 +00:00
Folke Lemaitre
5f429fa58f
refactor(picker): ctx:clone. closes #2386 2025-10-29 23:54:50 +01:00
Folke Lemaitre
5eea5f9428
fix(picker.finder): tmp fix for #2386
Some checks are pending
CI / ci (push) Waiting to run
2025-10-29 19:28:55 +01:00
Folke Lemaitre
8afb609333
fix(picker.lsp): use LspRequest to track completed and cancelled requests. Fixes #2364 2025-10-29 19:20:34 +01:00
Folke Lemaitre
4bb1ce16ed
fix(image): guard against invalid buffers. Closes #2383 2025-10-29 17:34:00 +01:00
Folke Lemaitre
8ad80de67b
fix(picker.watch): check again for closed picker after schedule. See #2365 2025-10-29 17:25:37 +01:00
folke
14ead48b51 chore(build): auto-generated vimdocs 2025-10-29 14:33:08 +00:00