Commit graph

2034 commits

Author SHA1 Message Date
Folke Lemaitre
bc0630e43b
feat(image.inline): honor concealcursor and hide conceal when selecting lines. Closes #1478
Some checks failed
CI / ci (push) Failing after 0s
2025-03-01 23:37:02 +01:00
folke
1ce91337f1 chore(build): auto-generate docs 2025-03-01 22:20:31 +00:00
Folke Lemaitre
cddf714dd6
fix(indent): zero indent for blank lines. Closes #1477 2025-03-01 23:18:47 +01:00
Folke Lemaitre
bc2ed15c41
fix(image): only show anchor icon for inline images shown on the lines below. Closes #1479 2025-03-01 22:58:56 +01:00
Folke Lemaitre
f970cbb258
fix(explorer): confirm prompt now defaults to No 2025-03-01 17:36:57 +01:00
Folke Lemaitre
e55ae37beb
perf(image): async treesitter parsing for images 2025-03-01 17:33:53 +01:00
folke
453333530b chore(build): auto-generate docs 2025-03-01 08:57:20 +00:00
Folke Lemaitre
5315e267ff
feat(scope): allow disabling scopes with vim.g.snacks_scope = false or vim.b.snacks_scope = false. Closes #1463 2025-03-01 09:56:24 +01:00
folke
cc04806393 chore(build): auto-generate docs 2025-03-01 08:49:34 +00:00
Folke Lemaitre
3d695ab7d0
feat(picker.git): added all option to also list remote branched for git_branches. Closes #1465 2025-03-01 09:48:31 +01:00
folke
e591715b03 chore(build): auto-generate docs 2025-03-01 08:35:20 +00:00
Folke Lemaitre
78f0ad6ce7
fix(input): add cr keybind for normal mode. Closes #1468. Closes #1466 2025-03-01 09:34:17 +01:00
Folke Lemaitre
d9bb639fed
fix(image.inline): remove debug 2025-03-01 08:08:50 +01:00
folke
5916848fc3 chore(build): auto-generate docs 2025-03-01 07:06:57 +00:00
Folke Lemaitre
ecd77df17d
test(image): added big test markdown doc 2025-03-01 08:05:59 +01:00
Folke Lemaitre
6ea4fa72dc
feat(image): proper inline rendering of math expressions. Closes #1318. Closes #1454 2025-03-01 08:01:11 +01:00
Folke Lemaitre
1bbd47973d
fix(image.queries): add image type 2025-03-01 07:55:36 +01:00
Folke Lemaitre
714d7616f0
fix(image.latex): don't nest image nodes 2025-03-01 07:54:48 +01:00
Folke Lemaitre
6917597f6d
fix(util.spawn): correctly mark as faild on abort 2025-03-01 07:54:16 +01:00
Folke Lemaitre
9f0aa20489
feat(util): small ts parse wrapper that parses async when available 2025-03-01 07:53:55 +01:00
Folke Lemaitre
0e50e80189
test(image): math for neorg 2025-02-27 15:22:54 +01:00
saxon1964
07f4b9adff
test(image): better latex test document (#1392)
Current test.tex page is poorly written and often contains mistakes
(e.g. missing backspace in front of greek letters). I have created a
page that is much more useful. It contains some of the most beautiful
math equations ever written. The file is validated: "pdflatex test.tex"
command produces valid (and nice looking) PDF document.

The document is also much longer - I have some issues with it in nvim
(partial latex rendering or rendering that works only if something major
is changed), so maybe it can help Folke to check the latex preview
functionality once again.

<img width="1019" alt="Screenshot 2025-02-23 at 11 13 48"
src="https://github.com/user-attachments/assets/306715be-89c0-4186-8910-c0069717c23a"
/>

---------

Co-authored-by: Sasa Markovic <provincijalac@gmail.com>
2025-02-27 08:46:07 +01:00
folke
4df2a9afbe chore(build): auto-generate docs 2025-02-27 07:38:06 +00:00
Folke Lemaitre
8b0e79ab4c
fix(dashboard): escape filenames for edit. Closes #1453 2025-02-27 08:36:29 +01:00
Folke Lemaitre
1239fb84bc
fix(statuscolumn): better way of determining open folds. Closes #1445 2025-02-26 14:09:01 +01:00
Folke Lemaitre
fa29c6c926
revert: dont always set border when setting title. Closes #1436 2025-02-26 07:55:13 +01:00
folke
41428f60b9 chore(build): auto-generate docs 2025-02-26 06:51:40 +00:00
Folke Lemaitre
ec487f5d85
feat(image.doc): enable inline math rendering for neorg files. Closes #1438 2025-02-26 07:50:45 +01:00
folke
e17d60712c chore(build): auto-generate docs 2025-02-25 20:19:18 +00:00
Folke Lemaitre
f0d34336db
fix(picker.preview): always use builtin for git log preview 2025-02-25 21:18:06 +01:00
Folke Lemaitre
76311aba31
fix(win): make sure the border is set when setting the title 2025-02-25 20:25:53 +01:00
folke
0d09c46371 chore(build): auto-generate docs 2025-02-25 18:18:24 +00:00
github-actions[bot]
5eac729fa2
chore(main): release 2.22.0 (#1335)
🤖 I have created a release *beep* *boop*
---


##
[2.22.0](https://github.com/folke/snacks.nvim/compare/v2.21.0...v2.22.0)
(2025-02-25)


### Features

* **image:** allow disabling math rendering. Closes
[#1247](https://github.com/folke/snacks.nvim/issues/1247)
([1543a06](1543a063fb))
* **image:** configurable templates for math expressions. Closes
[#1338](https://github.com/folke/snacks.nvim/issues/1338)
([e039139](e039139291))
* **image:** removed `org` integration, since that is now handled by the
org mode plugin directly.
([956fe69](956fe69df3))
* **picker.input:** added some ctrl+r keymaps similar to cmdline. Closes
[#1420](https://github.com/folke/snacks.nvim/issues/1420)
([c864a7d](c864a7d378))
* **util:** util method to check if ts lang is available on any Neovim
version. See [#1422](https://github.com/folke/snacks.nvim/issues/1422)
([e2cb9df](e2cb9df7d0))


### Bug Fixes

* **compat:** fixup
([ceabfc1](ceabfc1b89))
* **compat:** properly detect async treesitter parsing
([842605f](842605f072))
* **compat:** vim.fs.normalize. Closes
[#1321](https://github.com/folke/snacks.nvim/issues/1321)
([2295cfc](2295cfcca5))
* **dim:** check that win is valid when animating dim. Closes
[#1342](https://github.com/folke/snacks.nvim/issues/1342)
([47e1440](47e1440d54))
* **image.placement:** max width/height in cells is 297. Closes
[#1345](https://github.com/folke/snacks.nvim/issues/1345)
([5fa93cb](5fa93cb684))
* **image.terminal:** reset queue when timer runs
([2b34c4d](2b34c4dc05))
* **image.terminal:** write queued terminal output on main
([1b63b18](1b63b1811c))
* **picker.buffers:** add `a` flag when buffer is visible in a window.
See [#1417](https://github.com/folke/snacks.nvim/issues/1417)
([91c3da0](91c3da0b4b))
* **picker.recent:** expand to full path before normalizing. Closes
[#1406](https://github.com/folke/snacks.nvim/issues/1406)
([cf47fa7](cf47fa7cee))
* **picker:** allow overriding winhl of layout box wins. Closes
[#1424](https://github.com/folke/snacks.nvim/issues/1424)
([b0f983e](b0f983ef9a))
* **picker:** disable regex for grep_word
([#1363](https://github.com/folke/snacks.nvim/issues/1363))
([54298eb](54298eb624))
* **picker:** remove unused keymaps for mouse scrolling
([33df54d](33df54dae7))
* **picker:** update titles before showing. Closes
[#1337](https://github.com/folke/snacks.nvim/issues/1337)
([3ae9863](3ae98636aa))
* **scope:** use `rawequal` to check if scope impl is treesitter. Closes
[#1413](https://github.com/folke/snacks.nvim/issues/1413)
([4ce197b](4ce197bff9))
* **scroll:** compat with Neovim 0.9.4
([4c52b7f](4c52b7f25d))
* **statuscolumn:** right-align the current line number when
relativenumber=true. Closes
[#1376](https://github.com/folke/snacks.nvim/issues/1376)
([dd15e3a](dd15e3a05a))
* **win:** don't update title is relative win is invalid. Closes
[#1348](https://github.com/folke/snacks.nvim/issues/1348)
([a00c323](a00c323d4b))
* **win:** use correct keys for displaying help. Closes
[#1364](https://github.com/folke/snacks.nvim/issues/1364)
([b100c93](b100c93717))
* **zen:** always count cmdheight towards Zen bottom offset
([#1402](https://github.com/folke/snacks.nvim/issues/1402))
([041bf1d](041bf1da9e))


### Performance Improvements

* **scope:** use async treesitter parsing when available
([e0f882e](e0f882e6d6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-25 19:17:23 +01:00
folke
bd0f46be9a chore(build): auto-generate docs 2025-02-25 14:27:09 +00:00
Folke Lemaitre
e2cb9df7d0
feat(util): util method to check if ts lang is available on any Neovim version. See #1422 2025-02-25 15:25:48 +01:00
Folke Lemaitre
b0f983ef9a
fix(picker): allow overriding winhl of layout box wins. Closes #1424 2025-02-25 14:40:28 +01:00
folke
9ccf2d235b chore(build): auto-generate docs 2025-02-25 13:30:48 +00:00
Folke Lemaitre
91c3da0b4b
fix(picker.buffers): add a flag when buffer is visible in a window. See #1417 2025-02-25 14:29:37 +01:00
folke
28d5adba6b chore(build): auto-generate docs 2025-02-25 12:59:46 +00:00
Folke Lemaitre
cf47fa7cee
fix(picker.recent): expand to full path before normalizing. Closes #1406 2025-02-25 13:58:47 +01:00
folke
6442985c65 chore(build): auto-generate docs 2025-02-25 12:54:20 +00:00
Folke Lemaitre
c864a7d378
feat(picker.input): added some ctrl+r keymaps similar to cmdline. Closes #1420 2025-02-25 13:53:12 +01:00
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
338eed18ac chore(build): auto-generate docs 2025-02-25 08:14:50 +00: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
folke
09ec4adf3f chore(build): auto-generate docs 2025-02-24 06:20:33 +00: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:
![zen-mode-cmdline](https://github.com/user-attachments/assets/c03be4af-2368-4b04-8065-49ced875aa2d)

After:
![zen-mode-fixed-cmdline](https://github.com/user-attachments/assets/14dc72bb-7431-4d05-b0fd-b6a2367bdc6d)
2025-02-24 07:19:28 +01:00