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

FR: code-folding #231

Open
iahung2 opened this issue Apr 2, 2024 · 1 comment
Open

FR: code-folding #231

iahung2 opened this issue Apr 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@iahung2
Copy link

iahung2 commented Apr 2, 2024

Lite XL and Pragtical seem to not support code-folding. So, none of the Lite-based code editors currently support code-folding. It seems existing lexers will need to be modified to include code-folding rules (like what of scintillua).

@SpartanJ SpartanJ self-assigned this Apr 2, 2024
@SpartanJ SpartanJ added the enhancement New feature or request label Apr 2, 2024
@SpartanJ
Copy link
Owner

SpartanJ commented Apr 2, 2024

Yes, this is planned. We will probably rely on the LSP for this feature, since it's the easiest for us to provide it. So it will be limited to languages with LSP code-folding support. And maybe later if tree-sitter support is added we will be able to rely on the tree-sitter AST. Any other method is usually unreliable (simpler implementations will just code-fold with balanced bracket-matches, that maybe I'll support as a fallback method).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants