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

Closed
ghost opened this issue Apr 2, 2024 · 2 comments
Closed

FR: code-folding #231

ghost opened this issue Apr 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request ready for release

Comments

@ghost
Copy link

ghost 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).

@ghost ghost mentioned this issue Apr 2, 2024
@SpartanJ
Copy link
Owner

SpartanJ commented Jun 3, 2024

Code folding has been implemented, commit here plus the implementation of soft-wrap should close all the pending "basic" functionalities for a code-editor. Both features will be available in the next ecode release.

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

No branches or pull requests

1 participant