Commit graph

31 commits

Author SHA1 Message Date
Folke Lemaitre
ecd77df17d
test(image): added big test markdown doc 2025-03-01 08:05:59 +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 Lemaitre
e0f882e6d6
perf(scope): use async treesitter parsing when available 2025-02-23 09:21:02 +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
e27ba726b1
feat(image): make math packages configurable. Closes #1295 2025-02-19 06:48:02 +01:00
Folke Lemaitre
e2258236a2
feat(image): added math rendering for typst. Closes #1260 2025-02-19 00:11:27 +01:00
Folke Lemaitre
10387af009
feat(images): added support for org-mode. Closes #1276 2025-02-18 23:54:17 +01:00
Olle Månsson
54ab77c5d2
feat(image): add support for svelte (#1277)
## Description

Added queries for Svelte as well, based on Vue.

Note that I am not sure if the current HTML queries, which both Vue and
this Svelt query inherits from, is working as intended.

I do not get any sort of inline images. But I guess that will have to be
debugged and fixed in another issue and the fix should not affect this
patch (hopefully).

## Related Issue(s)

Fixes #1275

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-02-18 16:49:40 +01:00
Folke Lemaitre
9e422e1287
fix(image.latex): inline math formulas. Closes #1246 2025-02-18 00:25:08 +01:00
Folke Lemaitre
f8e7942d6c
feat(image): added support for mermaid diagrams in markdown 2025-02-18 00:17:05 +01:00
Folke Lemaitre
507c1836e3
feat(image): added support for typst. Closes #1235 2025-02-17 13:28:16 +01:00
Folke Lemaitre
0bf0c6223d
feat(image): refactor of treesitter queries to support inline image data 2025-02-17 12:49:38 +01:00
Folke Lemaitre
95878ad32a
feat(image): adde support for Image in jsx
Some checks failed
CI / ci (push) Failing after 0s
2025-02-16 15:13:34 +01:00
Folke Lemaitre
a596f8a9ea
feat(image): added support for a bunch of aditional languages 2025-02-16 14:16:15 +01:00
Folke Lemaitre
97dcd9c168
feat(picker.util): lua globber 2025-02-11 22:22:04 +01:00
Folke Lemaitre
69729608e1
fix(util): normkey. Closes #763 2025-02-03 07:09:28 +01:00
Folke Lemaitre
e1566a483d
fix(util): better keymap normalization 2025-02-01 10:20:03 +01:00
Folke Lemaitre
5cae48d93c
feat(explorer): added git status. Closes #817 2025-01-31 19:08:32 +01:00
Folke Lemaitre
2877ce5dcb
refactor(picker): merge functionality of picker:find and picker:match in picker:find 2025-01-22 23:49:56 +01:00
Folke Lemaitre
9986b47707
fix(picker.config): better config merging and tests 2025-01-17 20:36:33 +01:00
Folke Lemaitre
924a988d9a
feat(picker.list): better way of highlighting field patterns 2025-01-17 12:40:37 +01:00
Folke Lemaitre
4c55f1c2da
fix(scope): make sure to parse the ts tree. Fixes #521 2025-01-16 08:37:19 +01:00
Folke Lemaitre
5295741287
perf(picker): matcher optims 2025-01-15 13:10:25 +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
Folke Lemaitre
cec5559ba1
test: fix tests 2024-12-15 09:58:20 +01:00
Folke Lemaitre
b41320c6b4
test: added scope tests 2024-12-14 21:50:19 +01:00
Folke Lemaitre
2ccb70fd3a
fix(terminal): properly deal with args in vim.o.shell. Fixes #69 2024-11-13 10:42:04 +01:00
Folke Lemaitre
92da87c910
feat(gitbrowse): choose to open repo, branch or file. Closes #10. Closes #17 2024-11-08 10:39:55 +01:00
Folke Lemaitre
df333a6a9a
ci: docgen 2024-11-04 16:39:24 +01:00
Folke Lemaitre
a638d8bafe
feat: added gitbrowse 2024-11-04 12:16:21 +01:00