Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rich markdown rendering/highlighting for docs on hover #43

Open
VarLad opened this issue Sep 13, 2024 · 2 comments
Open

Rich markdown rendering/highlighting for docs on hover #43

VarLad opened this issue Sep 13, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@VarLad
Copy link

VarLad commented Sep 13, 2024

Currently the text printed within hover docs looks quite raw.
It would be nice if we could have rich rendering instead.
An interesting project which makes this possible might be https://github.com/Canop/termimad

@neurocyte neurocyte added enhancement New feature or request good first issue Good for newcomers labels Sep 13, 2024
@neurocyte
Copy link
Owner

neurocyte commented Sep 13, 2024

https://github.com/JacobCrabill/zigdown is written in zig and uses tree-sitter. Probably a better match for flow than termimad.
An alternative would probably be to write a simple markdown renderer using the tree-sitter ast.

Either way it should use colors from the current flow theme.

@neurocyte
Copy link
Owner

The implementation of this feature is likely possible entirely in src/tui/info_view.zig. That means it could be a really nice "first issue" for a new contributer.

@neurocyte neurocyte added this to the v0.4.0 milestone Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants