Folke Lemaitre
317bfaca65
fix(image): delete terminal image on exit, just to be sure
2025-02-10 14:35:46 +01:00
Folke Lemaitre
31788ba74e
fix(image): prevent image id collisions by interleaving the nvim pid hash in the image id
2025-02-10 14:35:46 +01:00
Folke Lemaitre
f489d61f54
fix(picker.watch): schedule_wrap. Closes #1049
2025-02-10 12:54:36 +01:00
Folke Lemaitre
0d5b106d4e
feat(image): health checks
2025-02-10 12:10:57 +01:00
Folke Lemaitre
b1a3b66fad
feat(image): added proper support for tmux
2025-02-10 11:36:55 +01:00
Folke Lemaitre
8272c1c66f
fix(all): better support for opening windows / pickers / ... on multiple tab pages. Closes #1043
2025-02-10 11:24:13 +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
7d655fe09d
feat(image): use kitty's unicode placeholder images
2025-02-10 08:49:47 +01:00
qw457812
0bf47dc319
fix(gitbrowse): cwd for permalinks ( #1038 )
...
## Description
`Snacks.gitbrowse({ what = "permalink" })` got following error when
`vim.fn.getcwd()` is not a git repository or not the git repository of
current file:
```
E5108: Error executing lua ...cal/share/nvim/lazy/snacks.nvim/lua/snacks/gitbrowse.lua:137: ...cal/share/nvim/lazy/snacks.nvim/lua/snacks/gitbrowse.lua:117: __ignore__
stack traceback:
[C]: in function 'error'
...cal/share/nvim/lazy/snacks.nvim/lua/snacks/gitbrowse.lua:137: in function 'gitbrowse'
[string ":lua"]:1: in main chunk
Failed to get latest commit of file
fatal: not a git repository (or any of the parent directories): .git
```
## Related Issue(s)
- Fixes #320
- Related #438
## Screenshots
None.
2025-02-10 07:47:38 +01:00
Marc Schreiber
2a06e4ce99
feat(gitbrowse): open permalinks to files. Fixes #320 ( #438 )
...
## Description
Add new variant of `what` to link to files permanently.
## Related Issue(s)
Fixes #320
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-02-09 23:05:25 +01:00
Folke Lemaitre
14e9f0bf70
style: remove debug
2025-02-09 22:35:55 +01:00
Folke Lemaitre
2b0aa93efc
feat(picker): image previewer using kitty graphics protocol
2025-02-09 22:35:31 +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
a17788539a
feat(picker.actions): cmd
action now always allows to edit the command. Closes #1033
CI / ci (push) Failing after 0s
2025-02-09 17:34:55 +01:00
Folke Lemaitre
b4cf6bb48d
feat(explorer): added Snacks.explorer.reveal()
to reveal the current file in the tree.
2025-02-09 17:26:17 +01:00
qw457812
33dbebb753
fix(picker.zoxide): directory icon ( #1031 )
...
## Description
Fix the icon for `Snacks.picker.zoxide()`.
## Related Issue(s)
None.
## Screenshots
Before:
<img width="1168" alt="image"
src="https://github.com/user-attachments/assets/1c0fd481-eaa7-4bcd-8a1c-a45df35c512e "
/>
After:
<img width="1168" alt="image"
src="https://github.com/user-attachments/assets/b67d135d-350b-462b-b630-7801063295ac "
/>
2025-02-09 15:46:56 +01:00
Folke Lemaitre
73d2f0f40c
feat(scroll): scroll improvements. Closes #1024
2025-02-09 15:43:13 +01:00
Folke Lemaitre
b9900444d2
feat(picker.db): allow configuring the sqlite3 lib path. Closes #1025
2025-02-09 10:02:23 +01:00
Folke Lemaitre
f9aca86bf3
fix(picker.preview): hide line numbers / status column for directory preview. Closes #1029
2025-02-09 09:55:48 +01:00
Folke Lemaitre
a386e4270b
feat(picker.actions) list up/down now use count. Closes #1021
CI / ci (push) Failing after 0s
2025-02-08 22:07:22 +01:00
Folke Lemaitre
a6d418e877
fix(picker.preview): clear namespace on reset
2025-02-08 22:06:52 +01:00
Folke Lemaitre
3d53a7364e
fix(picker): remove debug :)
2025-02-08 20:38:25 +01:00
Folke Lemaitre
4799f82968
fix(picker): sometimes main layout win gets selected. Closes #1015
2025-02-08 20:30:49 +01:00
Folke Lemaitre
fcf2311c0e
fix(picker.matcher): only consider subset patterns that contain only whitespace and alpha numeric chars. Closes #1013
CI / ci (push) Failing after 0s
2025-02-08 18:40:06 +01:00
Folke Lemaitre
7ccf9c9d69
fix(picker.lines): use original buf instead of current (which can be the picker on refresh)
2025-02-08 17:21:04 +01:00
Folke Lemaitre
93ad23a0ab
fix(picker.git): handle git status renames. Closes #1003
2025-02-08 10:45:17 +01:00
Folke Lemaitre
9dfa276ea4
fix(explorer): change grep in item dir keymap to leader-/. Closes #1000
2025-02-08 07:26:27 +01:00
Folke Lemaitre
e4e5040d9b
fix(layout): take winbar into account for split layouts. Closes #996
2025-02-08 07:19:30 +01:00
Folke Lemaitre
e9e2e6976e
fix(picker.git): account for deleted files in git diff. Closes #1001
2025-02-08 07:12:31 +01:00
Folke Lemaitre
3baf95d3a1
feat(picker.undo): ctrl+y
to yank added lines, ctrl+shift+y
to yank deleted lines
2025-02-07 21:58:34 +01:00
folke
1e2d8d57f1
chore(build): auto-generate docs
2025-02-07 20:52:55 +00:00
Folke Lemaitre
a6beb0f280
feat(picker): added treesitter symbols picker
2025-02-07 21:52:00 +01:00
Folke Lemaitre
3b7021e7fd
fix(picker.proc): don't close stdout on proc exit, since it might still contain buffered output. Closes #966
2025-02-07 16:50:51 +01:00
Folke Lemaitre
73c4b62896
feat(terminal): added Snacks.terminal.list()
. Closes #421 . Closes #759
2025-02-07 16:13:28 +01:00
Folke Lemaitre
f6d9af7410
fix(picker): only show extmark errors when debug is enabled. Closes #988
2025-02-07 11:39:45 +01:00
Folke Lemaitre
5af04ab667
feat(picker): get filetype from modeline when needed. Closes #987
2025-02-07 11:35:16 +01:00
folke
33e3f92978
chore(build): auto-generate docs
2025-02-07 09:43:02 +00:00
Folke Lemaitre
2dc901634b
feat(picker): added git_grep
picker. Closes #986
2025-02-07 10:41:38 +01:00
Folke Lemaitre
a3b083b844
feat(explorer): allow disabling untracked git status. Closes #983
2025-02-07 10:26:33 +01:00
Folke Lemaitre
811a24cc16
feat(picker.undo): added ctrl+y to yank added lines from undo
2025-02-07 10:21:18 +01:00
Folke Lemaitre
bc087d36d6
perf(explorer): no need to get git status with -uall
. Closes #983
2025-02-07 09:54:04 +01:00
Folke Lemaitre
17360e4009
fix(picker.lsp): fix indent guides for sorted document symbols
2025-02-07 09:24:55 +01:00
Folke Lemaitre
cc22177dcf
fix(picker.lsp): sort document symbols by position
2025-02-07 09:14:07 +01:00
Folke Lemaitre
81f90062c5
feat(explorer): added ctrl+t to open a terminal in the item's directory
2025-02-07 09:10:10 +01:00
Folke Lemaitre
0454b21165
feat(explorer): added ctrl+f to grep in the item's directory
2025-02-07 09:07:18 +01:00
Folke Lemaitre
52c1086ecd
feat(picker): allow configuring file icon width. Closes #981
2025-02-07 09:03:20 +01:00
Folke Lemaitre
d1d55850ec
feat(explorer): added quick nav with [
, ]
with d/w/e
for diagnostics
2025-02-07 08:59:37 +01:00
Folke Lemaitre
7f1b60d557
feat(explorer): added diagnostics file/directory status
2025-02-07 08:45:40 +01:00
Folke Lemaitre
09280078e8
feat(picker.lazy): don't use grep
. Parse spec files manually. Closes #972
2025-02-07 07:16:32 +01:00
Folke Lemaitre
b1db65ac61
fix(picker): consider zen windows as main. Closes #973
2025-02-07 06:38:38 +01:00