Skip to content

helix: documentation shows markdown line breaks #112

@adiabatic

Description

@adiabatic

The Feature Request

I pressed k (space, then k) in Helix to trigger its documentation-under-cursor feature. I got documentation for the p element, but for whatever reason the documentation window was extra-narrow and the hard-wrapped text got wrapped even tighter, leading to a very raggedy right edge.

I tried to recreate Helix’s indented help-text window in a minimal test case, but I couldn’t. Instead, I had to shrink the Terminal window to a ridiculously narrow column count to trigger the behavior:

Image

Normally I wouldn’t put “Consider” at the beginning of a feature request, but the hard-wrapping might be the better idea in more-important/popular LSP-using setups, like, say, Visual Studio Code. I tried running the SuperHTML extension in VS Code, but I couldn’t get any kind of pop-up help in an unsaved HTML file to see what under-the-cursor documentation looks like there.

Would it be a good idea, on net, to not hard-wrap .desc in, say, src/html/elements/p.zig?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions