Folke Lemaitre
4ce197bff9
fix(scope): use rawequal to check if scope impl is treesitter. Closes #1413
2025-02-25 10:48:04 +01:00
Folke Lemaitre
33df54dae7
fix(picker): remove unused keymaps for mouse scrolling
2025-02-25 09:13:45 +01:00
Folke Lemaitre
1b63b1811c
fix(image.terminal): write queued terminal output on main
2025-02-24 11:27:39 +01:00
Folke Lemaitre
4c52b7f25d
fix(scroll): compat with Neovim 0.9.4
2025-02-24 10:34:25 +01:00
Folke Lemaitre
842605f072
fix(compat): properly detect async treesitter parsing
2025-02-24 10:28:22 +01:00
Andrei Heidelbacher
041bf1da9e
fix(zen): always count cmdheight towards Zen bottom offset ( #1402 )
...
## Description
Zen window height should always account for `cmdheight` (not only if
`statusline` is enabled) and be computed dynamically when `cmdheight >
0` to avoid the `cmdline` obstructing the Zen window.
## Related Issue(s)
- Fixes https://github.com/folke/snacks.nvim/issues/1401
- Fixes https://github.com/folke/snacks.nvim/issues/1375
## Screenshots
Before:

After:

2025-02-24 07:19:28 +01:00
Folke Lemaitre
e0f882e6d6
perf(scope): use async treesitter parsing when available
2025-02-23 09:21:02 +01:00
Folke Lemaitre
dd15e3a05a
fix(statuscolumn): right-align the current line number when relativenumber=true. Closes #1376
2025-02-23 08:37:11 +01:00
Folke Lemaitre
2b34c4dc05
fix(image.terminal): reset queue when timer runs
2025-02-23 08:13:00 +01:00
Folke Lemaitre
b100c93717
fix(win): use correct keys for displaying help. Closes #1364
2025-02-22 08:04:06 +01:00
Folke Lemaitre
ceabfc1b89
fix(compat): fixup
2025-02-22 07:53:29 +01:00
Folke Lemaitre
2295cfcca5
fix(compat): vim.fs.normalize. Closes #1321
2025-02-22 07:48:54 +01:00
iniw
54298eb624
fix(picker): disable regex for grep_word ( #1363 )
...
## Related Issue(s)
- Fixes #1361
2025-02-21 19:25:46 +01:00
Folke Lemaitre
a00c323d4b
fix(win): don't update title is relative win is invalid. Closes #1348
2025-02-21 08:06:52 +01:00
Folke Lemaitre
5fa93cb684
fix(image.placement): max width/height in cells is 297. Closes #1345
CI / ci (push) Failing after 0s
2025-02-20 18:12:49 +01:00
Folke Lemaitre
47e1440d54
fix(dim): check that win is valid when animating dim. Closes #1342
2025-02-20 17:17:17 +01:00
Folke Lemaitre
e039139291
feat(image): configurable templates for math expressions. Closes #1338
2025-02-20 17:11:12 +01:00
Folke Lemaitre
3ae98636aa
fix(picker): update titles before showing. Closes #1337
2025-02-20 16:06:21 +01:00
Folke Lemaitre
1543a063fb
feat(image): allow disabling math rendering. Closes #1247
2025-02-20 11:56:56 +01:00
Folke Lemaitre
29c777a0a0
feat(image.doc): check for image.ignore in ts meta. See #1276
2025-02-20 11:14:24 +01:00
Folke Lemaitre
9aa8cbb803
fix(image): delay sending first image, to make ghostty happy. Closes #1333
2025-02-20 10:17:08 +01:00
Folke Lemaitre
5a2acf82b2
perf(explorer): only update tree if git status actually changed
2025-02-20 09:54:32 +01:00
Folke Lemaitre
1142f46a27
perf(explorer): only update tree when diagnostics actually changed
2025-02-20 09:54:32 +01:00
Folke Lemaitre
681ae6e307
fix(picker): don't render list when closed. See #1308
2025-02-20 08:47:58 +01:00
Folke Lemaitre
7b7f42fb3b
perf(image.convert): identify during convert instead of calling identify afterwards
2025-02-20 07:28:50 +01:00
Folke Lemaitre
572436bc3f
fix(picker.list): allow horizontal scrolling in the list
2025-02-20 07:28:49 +01:00
Folke Lemaitre
448a55a0e3
fix(compat): correct Neovim 0.11 check
2025-02-20 07:00:42 +01:00
Folke Lemaitre
63277f96c9
refactor(compat): use svim.islist
2025-02-20 07:00: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
4551f499c7
fix(picker): go back to last window on cancel instead of main
2025-02-20 06:24:06 +01:00
Stefan Boca
4f8b9ebf71
fix(image.doc): crop inline typst equations properly ( #1320 )
...
CI / ci (push) Failing after 0s
## Description
Tall inline typst equations were previously cropped too much vertically.
The change to the template now resize text frames to the bounding box of
their glyphs. See
https://typst.app/docs/reference/text/text/#parameters-top-edge for more
details.
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
Before:

After:

2025-02-19 23:41:29 +01:00
Folke Lemaitre
31e21ccef8
fix(image): move assertion for src/content. See #1276
2025-02-19 23:40:18 +01:00
Folke Lemaitre
bde3adddc7
feat(image.doc): allow configuring the header for latex / typst inline in the document. Closes #1303
2025-02-19 23:06:51 +01:00
Folke Lemaitre
e2d9941896
perf(image): no need to run identify before convert for local files
2025-02-19 22:56:11 +01:00
Folke Lemaitre
6d1cda4a6d
fix(image): let text conversion continue on errors. See #1303
2025-02-19 22:56:11 +01:00
Folke Lemaitre
f45dd6c44c
fix(image): remove some default latex packages
2025-02-19 22:56:11 +01:00
Folke Lemaitre
6614a2c84f
feat(explorer): deal with existing buffers when renaming / deleting files. Closes #1315
2025-02-19 22:18:21 +01:00
Folke Lemaitre
5f2864e8c9
style(picker): fix autogen types for select & resume
2025-02-19 19:44:52 +01:00
Folke Lemaitre
a1cb54cc9e
fix(win): call on_close before actually closing so that prev win can be set. Closes #962
2025-02-19 19:38:36 +01:00
Folke Lemaitre
bf01460e6d
feat(image): use search dirs to resolve file from both cwd and dirname of file. Closes #1305
2025-02-19 18:43:37 +01:00
Folke Lemaitre
d389c5df14
feat(image): better health checks
2025-02-19 17:16:05 +01:00
Folke Lemaitre
bd6a62af12
feat(picker): renamed native -> builtin + fixed diff mode used for undo. Closes #1302
2025-02-19 16:56:40 +01:00
Folke Lemaitre
92786c5b03
feat(picker.git_diff): use the diff previewer for git_diff so that delta can be used. See #1302
2025-02-19 16:56:40 +01:00
Folke Lemaitre
684666f643
feat(image): conceal option for inline rendering (disabled by default)
2025-02-19 15:41:16 +01:00
Iordanis Petkakis
d62e7527a5
feat(words): add filter function for user to disable specific filetypes ( #1296 )
...
## Description
This allows user to specify explicitly filetypes to disable
`snacks.words`.
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
## Related Issue(s)
Closes #1294
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
2025-02-19 15:24:01 +01:00
Folke Lemaitre
65f89e2d6f
feat(image.doc): allow setting image.src with #set!. Closes #1276
2025-02-19 15:17:33 +01:00
Tristan Partin
a3b47e5202
feat(gitbrowse): add support for git.sr.ht ( #1297 )
...
Simply upstreaming this from my own config.
Signed-off-by: Tristan Partin <tristan@partin.io>
2025-02-19 15:15:21 +01:00
Folke Lemaitre
45ec90bdd9
fix(words): default count to 1. Closes #1307
2025-02-19 15:12:59 +01:00
Folke Lemaitre
e146a66cb7
fix(image): better cell size calculation for non-HDPI displays
2025-02-19 15:07:28 +01:00
Folke Lemaitre
b052eb9372
feat(image): allow customizing font size for math expressions
2025-02-19 13:15:42 +01:00